同一Web服务的项目,不同的配置,不能调试不同、项目、Web

2023-09-06 07:44:38 作者:夜凉初透陌汐

我创建了一个C#Web服务,Web客户端,并成功调试与ASP.NET开发服务器(即啄时,你只是preSS F5是被激活)的服务。所有罚款。现在我需要一个Web服务,几乎是相​​同的previous,但不同的code几行。为此,我创建了两个新的配置,DebugNew和ReleaseNew,并设置输出目录binNew(而不是默认的bin)。的问题是,原来的web服务的调试器执行,而不是新的web服务。调试器不知道binNew文件夹中。如何设置环境,如果DebugNew配置就会被激活,开始新的Web服务?

解决方案

我建立了与Visual Studio休战(或无条件投降,这取决于来看),并且恢复输出目录回\ bin中。至少设置项目,这是在同一溶液中,保持单独的文件夹的每个配置。

I have created a C# web service, a web client, and successfully debugged the service with ASP.NET Development Server (that thingy that gets activated when you just press F5). All fine. Now I need a web service that is almost the same as previous, but differs in a few lines of code. For this purpose I created two new configurations, DebugNew and ReleaseNew, and set the output directory to binNew (instead of default "bin"). The problem is that original web service is executed in debugger, instead of new web service. The debugger is unaware of binNew folder. How to set up the environment to start new web service if DebugNew configuration is active?

解决方案

I established a truce with Visual Studio (or unconditionally surrendered, depending on the point of view), and reverted output directory back to \bin. At least the setup project, which is in the same solution, maintains separate folders for each configuration.

 
精彩推荐
图片推荐