예제 #1
0
 public SolutionGenerator(VisualStudioVersion version)
 {
     this.version = version;
     if (version != null)
     {
         outputPins = new TaskPin[]
         {
             new TaskPin(this, typeof(VisualStudioSolution))
         };
         this.flag = version.Flag.ToString().Fnv32();
     }
 }
예제 #2
0
 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())
         };
     }
 }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }
예제 #6
0
 public VisualStudioProject(VisualStudioVersion version, IEnumerable <FileDescriptor> files, PathDescriptor projectRoot, string name, params object[] args)
     : base(files, projectRoot, name, args)
 {
     this.version = version;
     LoadGuid();
 }
예제 #7
0
 public VisualStudioSolution(FileDescriptor file, VisualStudioVersion version)
 {
     this.file    = file;
     this.version = version;
 }
예제 #8
0
 public VisualSharpProject(VisualStudioVersion version, IEnumerable <FileDescriptor> files, PathDescriptor projectRoot, string name)
     : base(version, files, projectRoot, "{0}.csproj", name)
 {
 }