Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 866995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:54:08+00:00 2026-05-15T09:54:08+00:00

The integrated Web Deployment in Visual Studio 2010 is pretty nice. It can create

  • 0

The integrated Web Deployment in Visual Studio 2010 is pretty nice. It can create a package ready to be deployed using MSDeploy on a target IIS machine. Problem is, this package will be redistributed to a client that will install it himself using the “Import Application” from IIS when MSDeploy is installed.

The default package created always include the full path from the development machine, “D:\Dev\XXX\obj\Debug\Package\PackageTmp” in the source manifest file. It doesn’t prevent installation of course since it was designed this way, but it looks ugly in the import dialog and has no meaning to the client. Worse he will wonder what are those paths and it looks quite confusing.

By customizing the .csproj file (by adding MSBuild properties used by the package creation task), I managed to add additional parameters to the package. However, I spent most of the afternoon in the 2600 lines long Web.Publishing.targets trying to understand what parameter influenced the “development path” behavior, in vain. I also tried to use the setAcl to customize security on a given folder after deployment, but I only managed to do this with MSBuild by using a relative path… it shouldn’t matter if I resolve the first problem though.

I could modify the generated archive after its creation but I would prefer if everything was automatized using MSBuild. Does anyone know how to do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:54:09+00:00Added an answer on May 15, 2026 at 9:54 am

    The displayed path is determined by the property _MSDeployDirPath_FullPath.

    This property is setted by this chain of properties:

    • <_MSDeployDirPath_FullPath>@(_MSDeployDirPath->'%(FullPath)')</_MSDeployDirPath_FullPath>
    • <_MSDeployDirPath Include="$(_PackageTempDir)" />
    • <_PackageTempDir>$(PackageTempRootDir)\PackageTmp</_PackageTempDir>
    • <PackageTempRootDir>$(IntermediateOutputPath)Package</PackageTempRootDir>

    _MSDeployDirPath_FullPath <-- @(_MSDeployDirPath->'%(FullPath)') <-- _PackageTempDir <-- $(PackageTempRootDir)\PackageTmp

    AS you can see, you can’t have a relative path, because _MSDeployDirPath_FullPath is the fullpath of _MSDeployDirPath.

    But you can simplify the displayed path by overriding the property _PackageTempDir with the path you want to be displayed to your customer. (This path will be used as a temporary directory for the package generation)

    You could override the property :

    • In command line :

      msbuild.exe projectfile.csproj /t:Package /p:_PackageTempDir=C:\Package
      
    • Or directly in the project file :

      <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
      <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
      
      <!-- Must be after Microsoft.WebApplication.targets import -->
      <PropertyGroup>
        <_PackageTempDir>C:\Package</_PackageTempDir>
      </PropertyGroup>
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm pretty green with web services and WCF, and I'm using Windows integrated authentication
I'm currently migrating a project to Visual Studio 2010 and am trying to figure
I just built a setup.msi file using the Web Setup Project template within Visual
Having integrated merb_auth_password_slice as per the README, I can successfully login as redirect_after_login is
I wrote an ASP.NET web application with an installer. For the installer, I'm using
I've just built a basic ASP MVC web site for deployment on our intranet.
I need to integrate a email client in my current python web app. Anything
I'm trying to integrate a public message board service into an existing web site.
We are building an AbleCommerce 7 web store and trying to integrate it with
Why is the integrated vs debugger so... barely functional? I cannot see the contents

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.