- Select the web or WCF project. Press F4 to show the property window. If only an empty window appears, repeat the process.
- Set the first property to "False".
If your solution contain projects that start the ASP.NET Development Server you will enjoy my macro that sets this property solution wide:
Sub TurnOffAspNetDebugging()
REM The dynamic property CSharpProjects returns all projects
REM recursively. "Solution.Projects" would return only the top
REM level projects. Use VBProjects if you are using VB :-).
Dim projects = CType(DTE.GetObject("CSharpProjects"), Projects)
For Each p As Project In projects
For Each prop In p.Properties
If prop.Name = "WebApplication.StartWebServerOnDebug" Then
prop.Value = False
End If
Next
Next
End Sub
REM The dynamic property CSharpProjects returns all projects
REM recursively. "Solution.Projects" would return only the top
REM level projects. Use VBProjects if you are using VB :-).
Dim projects = CType(DTE.GetObject("CSharpProjects"), Projects)
For Each p As Project In projects
For Each prop In p.Properties
If prop.Name = "WebApplication.StartWebServerOnDebug" Then
prop.Value = False
End If
Next
Next
End Sub
Update: This solution no longer works for VS2012. An addin with the same functionality is available on GitHub: https://github.com/algra/VSTools
updated the property name
ReplyDelete