Conditional References in C# Project Files

added by DotNetKicks
2/14/2019 10:39:22 AM

2 Kicks, 546 Views

One really nice thing about the .NET Core tooling is the new csproj file format, which is a lot less verbose. For example, if you create a brand new C# library project, targeting .NET Standard 2.0, then here's the entirety of the .csproj file: netstandard2.0 It doesn't even require you to specify all the C# files to be compiled - it just assumes that all of them are wanted, which cuts down on a lot of noise.


0 comments