Skip to content

The interop source generators generate an empty file if unused. #76298

@teo-tsirpanis

Description

@teo-tsirpanis

On a blank .NET 7 app the JSImport, JSExport and LibraryImport generators always generate a file with only /// <auto-generated/> in it, even if we don't use the generators at all. Not a bug, but the regex and JSON generators don't generate any file by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Runtime.InteropServicesenhancementProduct code improvement that does NOT require public API changes/additionssource-generatorIndicates an issue with a source generator feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions