-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Couple fixes for UseSystemResourceKeys (#103463)
Fixes #102303. * Set a default value for the feature switch * Make it possible to preinitialize the static constructor * Fix generation of substitutions XML * Update SR.vb to match SR.cs * Fix resources in System.Diagnostics.FileVersionInfo.csproj @dotnet/illink
- Loading branch information
1 parent
ac996f3
commit a0b8890
Showing
7 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
<linker> | ||
<!-- System.Resources.UseSystemResourceKeys removes resource strings and instead uses the resource key as the exception message --> | ||
<assembly fullname="{AssemblyName}" feature="System.Resources.UseSystemResourceKeys" featurevalue="true"> | ||
<!-- System.Resources.UseSystemResourceKeys removes resource strings and instead uses the resource key as the exception message --> | ||
<resource name="{StringResourcesName}.resources" action="remove" /> | ||
<type fullname="System.SR"> | ||
<method signature="System.Boolean UsingResourceKeys()" body="stub" value="true" /> | ||
<method signature="System.Boolean GetUsingResourceKeysSwitchValue()" body="stub" value="true" /> | ||
</type> | ||
</assembly> | ||
<assembly fullname="{AssemblyName}" feature="System.Resources.UseSystemResourceKeys" featurevalue="false"> | ||
<type fullname="System.SR"> | ||
<method signature="System.Boolean UsingResourceKeys()" body="stub" value="false" /> | ||
<method signature="System.Boolean GetUsingResourceKeysSwitchValue()" body="stub" value="false" /> | ||
</type> | ||
</assembly> | ||
</linker> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters