开发者

Any way to get VS to recognise ReSharper razor errors and fail compilation

开发者 https://www.devze.com 2023-03-09 15:55 出处:网络
Is there any way to do this? The razor support in ReSharper 6 is excellent, and it would be nice for the compiler to recognise razor view 开发者_开发知识库errors as compile time errors.Currently, ther

Is there any way to do this? The razor support in ReSharper 6 is excellent, and it would be nice for the compiler to recognise razor view 开发者_开发知识库errors as compile time errors.


Currently, there is no way treat ReSharper errors as compile errors. But you can enable Solution Wide Analysis and will be informed if there are any errors in solution from ReSharper. Also, you can enable own Microsoft analysis of views during build time - look at this article http://haacked.com/archive/2011/05/09/compiling-mvc-views-in-a-build-environment.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消