MSBuild failed after add a new configuration

When I add a new configuration and try to build the wixproj, I get the below errors:

 

C:\Program Files\MSBuild\Microsoft\WiX\v3.x\wix2010.targets(444,7): error : The OutputPath property is not set for this project.  Please check to make sure that you have specified a valid Configuration/Platform combination.  Configuration='Release'  Platform='x86'
Done building project "setup.wixproj" -- FAILED.

 

It is bug of wix. However, there is a workround:

If you open your .wixproj file in a text editor, you will see that the new added configuration items are at the bottom of the file (below the import of the standard WiX build targets) and your x86 configuration is at the top (above the import). If you shift the XML for the new added config so that it's adjacent to the x86 config, then you will find that your project builds properly.

posted on 2012-03-20 11:40  西西弗斯  阅读(2586)  评论(0编辑  收藏  举报