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.. 回答1: 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 { ...