The -validate CLI option is gated behind the FEATURE_XML_SCHEMA_VALIDATION constant, which is enabled only in .NET Framework, but the underlying APIs are available in modern .NET too.
This issue tracks adding this feature to the modern .NET flavor of MSBuild. It should be trivial (just removing the ifdefs, which I have done locally in a branch), unless I'm missing something.
The
-validateCLI option is gated behind theFEATURE_XML_SCHEMA_VALIDATIONconstant, which is enabled only in .NET Framework, but the underlying APIs are available in modern .NET too.This issue tracks adding this feature to the modern .NET flavor of MSBuild. It should be trivial (just removing the ifdefs, which I have done locally in a branch), unless I'm missing something.