Visual studio 2012 deploy to single assembly - asp.net

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.

Related

Convert to Web Application in VS 2015.1

I'm running Visual Studio 2015 Enterprise Update 1.
I created an empty Visual Basic ASP.NET Website targeting the .NET Framework 4.5.2. And I want to convert it to an ASP.NET Web Application.
Under the Website's context menu in Solution Explorer there is no "Convert to Web Application" menu-item, nor is there anything under the Website menu in the main-menu bar:
Where has the feature gone? Has it been removed completely in Update 1?
This is the most confusing part of converting websites to web applications. The way you need to do it is to:
Create a new Web Application project
Copy all of your website contents into it (you could create the *.csproj file in the same website directory, then include all files into the project without actually having to move them)
The command will be available on the WebApp project (under the Project menu, at the bottom)
Basically at that point the command looks at the contents of the WebApp project and makes adjustments so that they are more suitable for a WebApp project.

Run multiple web forms apps in same solution in visual studio

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".

ASP.NET Web Application template missing in Visual Studio 2012

has anyone else dealt with this? My ultimate goal is to create a new empty web api project. I've been following tutorials and I've encountered the following issue:
My issue is that when I try to create a ASP.NET Web Application project in Visual Studio Pro 2012 I do not see that template as an option. I go to Installed --> Templates --> Visual C# --> Web
All I see is ASP.NET Empty Web Application. So I selected that and then expected the ASP.Net project window to pop up so that I could select "Web Api". However, that dialog never opened.
Does anyone know how/where I can get the ASP.NET Web Application template?
I came across your question as I had the same problem. When I first installed Visual Studio I didn't tick the box to install the Web Components. Here is how I solved the issue:
Close all your instances of Visual Studio.
Run the Visual Studio Installer (I found mine in the Downloads folder still and was named "vs_professional.exe").
For VS 2013 a grey window appears similar to when first installing VS.
When prompted select "Modify" from the list of options.
Tick the list item which I think was named "Web Development" or something similar.
Click update.
Once the installer has finished running launch Visual Studio.
When selecting New Project in Visual Studio I can now see the required templates.
Try to select Framework 4.5.
The Framework 4.0 don't have :)
Jorge Rocha
If you have ASP.NET MVC 4 Web Application as an option under Web when you select it as a new project the project window pops up and you will be able to select Web API.
kale909's solution worked for me. I just added pics here to make it more clear:
then here:

I can't see Release Build in Visual studio 2010?

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.

Visual Studio opens Development Servers for all websites in my project

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.

Resources