Ejemplo n.º 1
0
 public MsNetTargetRuntime(bool running)
 {
     winDir       = Path.GetFullPath(Environment.SystemDirectory + "\\..");
     rootDir      = winDir + "\\Microsoft.NET\\Framework";
     newFxDir     = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
     newFxDir     = newFxDir + "\\Reference Assemblies\\Microsoft\\Framework";
     this.running = running;
     execHandler  = new MsNetExecutionHandler();
 }
Ejemplo n.º 2
0
        public MsNetTargetRuntime(bool running)
        {
            winDir  = Path.GetFullPath(Environment.SystemDirectory + "\\..");
            rootDir = winDir + "\\Microsoft.NET\\Framework";

            string programFilesX86 = GetProgramFilesX86();

            newFxDir   = programFilesX86 + "\\Reference Assemblies\\Microsoft\\Framework";
            msbuildDir = programFilesX86 + "\\MSBuild";

            this.running = running;
            execHandler  = new MsNetExecutionHandler();
        }
Ejemplo n.º 3
0
        public MsNetTargetRuntime(bool running)
        {
            winDir  = Path.GetFullPath(Environment.SystemDirectory + "\\..");
            rootDir = winDir + "\\Microsoft.NET\\Framework";

            // ProgramFilesX86 is broken on 32-bit WinXP
            string programFilesX86 = Environment.GetFolderPath(
                IntPtr.Size == 8? Environment.SpecialFolder.ProgramFilesX86 : Environment.SpecialFolder.ProgramFiles);

            newFxDir     = programFilesX86 + "\\Reference Assemblies\\Microsoft\\Framework";
            this.running = running;
            execHandler  = new MsNetExecutionHandler();
        }
Ejemplo n.º 4
0
        public MsNetTargetRuntime(bool running)
        {
            winDir  = Path.GetFullPath(Environment.SystemDirectory + "\\..");
            rootDir = winDir + "\\Microsoft.NET\\Framework";

            string programFilesX86 = GetProgramFilesX86();

            newFxDir   = programFilesX86 + "\\Reference Assemblies\\Microsoft\\Framework";
            msbuildDir = GetMSBuildBinPath("15.0");                                // C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin
            msbuildDir = Path.GetDirectoryName(Path.GetDirectoryName(msbuildDir)); // C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild

            this.running = running;
            execHandler  = new MsNetExecutionHandler();
        }