Question

I was looking through files that were installed with XNA framework and after that I got back to programming and I got an error:

The .xap file was created with a version of XACT that is incompatible with
the XNA Framework Content Pipeline version used by this project. Refer to the 
documentation for options to resolve this mismatch.

I don't know what it means. How can I fix it?

Was it helpful?

Solution

When updating from a differect XNA version, such as XNA 3.1 to 4.0, you need to convert your XACT files to the latest version.

There is an in depth guide here, but I'll highlight the points.

  1. Make a backup copy of your .xap file if you would like to keep a copy of the .xap file from before the upgrade.

  2. On a system with XNA Game Studio 4.0 installed, click on the Start menu > All Programs, > Microsoft XNA Game Studio 4.0 > Tools |> Microsoft Cross-Platform Audio Creation Tool 3 (XACT3). This is the latest version and will allow you to update your file.

  3. In the XACT3 tool, open the .xap file from the project that you upgraded to XNA 4. When it loads, you should see the following message in the XACT UI:

    This project file was created with the March 2009 release of XACT.
    You are running the February 2010 release.
    If you save this project, it will be saved as the current version
    and may no longer work with the version of  XACT it was originally
    created with.
    
  4. Click Ok to upgrade the .xap project to the new February 2010 format.

  5. Save the .xap project in the XACT UI and close the XACT UI.
  6. Go back to Visual Studio 2010, open the project that you upgraded from XNA Game Studio 3.1 to 4.0 and choose to build it again.

Their is also this thread over on MSDN saying you can simply convert the .xap by opening it in XACT3, Saving, and rebuilding the project

OTHER TIPS

It was a bug! I just copied my code in different project and it was ok! Thanks anyway.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top