Skip to content

Commit 6df11c1

Browse files
committed
compile => runtime
1 parent 4103582 commit 6df11c1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

rules/Proj0037.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ parent: General
33
ancestor: MSBuild
44
---
55

6-
# Proj0037: Exclude compile when all assets are private
6+
# Proj0037: Exclude runtime when all assets are private
77
For some `<PackageReference>`s (code generators, analyzers, etc.) the
88
referenced 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>

0 commit comments

Comments
 (0)