Skip to content

nccs 3.3 emitting hidden warnings in code gen file #751

@devhawk

Description

@devhawk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions