[FEATURE] Add Microsoft.CodeAnalysis.PublicApiAnalyzers (disabled warnings)#554
Conversation
|
Hi @marcin-krystianc, this PR is the first in a series aimed at addressing #415. I would greatly appreciate your guidance and feedback on it. Thanks! |
marcin-krystianc
left a comment
There was a problem hiding this comment.
Hi @MohamedM216,
thanks for opening the PR. There are some comments, but generally it looks good.
Consul/Consul.csproj
Outdated
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4"> | ||
| <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
There was a problem hiding this comment.
I don't think that IncludeAssets is necessary (I know in some blogs this is suggested approach, but as far I know it it is not needed)
| <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
Consul/Consul.csproj
Outdated
| <PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> | ||
| <PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="5.0.0.1" PrivateAssets="All" /> | ||
| <PackageReference Include="Microsoft.CSharp" Version="4.7.0"/> | ||
| <PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> |
There was a problem hiding this comment.
Unnecessary change, please revert.
Consul/Consul.csproj
Outdated
| <PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4"> | ||
| <PrivateAssets>all</PrivateAssets> | ||
| </PackageReference> |
There was a problem hiding this comment.
Let’s use the attribute notation; it is easier to read:
| <PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4"> | |
| <PrivateAssets>all</PrivateAssets> | |
| </PackageReference> | |
| <PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" PrivateAssets="All" /> |
marcin-krystianc
left a comment
There was a problem hiding this comment.
Perfect!
Thank you @MohamedM216
In the next PR try removing the RS0016
|
Thanks @marcin-krystianc
Great, I'm excited to continue with the next steps. And of course, if run into any issues, I'll reach out. |
Description
This PR introduces Microsoft.CodeAnalysis.PublicApiAnalyzers to help prevent accidental breaking changes
Related Issues
#415
Additional Context
Checklist
Please make sure to check the following before submitting your pull request: