© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
Denis

Validating XML files in CSPROJ

I have multiple XML files as project items. These files are filled by developers and are consumed on build by a source generator.

A dev can make a typo in the XML and the generator will fail. Yes, it is possible to introduce XML validation into the generator and outout diagnostics that specify the location of the error.

But, is it possible to do static XML validation via some XSD while it being edited from Visual Studio/Rider without relying on the generator diagnostics? So that the dev has instant feedback on what they are doing wrong, before they even compile.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Interpolating a csproj xml property in the text of another property?
C#CC# / help
4y ago
Copy folder in .csproj
C#CC# / help
3y ago
✅ How to create new cs and csproj files?
C#CC# / help
2y ago
✅ Local csproj
C#CC# / help
11mo ago