dotnet / dotnet/sdk

Provide an easy toggle to control if Satellite Assembly generation should be run

Open
#42,865 1 comment 2 reactions 0 assignees View on GitHub
Area-NetSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Is your feature request related to a problem? Please describe.

When doing CI non-release builds generating satellite assemblies may not be necessary for some customers, instead taking up compilation time that could be saved. We should provide an easy toggle to skip generating satellite assemblies entirely for builds that are intended for smoke-checking, or other non-production use cases.

Today, skipping Satellite Assembly generation requires a relatively difficult workaround of explicitly setting `WithCulture="false"` on EmbeddedResource Items based on some user-specified Condition.

### Other Techs

* UWP has a concept of a [PRIResource](https://github.com/microsoft/WindowsAppSDK/blob/b829471ca1fc5b7d28288a901c1ed9c3650c30fd/dev/MRTCore/packaging/MrtCore.props#L28C6-L28C17) that is similar in nature to [Resx Satellite Assembly generation](https://github.com/microsoft/WindowsAppSDK/blob/b829471ca1fc5b7d28288a901c1ed9c3650c30fd/dev/MRTCore/packaging/MrtCore.PriGen.targets#L694-L764) - it would be good if a unified hook applied to all per-culture resource generation

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.