Skip to content

Commit f893738

Browse files
committed
FB on naming
1 parent e39c153 commit f893738

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -359,16 +359,6 @@ Copyright (c) .NET Foundation. All rights reserved.
359359
-->
360360

361361
<ItemGroup>
362-
<RuntimeHostConfigurationOption Include="Internal.Runtime.InteropServices.ComponentActivator.IsSupported"
363-
Condition="'$(_EnableCallingManagedFunctionFromNativeHosting)' != ''"
364-
Value="$(_EnableCallingManagedFunctionFromNativeHosting)"
365-
Trim="true" />
366-
367-
<RuntimeHostConfigurationOption Include="Internal.Runtime.InteropServices.InMemoryAssemblyLoader.IsSupported"
368-
Condition="'$(EnableCPlusPlusCLIHostActivation)' != ''"
369-
Value="$(EnableCPlusPlusCLIHostActivation)"
370-
Trim="true" />
371-
372362
<RuntimeHostConfigurationOption Include="System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization"
373363
Condition="'$(EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization)' != ''"
374364
Value="$(EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization)"
@@ -426,6 +416,16 @@ Copyright (c) .NET Foundation. All rights reserved.
426416
Value="$(BuiltInComInteropSupport)"
427417
Trim="true" />
428418

419+
<RuntimeHostConfigurationOption Include="System.Runtime.InteropServices.CallingManagedFunctionFromNativeHosting.IsSupported"
420+
Condition="'$(_EnableCallingManagedFunctionFromNativeHosting)' != ''"
421+
Value="$(_EnableCallingManagedFunctionFromNativeHosting)"
422+
Trim="true" />
423+
424+
<RuntimeHostConfigurationOption Include="System.Runtime.InteropServices.CPlusPlusCLIHostActivation.IsSupported"
425+
Condition="'$(EnableCPlusPlusCLIHostActivation)' != ''"
426+
Value="$(EnableCPlusPlusCLIHostActivation)"
427+
Trim="true" />
428+
429429
<RuntimeHostConfigurationOption Include="System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization"
430430
Condition="'$(EnableUnsafeBinaryFormatterSerialization)' != ''"
431431
Value="$(EnableUnsafeBinaryFormatterSerialization)"

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -682,31 +682,31 @@ public void TrimmingOptions_are_defaulted_correctly_on_trimmed_apps(string targe
682682
{
683683
JObject runtimeConfig = JObject.Parse(runtimeConfigContents);
684684
runtimeConfig["runtimeOptions"]["configProperties"]
685-
["Internal.Runtime.InteropServices.ComponentActivator.IsSupported"].Value<bool>()
685+
["System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization"].Value<bool>()
686686
.Should().BeFalse();
687687
runtimeConfig["runtimeOptions"]["configProperties"]
688-
["Internal.Runtime.InteropServices.InMemoryAssemblyLoader.IsSupported"].Value<bool>()
688+
["System.Resources.ResourceManager.AllowCustomResourceTypes"].Value<bool>()
689689
.Should().BeFalse();
690690
runtimeConfig["runtimeOptions"]["configProperties"]
691-
["System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization"].Value<bool>()
691+
["System.Runtime.InteropServices.BuiltInComInterop.IsSupported"].Value<bool>()
692692
.Should().BeFalse();
693693
runtimeConfig["runtimeOptions"]["configProperties"]
694-
["System.Resources.ResourceManager.AllowCustomResourceTypes"].Value<bool>()
694+
["System.Runtime.InteropServices.CallingManagedFunctionFromNativeHosting.IsSupported"].Value<bool>()
695695
.Should().BeFalse();
696696
runtimeConfig["runtimeOptions"]["configProperties"]
697-
["System.Runtime.InteropServices.BuiltInComInterop.IsSupported"].Value<bool>()
697+
["System.Runtime.InteropServices.CPlusPlusCLIHostActivation.IsSupported"].Value<bool>()
698698
.Should().BeFalse();
699699
runtimeConfig["runtimeOptions"]["configProperties"]
700700
["System.StartupHookProvider.IsSupported"].Value<bool>()
701701
.Should().BeFalse();
702702
}
703703
else
704704
{
705-
runtimeConfigContents.Should().NotContain("Internal.Runtime.InteropServices.ComponentActivator.IsSupported");
706-
runtimeConfigContents.Should().NotContain("Internal.Runtime.InteropServices.InMemoryAssemblyLoader.IsSupported");
707705
runtimeConfigContents.Should().NotContain("System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization");
708706
runtimeConfigContents.Should().NotContain("System.Resources.ResourceManager.AllowCustomResourceTypes");
709707
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");
710710
runtimeConfigContents.Should().NotContain("System.StartupHookProvider.IsSupported");
711711
}
712712
}

0 commit comments

Comments
 (0)