Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio code analysis for generated files

Can somebody tell me why code analysis shows issues from generated files? I do check option as here: http://msdn.microsoft.com/en-us/library/dd742298.aspx

I think it has to do with the fact that I use TT tempate with my Entity framework models. But those files have tags on them..

like image 711
katit Avatar asked Feb 12 '26 05:02

katit


1 Answers

Can you have your TT templates output the following into the header?

//<autogenerated/>

Or to be more specific to certain items in file:

[GeneratedCode("MyTool", "1.0")]
public partial class GeneratedModel
{
...
like image 186
user7116 Avatar answered Feb 14 '26 18:02

user7116



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!