Пример #1
0
 public FrameworkEnvironment(string projectPath, bool sdkProject)
 {
     ToolsPath         = LocateToolsPath();
     ExtensionsPath    = Path.GetFullPath(Path.Combine(ToolsPath, @"..\..\"));
     SDKsPath          = Path.Combine(sdkProject ? DotnetPathResolver.ResolvePath(projectPath) : ExtensionsPath, "Sdks");
     RoslynTargetsPath = Path.Combine(ToolsPath, "Roslyn");
 }
Пример #2
0
        public CoreEnvironment(string projectPath)
        {
            string dotnetPath = DotnetPathResolver.ResolvePath(projectPath);

            ToolsPath         = dotnetPath;
            ExtensionsPath    = dotnetPath;
            SDKsPath          = Path.Combine(dotnetPath, "Sdks");
            RoslynTargetsPath = Path.Combine(dotnetPath, "Roslyn");
        }