visual studio - Specify separate .editorconfig files between debug and ...
...I am using VS 2019 16.8.3 and I want to specify some code analysis rules (dotnet_diagnostic.CAXXXX.severity) in the solution .editorconfig file, only for release builds....
https://stackoverflow.com/questions/65769873/specify-separate-editorconfig-files-between-debug-and-release-configurations
Customize your build by folder or solution - MSBuild
...Explore the special imports Directory.Build.props and Directory.Build.targets that you can use to customize the build system in Visual Studio....
https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=visualstudio
Understand Directory.Build.props: Centralizing .NET Project ...
...Notice that once a Directory.Build.props file is encountered, the search process upwards through the directory tree is halted. This is in contrast to files like .editorconfig, which support the root=true attribute to explicitly stop the search for configuration files further up the directory tree....
https://blog.ndepend.com/directory-build-props/
EditorConfig versus analyzers - Visual Studio (Windows)
...EditorConfig files can only be used to enable rules and set their severity in Visual Studio 2019 version 16.3 and later. EditorConfig files can't be used to configure legacy analysis, whereas rule sets can....
https://learn.microsoft.com/en-us/visualstudio/code-quality/analyzers-faq?view=visualstudio
msbuild - Why doesn't Directory.Build.props work when building a ...
...When I build the solution using MSBuild, I am able to generate the XML files properly. However, using a Build -> Rebuild Solution task in Visual Studio doesn't generate the XML file. Is there a difference in how Visual Studio 2017 builds and uses Directory.Build.props as opposed to MSbuild?...
https://stackoverflow.com/questions/52866794/why-doesnt-directory-build-props-work-when-building-a-solution-using-visual-stu
Configuration files for code analysis rules - .NET | Microsoft Learn
...Learn about different configuration files, including editorconfig and global config files, to configure code analysis rules....
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files
.editorconfig ignored in one Visual Studio project in the solution
...I would start experimenting with just one .editorconfig file, the one on the solution directory, to simplify the investigation....
https://stackoverflow.com/questions/79469301/editorconfig-ignored-in-one-visual-studio-project-in-the-solution
editorconfig-core-net/Directory.Build.props at master - GitHub
...EditorConfig Core library and command line utility written in C# for .NET/Mono http://editorconfig.org - editorconfig-core-net/Directory.Build.props at master · editorconfig/editorconfig-core-net...
https://github.com/editorconfig/editorconfig-core-net/blob/master/Directory.Build.props
Centralize .NET Project Settings using Directory.Build.Props and ...
...Utilizing Directory.Build.props and Directory.Package.props can simplify solution maintenance to a considerable extent. This approach facilitates smoother transitions from .NET 6 or 7 to......
https://medium.com/codenx/centralize-net-project-settings-using-directory-build-props-and-directory-package-props-d6b4a471c018
Simplify MSBuild Directory.Build.props and .targets files with vertical ...
...Directory.Build.props and Directory.Build.targets are two files that allow you to set default MSBuild items, properties, and targets for all projects under a given directory....
https://matt.kotsenas.com/posts/msbuild-targets-with-vertical-slices