本文整理汇总了C#中MonoDevelop.GetOutputFileName方法的典型用法代码示例。如果您正苦于以下问题:C# MonoDevelop.GetOutputFileName方法的具体用法?C# MonoDevelop.GetOutputFileName怎么用?C# MonoDevelop.GetOutputFileName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoDevelop
的用法示例。
在下文中一共展示了MonoDevelop.GetOutputFileName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadProject
async Task<ProjectInfo> LoadProject (MonoDevelop.Projects.Project p, CancellationToken token)
{
if (!projectIdMap.ContainsKey (p)) {
p.FileAddedToProject += OnFileAdded;
p.FileRemovedFromProject += OnFileRemoved;
p.FileRenamedInProject += OnFileRenamed;
p.Modified += OnProjectModified;
}
var projectId = GetOrCreateProjectId (p);
var projectData = GetOrCreateProjectData (projectId);
var references = await CreateMetadataReferences (p, projectId, token).ConfigureAwait (false);
if (token.IsCancellationRequested)
return null;
var config = IdeApp.Workspace != null ? p.GetConfiguration (IdeApp.Workspace.ActiveConfiguration) as MonoDevelop.Projects.DotNetProjectConfiguration : null;
MonoDevelop.Projects.DotNetCompilerParameters cp = null;
if (config != null)
cp = config.CompilationParameters;
FilePath fileName = IdeApp.Workspace != null ? p.GetOutputFileName (IdeApp.Workspace.ActiveConfiguration) : (FilePath)"";
if (fileName.IsNullOrEmpty)
fileName = new FilePath (p.Name + ".dll");
var sourceFiles = await p.GetSourceFilesAsync (config != null ? config.Selector : null).ConfigureAwait (false);
var info = ProjectInfo.Create (
projectId,
VersionStamp.Create (),
p.Name,
fileName.FileNameWithoutExtension,
LanguageNames.CSharp,
p.FileName,
fileName,
cp != null ? cp.CreateCompilationOptions () : null,
cp != null ? cp.CreateParseOptions (config) : null,
CreateDocuments (projectData, p, token, sourceFiles),
CreateProjectReferences (p, token),
references
);
projectData.Info = info;
return info;
}