locked
Javascripts project Building error with "No value of PrimaryIndexName"

    Question

  • Hi:

    I met with a very strange building issue for javascripts metro application. Follow the standard wizard, create one simple blank javascript application, and run.

    Then find the issue as follow:

    Error 1 error MSB4044: The "CreatePriFiles" task was not given a value for the required parameter "PrimaryIndexName". C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets 497 10 WinWebApp1

    Then I unload the project WinWebApp1.wwaproj file, but don't find the according segment for PrimaryIndexName. Perhaps it's also some internal building parameters.

    -> Building error points to the following segment of Microsoft.AppXPackage.Targets
    ->
    <CreatePriFiles ContentToIndex="@(_ContentToIndex)"
                    PrimaryIndexName="$(ProjectPriIndexName)" ##HERE##
                   
                    ....>

    How do I make it fix for $(ProjectPriIndexName)? Normally there should be no such issue, however, play with VS2011 preview seems that issues are normal.

    ^_^

    Could you help me a hand?

    Tuesday, October 4, 2011 5:44 AM

Answers

  • Hello,

    so the property $(ProjectPriIndexName) should be coming from your package.appxmanifest file in your project (go to solution explorer, double click your appxmanifest file, go to the packaging tab).  What is the value for your package name e.g. a GUID?

     

    much appreciated,

    mike

    • Marked as answer by Orlando, Ding Saturday, October 8, 2011 3:36 AM
    Tuesday, October 4, 2011 6:14 PM
    Moderator
  • Hi Mike:

    Thank for your attention here. the package is "Hello-World-demo", which matt used as demo purpose for us to understand how IKnown works.

    Now I have fixed it, it's caused by package file format. As I directly modified appxmanifes file, comment that segment by mistakes.

    Best Regards

    Orlando

    • Marked as answer by Orlando, Ding Saturday, October 8, 2011 3:36 AM
    Saturday, October 8, 2011 3:36 AM

All replies

  • Hello,

    so the property $(ProjectPriIndexName) should be coming from your package.appxmanifest file in your project (go to solution explorer, double click your appxmanifest file, go to the packaging tab).  What is the value for your package name e.g. a GUID?

     

    much appreciated,

    mike

    • Marked as answer by Orlando, Ding Saturday, October 8, 2011 3:36 AM
    Tuesday, October 4, 2011 6:14 PM
    Moderator
  • Hi Mike:

    Thank for your attention here. the package is "Hello-World-demo", which matt used as demo purpose for us to understand how IKnown works.

    Now I have fixed it, it's caused by package file format. As I directly modified appxmanifes file, comment that segment by mistakes.

    Best Regards

    Orlando

    • Marked as answer by Orlando, Ding Saturday, October 8, 2011 3:36 AM
    Saturday, October 8, 2011 3:36 AM