1

I have the following path to my asp.net (with mvc) project:

D:\testAppMvc\testAppMvc.sln

I have installed msdeploy from here (no settings were made).

In Visual Studio 2010, right click on project-> Build Deployment package. Until now is ok.

If I open the ZIP package I see the strange path to my project necessary files for IIS.

\Content\D_C\testAppMvc\obj\Debug\Package\PackageTmp\

Are there any way to change that path for deploy source files or it is unchangeable ?

Snake Eyes
  • 16,287
  • 34
  • 113
  • 221

2 Answers2

2

I think you need to set this in your project file:

<!-- Must be after Microsoft.WebApplication.targets import -->
<PropertyGroup>
  <_PackageTempDir>C:\Package</_PackageTempDir>
</PropertyGroup>
Roland
  • 972
  • 7
  • 15
0

Note that "right click on project->Build Deployment package" in Visual Studio 2010 has become "right click on project->Publish..." in Visual Studio 2013.

How to: Deploy a Web Application Project Using a Web Deployment Package on MSDN provides details on publishing a deployment package in VS 2013.

To publish a deployment package in VS 2013, I created a custom publish profile named Local Package, then chose the Web Deploy Package publish method - screenshots below:

VS 2013 Web Publish - Profile

VS 2013 Web Publish - Connection

J0e3gan
  • 8,740
  • 10
  • 53
  • 80