Search code examples
asp.netasp.net-mvc-3msdeploy

Strange PackageTmp when create deploy package with msdeploy in asp.net mvc project


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 ?


Solution

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

    <!-- Must be after Microsoft.WebApplication.targets import -->
    <PropertyGroup>
      <_PackageTempDir>C:\Package</_PackageTempDir>
    </PropertyGroup>