gpt4 book ai didi

msbuild - aspnet_compiler 和 msbuild.exe

转载 作者:行者123 更新时间:2023-12-05 02:25:14 26 4
gpt4 key购买 nike

我对 msbuild 和 aspnet_compiler 还很陌生。

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

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

最佳答案

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

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

关于msbuild - aspnet_compiler 和 msbuild.exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1369250/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com