Sharing VS 2010 One-Click Web Publishing Settings - visual-studio-2010

Anybody know where the VS 2010 One-Click Web Publishing settings are stored?
It would be awesome it a team could share the settings so a quick deployment to a test system is always a button click away.

It's stored in the same project directory as the project you've deployed, stored as an XML file. Look for a *.Publish.xml

Related

Visual Studio Configuraiton manager Deploy column disabled

I am having a problem with the configuration manager in Visual Studio 2013. The Deploy column is disabled no. The only thing I did was a Repair of Visual Studio 2013 and not my WebAPI project not longer has the Deploy option enabled in Configuration Manager. I used to be able to do a file system deploy to the folder on the Web Server that hosted my WebAPI process. I am not sure what is going on. Any assistance would be greatly appreciated.
FYI - The CGSAPI project type is class library but that is what it has always been.
OK so I was just being silly. I have to right mouse button click on the actual WebAPI project and Publish will be available in the dropdown list. :)

Deploying to FTP/Web Deploy In Visual Studio 2015

I cannot figure out a way to publish a web project in Visual Studio 2015 CTP using web deploy or FTP. In the Publish wizard, there are only options for Azure, Import and File System. In Visual Studio 2013, there is a Custom option where you can specify the connection settings and choose between Web Deploy, Web Deploy Package, FTP and Filesystem.
I tried moving over the publish profile from my Visual Studio 2013 project by putting it in the Properties-->PublishProfiles folder, and then it behaved like Visual Studio 2013, but would not publish (failed to connect to remote host) with the same settings that publish fine in 2013.
Any ideas?
It sounds like Web Deploy 3.6 beta supports the new content models in ASP.NET 5 (ASP.NET vNext) and I guess that the VS 2015 Web-Deploy client doesn't support it yet. (28 April 2015)
This blog post gives some command-line options for using a publish profile. I'm in a new environment that isn't set up for web-deploy yet, so I haven't tried it myself. (I did a file-system publish to test against my local IIS.)
I also experienced the same issue. It seems that, at the time of writing, the FTP publish target isn’t available yet: I guess that’s most likely because the Web Development Tools are still in release candidate / preview phase, so the GUI still has some missing features.
Luckily enough the issue can be easily solved with the following workaround.
If you don't see the FTP option, choose File System instead and go ahead. When prompted for a Target Location, insert the FTP Server URL and go ahead.
The remaining steps won’t change, so you can complete the wizard that will be saved into a ProfileName.pubxml file.
Once done, open that file and apply the following changes:
Locate the <WebPublishMethod> element and change its value from FileSystem to FTP.
Locate the <UsePowerShell> element and entirely remove it.
Right after doing that, right-click to the project’s root node, select Publish and re-open your Publish Profile via the Publish Profile Wizard in edit mode: all the FTP options (Server, Site Path, Passive Mode, Username, Password) will now be available.

Visual studio 2010 automatically change project type

Does anybody know why VS 10 change himself project type from Web Appliacation to Web Site when this project is downloaded from Team Foundation Server?
Sounds like someone has changed the application and checked it in that way...
Visual Studio won't change the project type on it's own.
Project type is stored in the project file, not in the solution file. Do a TFS compare (or view the history) on the project file to see if that was changed.
For C# project files the extension is .csproj
This site says "web applications" have a .csproj or .vbproj , but that a "website project" will not have a project file (http://msdn.microsoft.com/en-us/library/dd547590.aspx). If the Web Application project was blasted away, and a web site created in its place, it may be difficult to track down when the change happened.

How do you use MS Deploy with VS2010?

I have VS2010, and I've opened up a web site. How can I now use MS Deploy to deploy to a zip file, which can be installed in a remote IIS site?
I've searched through all the menu options, but can't seem to find out where to get started.
Thanks in advance
Absolutely 100% definitely you should watch these two talks :
http://live.visitmix.com/MIX10/Sessions/FT14
http://microsoftpdc.com/Sessions/FT56?type=wmv
Ya ya I know whenever I see a link to a talk I think 'I don't have time for this', but they're both really informative and cover web transformations, deployment and TFS deployments.
Edit: If you really dont have time - then check out my similar question...
"How can I get TFS2010 to run MSDEPLOY for me through MSBUILD?"
... and if this confuses you then go back and watch the talk :-)
Updated Answer:
Microsoft just released their "web deployment projects" for visual studio 2010.
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=711a2eef-b107-4784-9063-c978edc498cd#AdditionalInfo
After adding a web deployment project to your website (right click on the website name, click "add web deployment project") you can then build the package and use msdeploy to deploy your application.
Old answer:
A "web site project" cannot be packaged with MSDeploy through the GUI (at least not in the RC). You must convert your website into a "Web Application Project". Then you will have the full publishing/msdeploy capabilities.
Here is a link on how to convert a website to a web application project: http://gurustop.net/blog/2008/08/03/converting-vs-2008-website-to-web-application/
Once you convert to a web application project in Solution Explorer right click on the project name and click "Build Deployment Package".

Web Deployment Projects, Web Application Projects and Team Build 2008

I've switched from a Website Project to a WAP (Web Application project).
The WDP (Web Deployment Project) is used to set and potentially in the future make other web.config changes.
However I notice that the team build is building everything twice, once on behalf of the solution file and then again because of the WDP. Any idea how I can stop this from happening?
Or is there a way to replace out the web deployment project altogether?
Yes and yes.
You can stop TFS Build from building everything twice by following these steps:
Open the configuration manager (open your solution and select Configuration Manager from the top-level Build menu).
Expand the drop down list for Active solution configuration and select New.
Enter a name for your new solution configuration and select an existing configuration to copy settings from and click OK.
In the Configuration Manager, uncheck the checkboxes in the Build column for all of the projects except the deployment project and click Close.
Edit your TFSBuild.proj file's ConfigurationToBuild ItemGroup by adding your new configuration:
Foo
Any CPU
Where Foo is the name of the new configuration you just defined.
For Visual Studio 2010, the ASP.NET team has partnered with the IIS team to deliver an integrated web application packaging and deployment solution built on the [Web Deployment Tool][1]. It more or less replaces web deployment projects and you can use it with VS/TFS 2008 via its [command line interface][2]. I have a blog post covering the basic scenario here:
Building a Simple Web Site with VSTS/TFS 2008.

Resources