Skip to content

Commit 376cfcd

Browse files
committed
property name change
1 parent f893738 commit 376cfcd

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ILLink.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Copyright (c) .NET Foundation. All rights reserved.
3838
<CustomResourceTypesSupport Condition="'$(CustomResourceTypesSupport)' == ''">false</CustomResourceTypesSupport>
3939
<EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization Condition="'$(EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization)' == ''">false</EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization>
4040
<BuiltInComInteropSupport Condition="'$(BuiltInComInteropSupport)' == ''">false</BuiltInComInteropSupport>
41-
<EnableCPlusPlusCLIHostActivation Condition="'$(EnableCPlusPlusCLIHostActivation)' == ''">false</EnableCPlusPlusCLIHostActivation>
42-
<_EnableCallingManagedFunctionFromNativeHosting Condition="'$(_EnableCallingManagedFunctionFromNativeHosting)' == ''">false</_EnableCallingManagedFunctionFromNativeHosting>
41+
<EnableCppCLIHostActivation Condition="'$(EnableCppCLIHostActivation)' == ''">false</EnableCppCLIHostActivation>
42+
<_EnableConsumingManagedCodeFromNativeHosting Condition="'$(_EnableConsumingManagedCodeFromNativeHosting)' == ''">false</_EnableConsumingManagedCodeFromNativeHosting>
4343
</PropertyGroup>
4444

4545
<PropertyGroup Condition="'$(SuppressTrimAnalysisWarnings)' == '' And ('$(EnableTrimAnalyzer)' == 'true' Or '$(PublishTrimmed)' == 'true')">

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -416,14 +416,14 @@ Copyright (c) .NET Foundation. All rights reserved.
416416
Value="$(BuiltInComInteropSupport)"
417417
Trim="true" />
418418

419-
<RuntimeHostConfigurationOption Include="System.Runtime.InteropServices.CallingManagedFunctionFromNativeHosting.IsSupported"
420-
Condition="'$(_EnableCallingManagedFunctionFromNativeHosting)' != ''"
421-
Value="$(_EnableCallingManagedFunctionFromNativeHosting)"
419+
<RuntimeHostConfigurationOption Include="System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting"
420+
Condition="'$(_EnableConsumingManagedCodeFromNativeHosting)' != ''"
421+
Value="$(_EnableConsumingManagedCodeFromNativeHosting)"
422422
Trim="true" />
423423

424-
<RuntimeHostConfigurationOption Include="System.Runtime.InteropServices.CPlusPlusCLIHostActivation.IsSupported"
425-
Condition="'$(EnableCPlusPlusCLIHostActivation)' != ''"
426-
Value="$(EnableCPlusPlusCLIHostActivation)"
424+
<RuntimeHostConfigurationOption Include="System.Runtime.InteropServices.EnableCppCLIHostActivation"
425+
Condition="'$(EnableCppCLIHostActivation)' != ''"
426+
Value="$(EnableCppCLIHostActivation)"
427427
Trim="true" />
428428

429429
<RuntimeHostConfigurationOption Include="System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization"

src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -691,10 +691,10 @@ public void TrimmingOptions_are_defaulted_correctly_on_trimmed_apps(string targe
691691
["System.Runtime.InteropServices.BuiltInComInterop.IsSupported"].Value<bool>()
692692
.Should().BeFalse();
693693
runtimeConfig["runtimeOptions"]["configProperties"]
694-
["System.Runtime.InteropServices.CallingManagedFunctionFromNativeHosting.IsSupported"].Value<bool>()
694+
["System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting"].Value<bool>()
695695
.Should().BeFalse();
696696
runtimeConfig["runtimeOptions"]["configProperties"]
697-
["System.Runtime.InteropServices.CPlusPlusCLIHostActivation.IsSupported"].Value<bool>()
697+
["System.Runtime.InteropServices.EnableCppCLIHostActivation"].Value<bool>()
698698
.Should().BeFalse();
699699
runtimeConfig["runtimeOptions"]["configProperties"]
700700
["System.StartupHookProvider.IsSupported"].Value<bool>()
@@ -705,8 +705,8 @@ public void TrimmingOptions_are_defaulted_correctly_on_trimmed_apps(string targe
705705
runtimeConfigContents.Should().NotContain("System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization");
706706
runtimeConfigContents.Should().NotContain("System.Resources.ResourceManager.AllowCustomResourceTypes");
707707
runtimeConfigContents.Should().NotContain("System.Runtime.InteropServices.BuiltInComInterop.IsSupported");
708-
runtimeConfigContents.Should().NotContain("System.Runtime.InteropServices.CallingManagedFunctionFromNativeHosting.IsSupported");
709-
runtimeConfigContents.Should().NotContain("System.Runtime.InteropServices.CPlusPlusCLIHostActivation.IsSupported");
708+
runtimeConfigContents.Should().NotContain("System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting");
709+
runtimeConfigContents.Should().NotContain("System.Runtime.InteropServices.EnableCppCLIHostActivation");
710710
runtimeConfigContents.Should().NotContain("System.StartupHookProvider.IsSupported");
711711
}
712712
}

0 commit comments

Comments
 (0)