[英]Can you specify if aspnet_compiler.exe creates a debug or release build?
[英]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 中單擊“構建”時,它構建得很好。
當我嘗試在命令提示符( aspnet_compiler.exe -c -v temp -p \\absolute\\path\\to\\my\\solution\\directory
)下使用 aspnet_compiler 時,出現兩個錯誤並且構建失敗!
注意:我想使用 aspnet_compiler 來實現Luis Rocha 的預構建視圖。
我不知道為什么會發生這種情況(我仍然希望得到那個答案),但看起來 aspnet_compiler 工具不知道在哪里可以找到System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider
類型而沒有明確的說明web.config 文件。 VS 2010 內部的構建例程不知何故知道,我不明白為什么 aspnet_compiler 不這樣做!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.