Skip to content

Commit

Permalink
Simplify AssemblyInfo.cs
Browse files Browse the repository at this point in the history
It would be possible to set the `CLSCompliantAttribute` to true in the csproj directly with the .NET 6 SDK and get rid of AssemblyInfo.cs but that's 5 lines of XML, see dotnet/msbuild#6285

So let's keep it simple with a one line assembly attribute instead.
  • Loading branch information
0xced committed Nov 4, 2021
1 parent 6fc17ba commit bba2331
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Properties/AssemblyInfo.cs
@@ -1,4 +1 @@
using System;

// Can't use AssemblyAttribute MSBuild item yet, see https://github.com/dotnet/msbuild/issues/2281
[assembly: CLSCompliant(true)]
[assembly: System.CLSCompliant(true)]

0 comments on commit bba2331

Please sign in to comment.