Type of issue
Code does not work
Description
I needed to do this to get it to work <AdditionalFiles Include="$(MSBuildThisFileDirectory)CodeMetricsConfig.txt" /> otherwise it couldn't find the file. So the addition of $(MSBuildThisFileDirectory) is necessary here.
Page URL
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1502
Content source URL
https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/quality-rules/ca1502.md
Document Version Independent Id
b88d281d-59fd-353b-3548-ac5f9db0c49d
Platform Id
3dda7176-d691-3fe3-d0f0-0e18bb81c72f
Article author
@gewarren
Metadata
- ID: f1148f2d-f598-9a79-2036-aa8b302f8bd3
- PlatformId: 3dda7176-d691-3fe3-d0f0-0e18bb81c72f
- Service: dotnet-fundamentals
Type of issue
Code does not work
Description
I needed to do this to get it to work
<AdditionalFiles Include="$(MSBuildThisFileDirectory)CodeMetricsConfig.txt" />otherwise it couldn't find the file. So the addition of$(MSBuildThisFileDirectory)is necessary here.Page URL
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1502
Content source URL
https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/quality-rules/ca1502.md
Document Version Independent Id
b88d281d-59fd-353b-3548-ac5f9db0c49d
Platform Id
3dda7176-d691-3fe3-d0f0-0e18bb81c72f
Article author
@gewarren
Metadata