当前位置: 首页>>代码示例>>C#>>正文


C# DotNetProject.GetOutputFileName方法代码示例

本文整理汇总了C#中MonoDevelop.Projects.DotNetProject.GetOutputFileName方法的典型用法代码示例。如果您正苦于以下问题:C# DotNetProject.GetOutputFileName方法的具体用法?C# DotNetProject.GetOutputFileName怎么用?C# DotNetProject.GetOutputFileName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MonoDevelop.Projects.DotNetProject的用法示例。


在下文中一共展示了DotNetProject.GetOutputFileName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetConfigFolderName

		string GetConfigFolderName (DotNetProject lib, string conf)
		{
			return Path.GetFileName (Path.GetDirectoryName (lib.GetOutputFileName ((SolutionConfigurationSelector)conf)));
		}
开发者ID:segaman,项目名称:monodevelop,代码行数:4,代码来源:SolutionTests.cs

示例2: CheckProjectBuildClean

		void CheckProjectBuildClean (DotNetProject lib, string configuration)
		{
			SolutionConfigurationSelector config = (SolutionConfigurationSelector) configuration;
			string tag = "CheckProjectBuildClean lib=" + lib.Name + " config=" + configuration;
			
			Assert.IsFalse (File.Exists (lib.GetOutputFileName (config)), tag);
			
			BuildResult res = lib.Build (Util.GetMonitor (), config, false);
			Assert.AreEqual (0, res.WarningCount, tag);
			Assert.AreEqual (0, res.ErrorCount, tag);
			
			Assert.IsTrue (File.Exists (lib.GetOutputFileName (config)), tag);
			
			lib.Clean (Util.GetMonitor (), config);
			Assert.IsFalse (File.Exists (lib.GetOutputFileName (config)), tag);
		}
开发者ID:segaman,项目名称:monodevelop,代码行数:16,代码来源:SolutionTests.cs

示例3: RunAnalyzers

		/// <summary>
		/// Determines which analyzers to run, which rule sets to use (TODO)
		/// and invokes the runners.
		/// </summary>
		static IEnumerable<IViolation> RunAnalyzers (DotNetProject project, double work)
		{
			string dll = project.GetOutputFileName (ConfigurationSelector.Default);
			if (!File.Exists (dll))
				yield break;
			
			LoadAnalyzersIfNeccessary ();
			
			if (analyzers.Count == 0)
				yield break;
			
			double analyzerWork = work / analyzers.Count;			
			
			foreach (IAnalyzer analyzer in analyzers) {
				IEnumerable<IRule> ruleSet = GetRuleSet (project, analyzer.GetRuleLoader ());
				IRunner runner = analyzer.GetRunner ();
				
				IEnumerable<IViolation> violations = runner.Run (dll, ruleSet);
				foreach (IViolation vio in violations)
						yield return vio;
				
				ResultsReporter.WorkComplete += analyzerWork;
			}
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:28,代码来源:MainAnalyzer.cs

示例4: CheckProjectOutput

		static void CheckProjectOutput (DotNetProject project, bool autoUpdate)
		{
			if (project == null)
				throw new ArgumentNullException ("project");
			if (IsOutputTrackedProject (project)) {
				var fileName = project.GetOutputFileName (IdeApp.Workspace.ActiveConfiguration);
				if (!File.Exists (fileName))
					return;
				FileService.NotifyFileChanged (fileName);
				if (autoUpdate) {
					// update documents
					foreach (var openDocument in IdeApp.Workbench.Documents) {
						openDocument.ReparseDocument ();
					}
				}
			}
		}
开发者ID:pjcollins,项目名称:monodevelop,代码行数:17,代码来源:TypeSystemService_WorkspaceHandling.cs

示例5: Swizzle

        static void Swizzle(DotNetProject project, ConfigurationSelector configSelector)
        {
            var appdir = Path.ChangeExtension (
                project.GetOutputFileName (configSelector),
                "app");
            var appAssemblyDirs = GetAppBundleAssemblyDirectories (appdir).ToArray ();

            var mscorlib = project
                .AssemblyContext
                .GetAssemblies (project.TargetFramework)
                .FirstOrDefault (asm => asm.Name == "mscorlib");

            var targetFrameworkPath = Path.Combine (
                Path.GetDirectoryName (mscorlib.Location),
                "repl");

            foreach (var asm in Directory.EnumerateFiles (targetFrameworkPath, "*.dll"))
            {
                foreach (var appAssemblyDir in appAssemblyDirs)
                {
                    File.Copy (asm, Path.Combine (appAssemblyDir, Path.GetFileName (asm)), true);
                    var mdb = asm + ".mdb";
                    if (File.Exists (mdb))
                        File.Copy (mdb, Path.Combine (appAssemblyDir, Path.GetFileName (mdb)), true);
                }
            }
        }
开发者ID:praeclarum,项目名称:Continuous,代码行数:27,代码来源:ios-repl-swizzle.cs


注:本文中的MonoDevelop.Projects.DotNetProject.GetOutputFileName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。