public SolutionGenerator(VisualStudioVersion version) { this.version = version; if (version != null) { outputPins = new TaskPin[] { new TaskPin(this, typeof(VisualStudioSolution)) }; this.flag = version.Flag.ToString().Fnv32(); } }
public SharpProjectGenerator(VisualStudioVersion version) { this.version = version; if (version != null) { inputPins = new TaskPin[] { new ExclusivePin(this, typeof(Project), SystemTags.Sharp) }; outputPins = new TaskPin[] { new FlaggedPin(this, typeof(VisualStudioProject), version.Flag.ToString().Fnv32()) }; } }
public static bool FindEditorVersion(out VisualStudioVersion version) { List <VisualStudioVersion> versions = FindEditorVersions(); if (versions.Count != 0) { version = (versions[0] as VisualStudioVersion); } else { version = null; } return(version != null); }
public static string GetToolsVersion(VisualStudioVersion version) { switch (version.Flag) { case VisualStudioVersionFlag.VisualStudio2010: case VisualStudioVersionFlag.VisualStudio2012: return("4.0"); case VisualStudioVersionFlag.VisualStudio2013: return("12.0"); case VisualStudioVersionFlag.VisualStudio2015: return("14.0"); case VisualStudioVersionFlag.VisualStudio2017: return("15.0"); } return(string.Empty); }
public static string GetToolsetVersion(VisualStudioVersion version) { switch (version.Flag) { case VisualStudioVersionFlag.VisualStudio2010: return("v100"); case VisualStudioVersionFlag.VisualStudio2012: return("v110"); case VisualStudioVersionFlag.VisualStudio2013: return("v120"); case VisualStudioVersionFlag.VisualStudio2015: return("v140"); case VisualStudioVersionFlag.VisualStudio2017: return("v141"); } return(string.Empty); }
public VisualStudioProject(VisualStudioVersion version, IEnumerable <FileDescriptor> files, PathDescriptor projectRoot, string name, params object[] args) : base(files, projectRoot, name, args) { this.version = version; LoadGuid(); }
public VisualStudioSolution(FileDescriptor file, VisualStudioVersion version) { this.file = file; this.version = version; }
public VisualSharpProject(VisualStudioVersion version, IEnumerable <FileDescriptor> files, PathDescriptor projectRoot, string name) : base(version, files, projectRoot, "{0}.csproj", name) { }