开发者

Validate .CS code files in Umbraco

I'm using TeamCity as our CI tool for an Umbraco codebase. As Umbraco uses non-compiled, CodeFile="MyFile.cs" instead of compiled Codebehind files, running compilation tools on the site does not pick up any coding errors.

How has anyone else added veri开发者_如何学Pythonfication / validation to a non-compiled codebase of this sort? Is there nothing I can do to check that code is correct as possible? Any tricks of the trade here?

Thanks, Chris.


For our Umbraco projects we are using web application projects so they do get compiled, this has worked well for us.

Another potential option would be to pre-compile the site, I have used this method on other projects with some success but not with Umbraco.


What happens if you set the .cs files to Compile in the project?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜