Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Perez Rodriguez <joperezr@microsoft.com>2020-06-30 22:24:39 +0300
committerGitHub <noreply@github.com>2020-06-30 22:24:39 +0300
commit4a683afec06f01e21651e7da1e6996277665e0ce (patch)
tree333475bff69f627632ae90156e3e03c146ab4767 /eng/ILLink.Substitutions.Resources.template
parenta034f6d419d2d0f3ab5ddfb4825956075e7455ee (diff)
Adding generation of substitution files for trimming out resources when feature switch is present (#38397)
* Adding generation of substitution files for trimming out resources when feature switch is present * Adding support for CoreLib as well and fix issue with SR returning empty string * Cache result of AppContext Switch lookup * Fixing allConfigurations leg and addressing feedback * Fixing thread safety issue by removing caching * Addressing feedback * Apply suggestions from code review Co-authored-by: Jan Kotas <jkotas@microsoft.com> * Addressing feedback and adding tests * Fix typo Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Diffstat (limited to 'eng/ILLink.Substitutions.Resources.template')
-rw-r--r--eng/ILLink.Substitutions.Resources.template10
1 files changed, 10 insertions, 0 deletions
diff --git a/eng/ILLink.Substitutions.Resources.template b/eng/ILLink.Substitutions.Resources.template
new file mode 100644
index 00000000000..9381443ba39
--- /dev/null
+++ b/eng/ILLink.Substitutions.Resources.template
@@ -0,0 +1,10 @@
+<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" />
+ </type>
+ </assembly>
+</linker>