I am using VS2010 and developing a Web Application in ASP.NET with VB code behind. .NET Framework 4.
我正在使用VS2010并在ASP.NET中使用VB代码开发Web应用程序。 .NET Framework 4。
Since creating a number of build configurations (Debug, Test, PreDel, Live etc) I am now being driven nuts by the fact that every time I do a solution rebuild I have to go to explorer and copy all the build files (dlls, pdbs etc) from their respective build folder (so for the Debug build that is bin\x86\Debug) into the base Bin folder. Otherwise when I run/debug the app all the breakpoints just show the little yellow triangle thing and the app ignores them.
由于创建了许多构建配置(Debug,Test,PreDel,Live等),我现在因为每次进行解决方案重建而被驱逐,我必须去探索器并复制所有构建文件(dll,pdbs)等)从他们各自的构建文件夹(因此对于Debug版本,即bin \ x86 \ Debug)进入基本Bin文件夹。否则,当我运行/调试应用程序时,所有断点都会显示小黄色三角形,应用程序会忽略它们。
I have done loads or googlising to try and better understand this and from what I can gather the web server (using the dev server not iis) can only find binaries in the root Bin folder and since the new build they will be out of date until I manually copy them over from my config's build folder.
我已经做了加载或googlising试图更好地理解这一点,从我可以收集的Web服务器(使用开发服务器而不是iis)只能在根Bin文件夹中找到二进制文件,因为新版本它们将过时,直到我从配置的构建文件夹中手动复制它们。
Am I missing something as this seems nonsense to me. The multiple configs are nice for build & deploy etc but it is making debugging a real chore. Having to go to explorer and manually copy files over every time just so the debugger can work is archaic. So I feel sure I must be missing a trick here.
我错过了一些东西,因为这对我来说似乎是胡说八道。多个配置很适合构建和部署等,但它使调试成为一项真正的苦差事。为了调试器可以工作,每次都必须去探索器并手动复制文件是过时的。所以我觉得我肯定在这里错过了一招。
I did think of setting my output path for the Debug config to be the root Bin folder (so the web server will find the latest binaries) but that didnt seem like a good idea and seems risky in that I might end up deploying Debug built binaries.
我确实考虑将Debug配置的输出路径设置为根Bin文件夹(因此Web服务器将找到最新的二进制文件)但这似乎不是一个好主意并且似乎有风险因为我可能最终部署Debug内置二进制文件。
I am trying to better understand how these all hang together so can someone pls explain what VS is doing and if there is a way to get the latest debug build into a place where the Web server can see them.
我试图更好地理解这些是如何挂在一起的,所以有人可以解释VS正在做什么,以及是否有办法将最新的调试版本放到Web服务器可以看到它们的地方。
Thanks Mark
1 个解决方案
#1
0
I understand that you don't want to go for the fullfledged IIS 7, which could solve your issue. Why dont you try IIS Express to get your issue resolved ?
我知道您不想使用完整的IIS 7,这可以解决您的问题。为什么不尝试使用IIS Express解决问题?
here is the step by step way to configure.
这是一步一步的配置方式。
http://weblogs.asp.net/scottgu/archive/2010/06/28/introducing-iis-express.aspx
Hope this helps.
希望这可以帮助。
#1
0
I understand that you don't want to go for the fullfledged IIS 7, which could solve your issue. Why dont you try IIS Express to get your issue resolved ?
我知道您不想使用完整的IIS 7,这可以解决您的问题。为什么不尝试使用IIS Express解决问题?
here is the step by step way to configure.
这是一步一步的配置方式。
http://weblogs.asp.net/scottgu/archive/2010/06/28/introducing-iis-express.aspx
Hope this helps.
希望这可以帮助。