Currently $(AssemblyName).AssemblyInfo.cs files produced by dotnet Sdk are analyzed by Roslyn. Adding <auto-generated /> element to the file comment will prevent this.
Running into this right now with my team. We are using StyleCop Analyzers. Building through Visual Studio works fine, using dotnet publish (v1.0.4) creates this issue.
This was fixed by #2207. Thanks @dasMulli! The fix will be available with VS 15.3 Preview 4 (and higher) and .NET Core SDK 2.0.0.
Most helpful comment
This was fixed by #2207. Thanks @dasMulli! The fix will be available with VS 15.3 Preview 4 (and higher) and .NET Core SDK 2.0.0.