mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 03:27:04 +09:00
Respond to feedback in GenerateMultiTargetRoslynComponentTargetsFile (#63943)
* Respond to feedback in GenerateMultiTargetRoslynComponentTargetsFile Two small follow up changes from #58446 - Fix a type-o that breaks incremental build. Forgot to use MSBuild property syntax - Instead of having the infrastructure hard-code removing 'Abstractions', packages can set their own Disable source gen property name. * PR feedback
This commit is contained in:
parent
eb8a502a0c
commit
d99fa6789a
3 changed files with 11 additions and 4 deletions
|
@ -86,5 +86,12 @@ In the analyzer project make sure to do the following. Ensure it only targets `n
|
|||
</PropertyGroup>
|
||||
```
|
||||
|
||||
In order to mitigate design-time/build-time performance issues with source generators, we generate build logic to allow the end user to disable the source generator from the package. By default, the MSBuild property an end user can set is named `Disable{PackageId}SourceGenerator`. If a package needs a custom property name, this can be overriden by setting the following property in the project that produces the package
|
||||
```xml
|
||||
<PropertyGroup>
|
||||
<DisableSourceGeneratorPropertyName>CustomPropertyName</DisableSourceGeneratorPropertyName>
|
||||
</PropertyGroup>
|
||||
```
|
||||
|
||||
### .NETFramework RID specific assets
|
||||
When targeting .NETFramework, RID specific assets are automatically added to the package if the project contains other compatible RID specific assets, mainly `netstandard2.0-windows`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue