Exemplo n.º 1
0
        static DotNetCoreSdk()
        {
            var sdkPaths = new DotNetCoreSdkPaths();

            sdkPaths.ResolveSDK();
            Update(sdkPaths);
        }
Exemplo n.º 2
0
        internal static DotNetCoreSdkPaths FindSdkPaths(string[] sdks)
        {
            var sdkPaths = new DotNetCoreSdkPaths();

            sdkPaths.ResolveSDK();
            sdkPaths.FindSdkPaths(sdks);
            return(sdkPaths);
        }
Exemplo n.º 3
0
        static DotNetCoreSdk()
        {
            var sdkPaths = new DotNetCoreSdkPaths();

            sdkPaths.FindMSBuildSDKsPath();

            Update(sdkPaths);
        }
Exemplo n.º 4
0
        internal static DotNetCoreSdkPaths FindSdkPaths(string sdk)
        {
            var sdkPaths = new DotNetCoreSdkPaths();

            sdkPaths.MSBuildSDKsPath = MSBuildSDKsPath;
            sdkPaths.FindSdkPaths(sdk);

            return(sdkPaths);
        }
Exemplo n.º 5
0
        static DotNetCoreSdk()
        {
            var sdkPaths = new DotNetCoreSdkPaths();

            sdkPaths.FindMSBuildSDKsPath();

            MSBuildSDKsPath = sdkPaths.MSBuildSDKsPath;
            IsInstalled     = !string.IsNullOrEmpty(MSBuildSDKsPath);
        }
        protected override void OnPrepareForEvaluation(MSBuildProject project)
        {
            base.OnPrepareForEvaluation(project);

            if (!HasSdk)
            {
                return;
            }

            sdkPaths = DotNetCoreSdk.FindSdkPaths(dotNetCoreMSBuildProject.Sdk);
        }
Exemplo n.º 7
0
        static string GetDotNetSdkLocation()
        {
            var dotNetCoreSdkPaths = new DotNetCoreSdkPaths();

            if (dotNetCoreSdkPaths.GetInstalledSdkVersions().Any())
            {
                dotNetCoreSdkPaths.ResolveSDK();
                return(dotNetCoreSdkPaths.MSBuildSDKsPath);
            }

            return(GetNotInstalledString());
        }
Exemplo n.º 8
0
        internal static void Update(DotNetCoreSdkPaths dotNetCoreSdkPaths)
        {
            RegisterProjectImportSearchPath(MSBuildSDKsPath, dotNetCoreSdkPaths.MSBuildSDKsPath);

            MSBuildSDKsPath = dotNetCoreSdkPaths.MSBuildSDKsPath;
            SdkRootPath     = dotNetCoreSdkPaths.SdkRootPath;
            IsInstalled     = !string.IsNullOrEmpty(MSBuildSDKsPath);
            Versions        = dotNetCoreSdkPaths.SdkVersions ?? Array.Empty <DotNetCoreVersion> ();

            if (!IsInstalled)
            {
                LoggingService.LogInfo(".NET Core SDK not found.");
            }
        }
Exemplo n.º 9
0
        static DotNetCoreSdk()
        {
            var sdkPaths = new DotNetCoreSdkPaths();

            sdkPaths.FindMSBuildSDKsPath();

            MSBuildSDKsPath = sdkPaths.MSBuildSDKsPath;
            IsInstalled     = !string.IsNullOrEmpty(MSBuildSDKsPath);

            if (!IsInstalled)
            {
                LoggingService.LogInfo(".NET Core SDK not found.");
            }
        }
        protected override void OnPrepareForEvaluation(MSBuildProject project)
        {
            base.OnPrepareForEvaluation(project);

            if (!HasSdk)
            {
                return;
            }

            sdkPaths = DotNetCoreSdk.FindSdkPaths(dotNetCoreMSBuildProject.Sdk);
            if (!sdkPaths.Exist)
            {
                return;
            }

            dotNetCoreMSBuildProject.ReadDefaultCompileTarget(project);
        }
Exemplo n.º 11
0
        static DotNetCoreSdk()
        {
            var sdkPaths = new DotNetCoreSdkPaths();

            sdkPaths.FindMSBuildSDKsPath();

            MSBuildSDKsPath = sdkPaths.MSBuildSDKsPath;
            IsInstalled     = !string.IsNullOrEmpty(MSBuildSDKsPath);
            Versions        = sdkPaths.SdkVersions;

            if (IsInstalled)
            {
                GetPreviewNetStandard20LibraryVersion();
            }

            if (!IsInstalled)
            {
                LoggingService.LogInfo(".NET Core SDK not found.");
            }
        }
Exemplo n.º 12
0
        static DotNetCoreSdk()
        {
            var sdkPaths = new DotNetCoreSdkPaths();

            sdkPaths.FindMSBuildSDKsPath();

            MSBuildSDKsPath = sdkPaths.MSBuildSDKsPath;
            IsInstalled     = !string.IsNullOrEmpty(MSBuildSDKsPath);
            Versions        = sdkPaths.SdkVersions ?? new DotNetCoreVersion [0];

            if (!IsInstalled)
            {
                LoggingService.LogInfo(".NET Core SDK not found.");
            }

            if (IsInstalled)
            {
                SetFSharpShims();
            }
        }
Exemplo n.º 13
0
        void ConfigureMSBuildSDKsPath()
        {
            var paths = new DotNetCoreSdkPaths();

            paths.FindMSBuildSDKsPath();
        }