DEV Community


Discussion on: How to update my .NET C# compiler (csc)?

sharpninja profile image
The Sharp Ninja

The csproj file has actually been around as long as C# has, and it has always been an XML file. When they reworked the project file for Dotnet Core they actually did make it JSON at first, but they decided to stick with XML. I'm sure the fact that the project file is actually a valid MSBuild script had a lot to do with that decision. You can define MSBuild tasks and use them right in the csproj file to do things like move resources around before or after compiling code.

Thread Thread
sharpninja profile image