See https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview?tabs=net-7#enable-on-build
IDEXXXX rules aren't validated in a dotnet build. Should we enable that validation by setting the EnforceCodeStyleInBuild property?
As an example, license headers aren't validated outside of a design time build inside VS:
|
# IDE0073: The file header is missing or not located at the top of the file |
|
dotnet_diagnostic.IDE0073.severity = warning |
Related:
@stephentoub @akoeplinger
See https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview?tabs=net-7#enable-on-build
IDEXXXXrules aren't validated in adotnet build. Should we enable that validation by setting theEnforceCodeStyleInBuildproperty?As an example, license headers aren't validated outside of a design time build inside VS:
runtime/eng/CodeAnalysis.src.globalconfig
Lines 1734 to 1735 in 2454fe6
Related:
@stephentoub @akoeplinger