aspnet-compiler - aspnet_compiler ASPParse 无法加载类型

标签 aspnet-compiler

我无法在我们的构建环境中构建我的 Web 应用程序(不是网站)。我们在我们的构建环境中使用 DMAKE(不幸的是,这是不可协商的,因此不允许使用 MSBUILD)以及通过调用 asp.net 预编译器时

C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -d -nologo -p Site -f -fixednames -errorstack -v/Debug

我们得到以下错误

错误 ASPPARSE:无法加载类型“X.Y.Admin.Site.Global”

如果我从ide编译它是成功的。如果我然后用 aspnet_complier 编译它就成功了。因此,当我尝试编译的目标 dll 位于我正在编译的 Web 应用程序的 bin 中时,我只能使用 aspnet_compiler 成功编译。

我不断遇到谈论使用 MSBUILD 的解决方案的帖子,不幸的是我无法尝试。

任何帮助,将不胜感激

最佳答案

我们的 Web 应用程序也遇到了同样的问题:
错误 ASPPARSE:无法加载类型“...”

问题是我们在磁盘上(在项目文件夹中)有该文件,但它没有包含在我们的应用程序项目中(在 .csproj 文件中)。我们通过在项目中包含文件解决了这个问题:)

关于aspnet-compiler - aspnet_compiler ASPParse 无法加载类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/310269/

相关文章:

msbuild - aspnet_compiler 和 msbuild.exe

asp.net - 从命令行为 Visual Studio 网站项目运行相当于 "Build Page"命令

c# - aspnet_compiler.exe 有什么特别之处吗?

asp.net - 使用 aspnet_compiler.exe 编译 .Net Web Apps

asp.net - AspNetCompiler 包括不在我的项目中的文件

c# - 避免 aspnet_compiler 运行 PreApplicationStart 方法

asp.net - 为什么 ASP.NET 控件上的事件处理程序属性的属性有前缀(加载事件处理程序的 OnLoad)

visual-studio - 错误的Visual Studio发布

c# - System.Web.Mvc 5.2.2.0 与 aspnet_compiler 的 5.2.3.0 版本控制问题