XNA Refresh 4.0 for VS 2012 - Errors with linked XNA libraries?

Topics: Support
Apr 1, 2014 at 4:46 PM

I've installed XNA refresh 4.0 for VS 2012 but it doesn't appear to work with linked XNA libraries - I've got an XNA project in the solution, which has references to another XNA Project in the same solution, but it cannot find the classes from one that are referenced in another. It still compiles ok, but I get red underline errors and I can't jump to definitions - a little annoying!

I should also say that everything works fine on my other computer which was set up the old hacky way (Without XNA refresh) - copying Extension files around etc.

Apr 1, 2014 at 7:15 PM
Edited Apr 1, 2014 at 7:16 PM
Hi Michael,
  1. What version of Windows do you use on your computers?
  2. Do you add references to your related XNA project?
Maciek (Project Coordinator)
Apr 3, 2014 at 9:54 AM
Hi Maciek,
  1. Both are running Windows 7
  2. Yes the game project has a project reference to my XNA library project:
<ProjectReference Include="....\MikesGameLibXNA\MikesGameLibXNA.csproj">

In the library project, it is type library:


And is referencing XNA 4.0


Apr 9, 2014 at 5:16 AM
Edited Apr 9, 2014 at 5:16 AM
Hi MichaelParker,

Can you compile game project referenced to MikesGameLibXNA project?

In your code is .... and i am not sure how it works.

Try write this
<ProjectReference Include="..\MikesGameLibXNA\MikesGameLibXNA.csproj">
instead of
<ProjectReference Include="....\MikesGameLibXNA\MikesGameLibXNA.csproj">
Best regards,
Maciek (Project Coordinator)
Apr 9, 2014 at 11:28 AM
Yes, the game project compiles. Compilation is OK, but intellisense and navigating to definitions is broken.

The formatting seems to have broken my message. My code is actually like this