本文整理汇总了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)));
}
示例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);
}
示例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;
}
}
示例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 ();
}
}
}
}
示例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);
}
}
}