cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Wolfgang_F_
Level 2

Msbuild primary output config file missing

Hello,

I've created a setup and and included various c# projects into the setup solution.

In the Files and Folders view, in a custom folder im referencing to a projects primary output (its a console application .exe).

When i build the setup in Visual studio 2010, everything works fine and the .exe.config is contained in the generated setup.exe file.
The problem now is, when I build it with msbuild from command line, just the .exe of the project is existing in the setup.exe, the .exe.config file is missing completely.

Does anyhone have suggestions what could be wrong? Or is it a problem when building the solution with msbuild?

Thx!
Labels (1)
0 Kudos
(1) Reply
skolte
Level 7

You need to have the config file marked as a Content file and then when you add Project Output to your setup project, make sure you add Content Files for that project as well. See screenshots below.
0 Kudos