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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:28:02+00:00 2026-06-11T10:28:02+00:00

Firstly, thanks for taking the time to read and possibly comment on this question.

  • 0

Firstly, thanks for taking the time to read and possibly comment on this question.

Summary

How can I use MSBuild to automatically package MS Visual Studio Windows Services and Windows Applications into simple (a directory of files including the dlls, exes, configs etc) which I can release to our Dev-Ops dept. I do not want the distribution in MSI installer or setup.exe or some web deployment format which appear to be the default in MS Visual Studio’s publish.

My Environment

  • Windows XP SP3 (32-bit), Window Server 2008 R2 (64-bit)
  • .NET 4.0 (32-bit)
  • MS Visual Studio 2010 (32-bit)
  • NAnt 0.91 (32-bit)

My Scenario

Currently, we have about 5 types of MS Visual Studio project and for the first 3 types (Web Services, Web Applications, Web Sites), we can use MSBuild to package the source into a simple directory of files (distribution) based on the contents of the csproj file using:

msbuild my.component.csproj /p:Configuration=Release /t:Package /p:_PackageTempDir=”C:\temp\some\dir”

For the latter 2 types (Windows Services, Windows Applications), we cannot use MSBuild as above. From investigation via the Publish command in Visual Studio, it appears that I can create setup.exe installers for both Windows Services and Windows Applications but this is not what I want – I just want to be able to create a simple directory of files (distribution) as I have been doing for the other project types. I accept that this may not be possible but I would just like to know for sure.

Conclusions

Thus far, for both Windows Services and Windows Applications I have come to the following conclusions, the former two, not ideal:

  • Use MSBuild to compile the code and NAnt to create the simple directory of files (distribution).
  • Use MSBuild to compile the code and create a post build event to create the distribution.
  • Your suggestion here (much appreciated).
  • 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-11T10:28:04+00:00Added an answer on June 11, 2026 at 10:28 am

    Based on my research online (MSDN), at StackOverflow and limited local experimentation, it appears that both Windows Services and Windows Applcations cannot be quickly or easily built in a way which is similar to the distribution output of MSBuild’s package command, that is, into a local file-based distribution.

    For Windows Applications, as Splattered Bits suggested, the contents of the release bin directory can be used as the simple file-based distribution after the project has been compiled.

    For Windows Services, it is be possible to do what we did for Windows Applications above and use the output from the release bin directory.

    In both cases, a change to the CSPROJ file may be required to suppress the creation of PDB files or futher configuration the compilation output.

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

Sidebar

Related Questions

Firstly, thanks for taking the time to read this and possibly comment on it.
Firstly thanks in advance for your time looking at this question. I'm trying to
Firstly sorry if this is a common question but I couldn't find anything on
Firstly, I know this [type of] question is frequently asked, so let me preface
Firstly this is not a homework question. I am practicing my knowledge on java.
firstly, I very much apologize for my poorly written title of this question. So
Firstly this is for a simple university project, so time is more important than
2 Questions, firstly I have this code: function Question(container, question_list, chosenAnswer) { this.container =
Firstly, please don't dismiss this question - I'm aware it's an ugly situation but
Firstly just a big Thanks to everyone on this site, I am using it

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.