Loading
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!

  • 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.

     

Loading
Msbuild primary output config file missing