neo-devpack-dotnet icon indicating copy to clipboard operation
neo-devpack-dotnet copied to clipboard

nccs 3.3 emitting hidden warnings in code gen file

Open devhawk opened this issue 3 years ago • 2 comments

When I compile the registrar sample with nccs 3.3, there's a bunch of extraneous warnings about using directives in the generated .AssemblyInfo.cs file. It would be great if we didn't emit these warnings on the console

$ dotnet nccs  Registrar.cs obj\Debug\net6.0\.NETCoreApp,Version=v6.0.AssemblyAttributes.cs obj\Debug\net6.0\registrar.AssemblyInfo.cs --base-name registrar --debug --no-optimize --no-inline
C:\Users\harry\Source\neo\seattle\samples\registrar-sample\src\obj\Debug\net6.0\.NETCoreApp,Version=v6.0.AssemblyAttributes.cs(2,1): hidden CS8019: Unnecessary using directive.
C:\Users\harry\Source\neo\seattle\samples\registrar-sample\src\obj\Debug\net6.0\.NETCoreApp,Version=v6.0.AssemblyAttributes.cs(3,1): hidden CS8019: Unnecessary using directive.
C:\Users\harry\Source\neo\seattle\samples\registrar-sample\src\obj\Debug\net6.0\registrar.AssemblyInfo.cs(11,1): hidden CS8019: Unnecessary using directive.
C:\Users\harry\Source\neo\seattle\samples\registrar-sample\src\obj\Debug\net6.0\registrar.AssemblyInfo.cs(10,1): hidden CS8019: Unnecessary using directive.
Created C:\Users\harry\Source\neo\seattle\samples\registrar-sample\src\bin\sc\registrar.nef
Created C:\Users\harry\Source\neo\seattle\samples\registrar-sample\src\bin\sc\registrar.manifest.json
Created C:\Users\harry\Source\neo\seattle\samples\registrar-sample\src\bin\sc\registrar.nefdbgnfo

devhawk avatar Jun 07 '22 00:06 devhawk

It depends the source code, isn't it?

shargon avatar Jun 08 '22 17:06 shargon

These warnings are marked as hidden (specifically listed as hidden CS8019). Would be nice if nccs didn't show hidden warnings.

devhawk avatar Jun 08 '22 23:06 devhawk