Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates should have the <auto-generated /> tag as first line #39

Closed
bvli opened this issue Jun 2, 2017 · 0 comments
Closed

Templates should have the <auto-generated /> tag as first line #39

bvli opened this issue Jun 2, 2017 · 0 comments

Comments

@bvli
Copy link
Contributor

bvli commented Jun 2, 2017

On projects with analyzers enabled - the analyzers will/could fail on the generated code.

If the generated code is marked with a <auto-generated /> comment as the first line, the file will be ignored by the analyzer.

obj\Debug\netcoreapp1.1\ThisAssembly.GitInfo.g.cs(29,17,29,29): error SA1205: Partial elements must declare an access modifier
obj\Debug\netcoreapp1.1\ThisAssembly.GitInfo.g.cs(28,3,28,5): error SA1515: Single-line comment must be preceded by blank line
@kzu kzu closed this as completed in #40 Jun 4, 2017
@devlooped devlooped locked and limited conversation to collaborators Sep 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant