This project is read-only.

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

Topics: Support
Apr 1, 2014 at 5:46 PM
Hi,

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.

Thanks
Michael
Apr 1, 2014 at 8:15 PM
Edited Apr 1, 2014 at 8: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?
Thanks,
Maciek (Project Coordinator)
Apr 3, 2014 at 10: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">
<Project>{A4C955F6-C599-4B8C-9E50-38F5A1EF970A}</Project>
<Name>MikesGameLibXNA</Name>
</ProjectReference>

In the library project, it is type library:

<XnaOutputType>Library</XnaOutputType>

And is referencing XNA 4.0

<XnaFrameworkVersion>v4.0</XnaFrameworkVersion>

Thanks
Michael
Apr 9, 2014 at 6:16 AM
Edited Apr 9, 2014 at 6: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 12:28 PM
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
"..\..\MikesGameLibXNA\MikesGameLibXNA.csproj"