aspnet_compiler和msbuild.exe [英] aspnet_compiler and msbuild.exe

查看:67
本文介绍了aspnet_compiler和msbuild.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对msbuild和aspnet_compiler还是很陌生.

I am pretty new to msbuild and aspnet_compiler.

我正在使用aspnet_compiler来编译Web应用程序项目.现在,我刚刚看到MSBuild.exe,并注意到它将我的网站构建到/mywebsite/precompiledWeb文件夹中.现在为什么需要使用MSBuild.exe?我不能直接使用aspnet_compiler来查看我的网站是否可以正确构建吗?

I am using aspnet_compiler to compile web application project. Now I just saw the MSBuild.exe and noticed that its builds my website into the /mywebsite/precompiledWeb folder. Now why do I need to use MSBuild.exe? Can't I directly use the aspnet_compiler to see if my website can be built properly?

(不确定我是否解释得很好).

(Not sure if I explained it very well).

推荐答案

msbuild.exe通常用于构建项目及其依赖项.当您拥有一个带有项目文件的Web应用程序项目时,vs可以使用它不仅构建您的Web项目,而且可以构建所有涉及的依赖项.这样只会构建您的源代码文件,而不是标记文件(.aspx,.ascx等).

msbuild.exe is usually used to build projects and its dependencies. When you have a web application project with a project file, vs can use this to build not only your web project but all the dependencies involved. This would only build your source code files, not the markup files (.aspx,.ascx,.etc).

aspnet_compiler用于构建没有项目文件的网站项目.也就是说,您也可以使用它来确保还为您的Web应用程序项目构建了标记文件.

aspnet_compiler is meant to build a web site project that doesn't have a project file. This said, you can also use it to make sure your markup files are also built for your web application project.

这篇关于aspnet_compiler和msbuild.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆