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 6873141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:01:18+00:00 2026-05-27T04:01:18+00:00

The packages created by a TFS 2010 Build only contain our Sources, not the

  • 0

The packages created by a TFS 2010 Build only contain our Sources, not the binaries. When this is (automatically) deployed to IIS, the site does not run because it is missing DLLs that are created during the build process.

We have a Web Project created in VS2010. If I select “Build Deployment Package” from a right click in VS we get a zip file in the obj\Release\Package folder that contains the fully build site.

However, if ask our TFS build process to create the package by adding “/p:CreatePackageOnPublish=true /p:DeployOnBuild=true” to the MSBuild arguments (as advised in amongst other places here) we get an zip file in _PublishedWebsites\_Package\.zip that only contains the sources.

My best guess is that the CopyAllFilesToSingleFolderForPackage is picking up the files from the wrong place.

I notice a similar issue asked here – TFS 2010 and creating a package – although his workaround in not appropriate in many cases, I’d guess.

My concern is that this is using a built-in, but poorly documented feature of MSBuild/TFS so when it doesn’t work you’re a little in the wilderness.

  • 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-27T04:01:23+00:00Added an answer on May 27, 2026 at 4:01 am

    It seems that deployOnBuild runs some “package”-like target on each of the projects. If you have built the projects into a separate directory (which the default TFS 2010 build does by default) the packaging won’t pick up the compiled files.

    One solution is to get rid of the custom output folder for the MSBuild Command within the TFS build workflow. This will cause the compiled files to be located in-situ and be included in the package.

    Now the rest of the TFS workflow is require some changes because it’ll be expecting to transfer the files from the output directory, and they won’t be there.

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

Sidebar

Related Questions

I created a NuGet Server in order to host our proprietary packages. How can
Not too familiar with dtsx packages - can they be created/run outisde Visual Studio?
I am trying to make work the TFS 2010 build service (on a Windows
I got this question as an assignment: Packages/Naming We have created lot of packages
Maybe this isn't possible due to Security implications... I have a Deployment Package created
I created a windows Installer MSI package that installs assembly binaries (exe) with their
With respect to how packages are created, installed and used in Haskell, what is
I have created SSIS packages. Configurations are stored within a .dtsconfig file. In order
I have created a virtualenv with the --no-site-packages option. I get an error trying
I have created a python web app with this directory structure: # cd /usr/local/www/myapp

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.