Conversation
|
Nice that you want to use the .NET project file analyzers! Two tips:
|
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <SignAssembly>true</SignAssembly> | ||
| <AssemblyOriginatorKeyFile>../../assets/Destructurama.snk</AssemblyOriginatorKeyFile> | ||
| <NoWarn>$(NoWarn);Proj0003;Proj0010;Proj0028;Proj0200;Proj0201;Proj0205;Proj0206;Proj0208;Proj0213;Proj0214;Proj0215;Proj0216;Proj0240;Proj0243;Proj0400;Proj0800;Proj1001;Proj1003;</NoWarn> |
There was a problem hiding this comment.
If you want to disable these, you better use a .globalconfig file.
There was a problem hiding this comment.
I prefer to use editorconfig for all projects I participate of. For now it's just a first attempt to use analyzer. I evaluate pros and cons. My goal is to find reasonable set of diagnostics and those ones that have a little value.
There was a problem hiding this comment.
I prefer to use editorconfig for all projects I participate of. For now it's just a first attempt to use analyzer. I evaluate pros and cons. My goal is to find reasonable set of diagnostics and those ones that have a little value.
That is true. However, MS itself states that the configuration of files should be specified in the .globalconfig instead of the .editorconfig. Some rules (including the of .NET project file analyzers) can not be configured in .editorconfig, but can be configured in .globalconfig.
There was a problem hiding this comment.
MS itself states that the configuration of files should be specified in the .globalconfig instead of the .editorconfig
Could you please point to the relevant documentation?
There was a problem hiding this comment.
The link can be found here:
https://dotnet-project-file-analyzers.github.io/general/configuration.html
|
@Corniel regarding
What do you mean? I added analyzer into Directory.Build.props applying it to all projects.
I've read about it. For now it looks like rather invasive solution. I would not want to lose the usual structure of many projects without good reason. |
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<PackageReference Include="DotNetProjectFile.Analyzers" Version="1.5.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="MinVer" Version="6.0.0" PrivateAssets="All" />
</ItemGroup>So, the
I have to admit that is the response I got quite often when suggesting it. And when I came up with the idea, it really felt like it. But in practice, you get a way less cumbersome solution file, and an easy to maintain container project just for files shared by the solution. That being said, if you want to give it a try, you probably should do it in a separate PR. |
ooops, my oversight |
I doubt it very much, especially in the words less cumbersome solution file. I do not see difficulty in the current project format. What cumbersome solution file are you talking about?
Could you please provide PR to demonstrate so I can evaluate? |
Yep, I expected such an answer. |
Co-authored-by: Corniel Nobel <corniel@gmail.com>
# Conflicts: # src/Directory.Build.props
Honestly I do not understand what I will get. |
|
This pull request was marked as stale since it has not been active for a long time |
|
This pull request was marked as stale since it has not been active for a long time |
|
This pull request was marked as stale since it has not been active for a long time |
|
This pull request was marked as stale since it has not been active for a long time |
|
This pull request was marked as stale since it has not been active for a long time |
|
This pull request was marked as stale since it has not been active for a long time |
|
This pull request was marked as stale since it has not been active for a long time |
|
This pull request was marked as stale since it has not been active for a long time |
|
Closed in favor of #209 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #143 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 259 259
Branches 40 40
=========================================
Hits 259 259 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.