1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 03:27:04 +09:00
Satori/eng/ILLink.Substitutions.Resources.template
Michal Strehovský a0b8890f98
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
2024-06-17 23:55:25 +02:00

16 lines
944 B
Text

<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">
<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>