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

  • SEARCH
  • Home
  • 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 8117627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:14:07+00:00 2026-06-06T04:14:07+00:00

I am building and publishing a single web project, which is in a big

  • 0

I am building and publishing a single web project, which is in a big solution.
I start the msbuild.exe from a cmd file, which is invoked by a TeamBuild Process:

c:\Windows\Microsoft.NET\Framework64\v4.0.30319    MSBuild.exe /p:Configuration=Release /p:DeployOnBuild=True /p:CreatePackageOnPublish=true /T:Package "%~dp0%xxx.Project1.csproj"  

In the project settings of project1.csproj under Web deployment package setting:

Location where package will be created: $(SourcesDirectoryOfProject)\..\..\..\..\bin\xxx.Project1

This works very well, but the problem is, that the folder named “Archive” in “..\..\..\..\bin\xxx.Project1” becomes very long. I have to click through 16 subfolders, until I am at the actually Web-files like Web.config and so on. Under the Archive folder are subfolders that seem to represent the hole folder-structure to the temporary drop folder, where the files for publishing are created in first:

...\Archive\Content\D_C\Builds\9\TeamProjectName\BigProject\Sources\BigProject\Main\Source\SolutionName\ProjectName\obj\Release\Package\PackageTmp\bin

And finally under PackageTemp I find my Web Files. The REAL problem with that is, that the foldernames for some files become to long – so I cannot delete them correctly and the TeamBuild crashes, because it cannot empty the Builds-Folder before compiling and doing computer stuff.

The best would be to have an option where I can tell the msbuild.exe (or maybe in the project-settings) where it should dump the WebProject Files (- the files I mean are the Folders: App_Code, bin, Configuration; Files: global.asax, some xamlx and Web.config)

So – how can I drop the WebProject data to another specified path?

Best regards

Sebastian

  • 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-06-06T04:14:09+00:00Added an answer on June 6, 2026 at 4:14 am

    The problem was a wrong MSBuild.exe command. I use this one now, which only deploys the web service to a specific local folder without any IIS needed:

    MSBuild.exe /target:Build;PipelinePreDeployCopyAllFilesToOneFolder /p:Configuration=Release;_PackageTempDir=%binfolder% "projectfile.csproj" 
    

    It also doesn’t do this long folder names stuff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently building a small web application for publishing stories using PHP and
Is there a way to automate building and publishing a project to our development
Building a solution from Visual Studio in mono develop seems to have some issues.
I am building a website which I am publishing with div s. When I
Building the same project (without any changes) produces binary different exe-files: some small regions
Building a new Mobile Web Platform for Mobile Users to purchase & download content
Building a new ASP.net application, and planning to separate DB, 'service' tier and Web/UI
ILMerge usually merges my assemblies fine when building a Release, but when Publishing for
I am publishing content from a Drupal CMS to static HTML pages on another
I'm maintaining and publishing an open source package which needs to be built for

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.