System.AppContextDefaultValues.PopulateDefaultValuesPartial C# (CSharp) Method

PopulateDefaultValuesPartial() static private method

static private PopulateDefaultValuesPartial ( string platformIdentifier, string profile, int targetFrameworkVersion ) : void
platformIdentifier string
profile string
targetFrameworkVersion int
return void
        static partial void PopulateDefaultValuesPartial(string platformIdentifier, string profile, int targetFrameworkVersion)
        {
            switch (platformIdentifier)
            {
                case ".NETFramework":
                    {
                        if (targetFrameworkVersion <= 40701)
                        {
                            LocalAppContext.DefineSwitchDefault(BuildTasksAppContextSwitches.DoNotUseSha256ForMarkupCompilerChecksumAlgorithmSwitchName, true);
                        }

                        break;
                    }

                case ".NETCoreApp":
                    {
                        InitializeNetFxSwitchDefaultsForNetCoreRuntime();
                    }
                    break;
            }
        }

Usage Example

Example #1
0
        // Token: 0x06000256 RID: 598 RVA: 0x00005EB0 File Offset: 0x000040B0
        public static void PopulateDefaultValues()
        {
            string platformIdentifier;
            string profile;
            int    version;

            AppContextDefaultValues.ParseTargetFrameworkName(out platformIdentifier, out profile, out version);
            AppContextDefaultValues.PopulateDefaultValuesPartial(platformIdentifier, profile, version);
        }