File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ reported a the [GibHub repository](https://github.com/dotnet-project-file-analyz
8888* [ ** Proj0034** Import statement could not be resolved by the analyzer] ( rules/Proj0034.md )
8989* [ ** Proj0035** Remove deprecated RestoreProjectStyle property] ( rules/Proj0035.md )
9090* [ ** Proj0036** Remove None when redundant] ( rules/Proj0036.md )
91- * [ ** Proj0037** Exclude compile when all assets are private] ( rules/Proj0037.md )
91+ * [ ** Proj0037** Exclude runtime when all assets are private] ( rules/Proj0037.md )
9292
9393### Packaging
9494* [ ** Proj0200** Define IsPackable explicitly] ( rules/Proj0200.md )
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ parent: General
33ancestor : MSBuild
44---
55
6- # Proj0037: Exclude compile when all assets are private
6+ # Proj0037: Exclude runtime when all assets are private
77For some ` <PackageReference> ` s (code generators, analyzers, etc.) the
88referenced package does not contain any assembly that should be accessible
9- while compiling it . This is indicated by ` PrivateAssets="all" ` . Without also
10- specifying ` ExcludeAssets="compile " ` however, the IDE might still suggest to
11- access code shipped with the package which would fail runtime.
9+ runtime . This is indicated by ` PrivateAssets="all" ` . Without also specifying
10+ ` ExcludeAssets="runtime " ` however, the IDE might still suggest to access code
11+ shipped with the package which would fail runtime.
1212
1313## Non-compliant
1414``` xml
@@ -34,7 +34,7 @@ access code shipped with the package which would fail runtime.
3434 </PropertyGroup >
3535
3636 <ItemGroup >
37- <PackageReference Include =" DotNetProjectFile.Analyzers" Version =" 1.5.10.1" PrivateAssets =" all" ExcludeAssets =" compile " />
37+ <PackageReference Include =" DotNetProjectFile.Analyzers" Version =" 1.5.10.1" PrivateAssets =" all" ExcludeAssets =" runtime " />
3838 </ItemGroup >
3939
4040</Project >
You can’t perform that action at this time.
0 commit comments