为什么我会当我编译我的网站aspnet_compiler.exe生成错误,而不是当我VS的构建工具? [英] Why do I get build errors when I compile my site with aspnet_compiler.exe, but not when I VS's build tool?
问题描述
我有项目,MVC,测试,数据访问等解决方案时,我在VS 2010中单击构建它建立的罚款。
I have a solution with projects for MVC, testing, data access, etc which builds fine when I click "build" in VS 2010.
当我尝试在命令提示符下使用aspnet_compiler( aspnet_compiler.exe -v -c -p温度\\绝对\\路径\\为\\我的\\解决方案\\目录
) ,我得到两个错误和构建失败!
When I try to use aspnet_compiler at the command prompt (aspnet_compiler.exe -c -v temp -p \absolute\path\to\my\solution\directory
), I get two errors and the build fails!
- C:\\ myFrameworkPath \\临时ASP.NET文件\\ TEMP \\ 6d21e425 \\ 4455c27d \\ App_Web_y5rq3jcy.0.vb(17):警告BC40056:在进口'myExternalLib.Controls指定的命名空间或类型不包含任何公开构件或无法找到。确保命名空间或类型被定义,并包含至少一个公共元件。确保导入的元素名不使用任何别名。
- C:\\ myFrameworkPath \\ CONFIG \\ web.config中(130):错误ASPCONFIG:未能加载类型'System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider
请注意:我想用aspnet_compiler实现路易斯Rocha的 pre建设的意见。
NOTE: I want to use aspnet_compiler to implement Luis Rocha's pre building views.
推荐答案
我不知道的为什么的这一点(我仍preFER有这个答案),但是它看起来像aspnet_compiler工具不知道在哪里可以找到 System.Data.Entity.Design.AspNet .EntityDesignerBuildProvider
键入没有在web.config文件中明确说明。 VS 2010的内部构建例行莫名其妙地知道,我不明白为什么aspnet_compiler不会做同样的!
I don't know why this happen (and I would still prefer to have that answer), but it looks like the aspnet_compiler tool does not know where to find the System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider
type without explicit instructions in the web.config file. The build routine inside of VS 2010 somehow knows, and I do not understand why aspnet_compiler does not do the same!
这篇关于为什么我会当我编译我的网站aspnet_compiler.exe生成错误,而不是当我VS的构建工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!