I have two web forms applications in one solution in Visual Studio 2012. At work, it creates both, but runs only the startup project in debug mode. I can also pull up the second application at the same time. However, in the same solution with the same copy of Visual Studio, my home computer only opens one of them at a time (Only the one you select as the startup project).
How can I get visual studio to run both?
Right-click your solution, and select Properties. On the left side, navigate to Common Properties -> Startup Project.
Now you can select "Multiple startup projects" and specify which projects will start (with or without debug) when you run the solution.
In the solution explorer, right-click on the solution, and choose "Set Startup Projects".
Related
I'm using Visual Studio Ultimate 2015 CTP (Version 14.0.22512.0 DP), and create two asp.net 5 vnext web applications.
When one is running, and I'm starting the second one with the context menu "Debug->Start new instance" option, the IIS Express crashes instantly (Internet Explorer opens firstly the second project, and then instantly closes both, Chrome simply display only that the page doesn't exist).
The only trace that I found is in the Event Viewer, a Warning from IIS Express:
The directory specified for caching compressed content C:\Users\Alek\AppData\Local\Temp\iisexpress\IIS Temporary Compressed Files\Clr4IntegratedAppPool is invalid. Static compression is being disabled.
Any suggestions how to fix this? It's hard to work on a multi-tier project when only one project can be run at a time.
When I created manually above folder, nothing is logged to the event viewer, but the IIS Express still crashes. On Visual Studio 2013 I can run two instances of two Web Applications withtout any problems
It should work if you set your solution to use multiple startup projects and add all the projects you need to debug
Really easy steps to follow here:
http://www.magnetismsolutions.com/blog/paulnieuwelaar/2015/04/07/debug-multiple-projects-at-the-same-time-in-visual-studio
Still not as easy as previous versions of visual studio
Maybe not a solution, but a workaround which I found - running two instances of Visual Studio 2015 allow to run two projects.
As per the question, how do I configure an ASP.NET MVC project when running from Visual Studio 2013 under IIS Express (x64) to be seen as a "Managed" type in the debugger "Attach to Process" screen?
My solution always used to allow me to debug the web projects when running, and now I can no longer do so as the projects all seem to run as x64 non-managed.
I'm guessing it's something I have changed under the csproj or MSBuild targets / properties.
Regards,
Rob.
In the end, it appeared this was a combination of bloated csproj files, coupled with instability in Visual Studio 2013.
If you are using Visual Studio 2013, I highly recommend installing Update 2. It appears to make tasks a lot more reliable.
I never figured out what governs the Managed setting, however I have found the following option:
Click Attach to Process
Underneath Transport/Qualifier/Transport Information, there is a box marked Attach To:
By default, it is set to perform Automatic selection.
Click the Select button.
Toggle from Automatic to "Debug these code types"
Tick one or the other (not both) of the entries for "Managed ([.NET version])"
Click OK
I have had some success in getting the Debugger to attach properly to the IIS Express processes that are running Managed debuggable code that it "automatically" doesn't let me (for seemingly random reasons).
How can i configure visual studio 2012 to publish website and merge IL to one assembly.
in visual studio 2010 we had deployment projects , in vs 2012 they are not supported...
Edit: I have a web-site project and not web application.
Right click on the WebSite project and start "Publish Web Site". That brings up a dialog to start/configure the publish process. The first step of the wizard lets you select an existing publish profile or create a new one. The second step let you select the publish method. The really interesting step is the third one, the "Settings" step. It has an expandable section named "File Publish Options". Expanding it reveals three options where the second one ("Precompile during publishing") has a clickable link that brings you to another dialog that allows you to do advanced precompile settings. The second section on this dialog deals with merge options.
I have a website (target framework 2.0) , I install VS 2010 Ultimate on Windows 7 Professional, The problem is When I open the website, I'm trying to change the Build configuration from Debug->Release, There no "Release" item option in Solution Configuration drop-down list, which is on the Standard toolbar. even when i right click of solution and select properties, then Configuration Properties, I can see Active(Debug) only.
I need to publish a released copy. (in other word, no html code in aspx files)
Release configuration is not available for Web Sites. You have two options:
Right click the project and "Publish Site", or
Get the web deployment add-on at http://www.microsoft.com/en-us/download/details.aspx?id=24509. This will allow you to package your site and get it ready for deployment.
I prefer the second option, it has many benefits, provides more options, and if you do it right, it can help with the deployment process.
I currently have a Visual Studio solution with 8 web applications.
When I try run one of these applications, 8 instances of the Casini Web Development Servers are launched.
Is there anyway to specify that only the web application I have set as startup project will be launched and not all 8.
I am using Visual Studio 2008
Thanks
Select the Solution. Right click and select Properties. Under Common Properties select Startup Projects. The select Single Startup Project, select the project you want to startup, and press Apply/OK.
Also there is a project option Always start when debugging. Select Project in Solution View and in Properties Window set this option to false. Without it the server is started even if project is not chosen as startup project.