locked
How to: Override a package manifest - Can't make it to work

    Question

  • I am trying to use an .xml manifest file instead of the .appxmanifest one. I tried to follow the howto, but I can't replicate step 2 ("Set its Build Action property to Content, and its Copy to Output Directory property to Copy Always."), because I can't find the Output Directory property in the files properties.

    I am setting Content to "Yes", but after when I try to create the solutions, it fails with:

    1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(201,9): error : Project must have either AppxManifest item or Content item with name 'AppxManifest.xml'.
    1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(201,9): error : The string was not recognized as a valid Uri.
    1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(201,9): error : Parameter name: inputUri

    What I am doing wrong?

    BTW, I am using Visual Studio 11 Developer Preview x64.

    Thanks

    Wednesday, December 21, 2011 12:53 PM

Answers

  • This is not a straightforward task which you can easily determine from the JavaScript project steps. I'm having issues getting my override settingsto be used as well. I opened a bug on this with the VS team. At a minimum, we need the HowTo ported to the appropriate steps for C++.

     

    Thanks for bringing this to our attention George!

     

    Thanks,

    -David

    Thursday, December 22, 2011 9:35 PM
    Moderator

All replies

  • I believe the HowTo you are referring to is for a Metro style app using JavaScript project:

    http://msdn.microsoft.com/en-us/library/windows/apps/br230261(v=vs.110).aspx

     

    Update: After closing and reopening VS, it stopped compiling for me again using previous settings. Please file a feedback bug on Overriding the Manifest in C++ while I look into this. 

     

    Thank you for posting your feedback, we want to make sure we get the right info including your log files.  Can you also submit feedback using the Windows Feedback Tool from the Connect Site associated with your Windows Developer Preview program? If you’re an MSDN subscriber, the information on how to join the Connect program is included on the download page where you installed Windows Developer Preview.  There’s a link to the Connect site and an invitation code that you can click on to join using a Windows Live ID account. If you’re not an MSDN subscriber follow this limited use link to join the Connect program and then follow the steps here

    Thanks,

    -David

    Wednesday, December 21, 2011 9:58 PM
    Moderator
  • Yeah, it is the Javascript one, but there isn't for any other language. I discovered that if I keep the .manifest file it recognize the .xml as the one overriding it.
    Thursday, December 22, 2011 7:20 PM
  • This is not a straightforward task which you can easily determine from the JavaScript project steps. I'm having issues getting my override settingsto be used as well. I opened a bug on this with the VS team. At a minimum, we need the HowTo ported to the appropriate steps for C++.

     

    Thanks for bringing this to our attention George!

     

    Thanks,

    -David

    Thursday, December 22, 2011 9:35 PM
    Moderator