首页 > 技术文章 > vs2012 XNA

knightluffy 2013-07-21 11:53 原文

When I install vs2012 with XNA. it has some issue. With the stackoverflow site, I find the solution, but it still have an issue, seems xna dll does not configured successfully. The issue like "The project type is not supported by this installation" or "could not load successfully", so I give you a way to solve. You can just add the dll to GAC, so that everything will be fine.

1. First of all, check the public key token is the same as you want: 

C:\Windows\System32>"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NET
FX 4.0 Tools\x64\sn.exe" -T "D:\Program Files (x86)\Microsoft Visual Studio 10.0
\Common7\IDE\VPDExpressExtensions\Microsoft\XNA Game Studio 4.0\Microsoft.Xna.Ga
meStudio.Core.dll"

Microsoft(R) .NET Framework 强名称实用工具 版本 4.0.30319.1
版权所有(C) Microsoft Corporation。保留所有权利。

公钥标记为 6d5c3888ef60e27d

 

2. install the dll to GAC:

C:\Windows\system32>"C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NET
FX 4.0 Tools\x64\gacutil.exe" -i "D:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\VPDExpressExtensions\Microsoft\XNA Game Studio 4.0\Microsoft.X
na.GameStudio.Core.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.17929
Copyright (c) Microsoft Corporation. All rights reserved.

Assembly successfully added to the cache

C:\Windows\system32>

this is very easy to have you solve the issue.

推荐阅读