Esempio n. 1
0
        public static void SetBuildEnvironmentOptions(Project proj, BuildEnvironmentOptions options)
        {
            var frameworkName = proj.GetPropertyValue("TargetFramework");

            if (frameworkName.Contains("netcore"))
            {
                proj.SetProperty("TargetFrameworkVersion", options.TargetNetCoreFrameworkVersion);
            }
            else
            {
                proj.SetProperty("TargetFrameworkVersion", options.TargetFrameworkVersion);
            }
        }
Esempio n. 2
0
        public static void SetBuildEnvironmentOptions(Project proj, BuildEnvironmentOptions options)
        {
            var frameworkName = proj.GetPropertyValue("TargetFramework");

            if (frameworkName.Contains("netcore"))
            {
                proj.SetProperty("TargetFrameworkVersion", options.TargetNetCoreFrameworkVersion);
            }
            else
            {
                proj.SetProperty("TargetFrameworkVersion", options.TargetFrameworkVersion);
            }
            proj.SetProperty("Features", "peverify-compat");             // https://developercommunity.visualstudio.com/content/problem/503750/operation-could-destabilize-the-runtime-and-peveri.html
        }