lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

CLSCompliant warnings (CS3021) when building MultiTarget #120

Open copygirl opened 5 years ago

copygirl commented 5 years ago

When building the Lidgren.Network.MultiTarget project, I currently get tons of warnings like 'NetBitWriter.ReadUInt16(byte[], int, int)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [Lidgren.Network.MultiTarget]

I was able to fix this by adding a file Properties/AssemblyInfo.cs in the MultiTarget project folder with just the line [assembly: System.CLSCompliant(true)].

It might also be worth noting that the auto-generated AssemblyInfo for this project uses the version 1.0.0.0 instead of 2012.1.7.0.