问题描述
我使用UnityVS生成Visual Studio项目,但是项目文件 * .CSharp.csproj无法打开.
I use UnityVS generate visual studio project, but project file *.CSharp.csproj could not open.
我发现问题在于ProjectTypeGuids使用未知类型:E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1,而google也无法告诉我那是什么.
I find the problem is that ProjectTypeGuids use a unkown type : E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1 , and google also could not tell me what's that.
有人有同样的问题吗?
anyone has the same problem?
项目文件为:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{70B74EA9-8515-0DD0-B4E6-E001BFFC1148}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace></RootNamespace>
<AssemblyName>Assembly-CSharp</AssemblyName>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkProfile>Unity Subset v3.5</TargetFrameworkProfile>
<CompilerResponseFile></CompilerResponseFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\UnityVS_bin\Debug\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DefineConstants>DEBUG;TRACE;UNITY_STANDALONE_WIN;ENABLE_MICROPHONE;ENABLE_TEXTUREID_MAP;ENABLE_AUDIO_FMOD;UNITY_STANDALONE;ENABLE_MONO;ENABLE_TERRAIN;ENABLE_SUBSTANCE;ENABLE_GENERICS;ENABLE_MOVIES;ENABLE_WWW;ENABLE_IMAGEEFFECTS;ENABLE_WEBCAM;RENDER_SOFTWARE_CURSOR;ENABLE_NETWORK;ENABLE_PHYSICS;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_SHADOWS;ENABLE_AUDIO;ENABLE_DUCK_TYPING;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;UNITY_4_2_2;UNITY_4_2;ENABLE_PROFILER;UNITY_EDITOR;UNITY_EDITOR_WIN;UNITY_TEAM_LICENSE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\UnityVS_bin\Release\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DefineConstants>TRACE;UNITY_STANDALONE_WIN;ENABLE_MICROPHONE;ENABLE_TEXTUREID_MAP;ENABLE_AUDIO_FMOD;UNITY_STANDALONE;ENABLE_MONO;ENABLE_TERRAIN;ENABLE_SUBSTANCE;ENABLE_GENERICS;ENABLE_MOVIES;ENABLE_WWW;ENABLE_IMAGEEFFECTS;ENABLE_WEBCAM;RENDER_SOFTWARE_CURSOR;ENABLE_NETWORK;ENABLE_PHYSICS;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_SHADOWS;ENABLE_AUDIO;ENABLE_DUCK_TYPING;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;UNITY_4_2_2;UNITY_4_2;ENABLE_PROFILER;UNITY_EDITOR;UNITY_EDITOR_WIN;UNITY_TEAM_LICENSE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.XML" />
<Reference Include="System.Core" />
<Reference Include="Boo.Lang" />
<Reference Include="UnityScript.Lang" />
<Reference Include="UnityEngine">
<HintPath>Library\UnityAssemblies\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>Library\UnityAssemblies\UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\Scripts\scaleform\SFCamera.cs" />
<Compile Include="Assets\Scripts\scaleform\SFCxForm.cs" />
<Compile Include="Assets\Scripts\scaleform\SFDisplayInfo.cs" />
<Compile Include="Assets\Scripts\scaleform\SFDisplayMatrix.cs" />
<Compile Include="Assets\Scripts\scaleform\SFEvents.cs" />
<Compile Include="Assets\Scripts\scaleform\SFGamepad.cs" />
<Compile Include="Assets\Scripts\scaleform\SFInitParams.cs" />
<Compile Include="Assets\Scripts\scaleform\SFKey.cs" />
<Compile Include="Assets\Scripts\scaleform\SFLifecycleEvent.cs" />
<Compile Include="Assets\Scripts\scaleform\SFManager.cs" />
<Compile Include="Assets\Scripts\scaleform\SFManager_Imports.cs" />
<Compile Include="Assets\Scripts\scaleform\SFMovie.cs" />
<Compile Include="Assets\Scripts\scaleform\SFMovie_Imports.cs" />
<Compile Include="Assets\Scripts\scaleform\SFRTT.cs" />
<Compile Include="Assets\Scripts\scaleform\SFSentinal.cs" />
<Compile Include="Assets\Scripts\scaleform\SFValue.cs" />
<Compile Include="Assets\Scripts\scaleform\SFValue_Imports.cs" />
<Compile Include="Assets\Scripts\UI\MyCamera.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\SyntaxTree\UnityVS\2012\UnityVS.CSharp.targets" />
</Project>
推荐答案
这通常在三种不同的情况下发生:
This typically happens in three different scenarios:
- 用户正在使用Visual Studio的试用版.目前,UnityVS需要一个完整的Visual Studio.
- 安装无法重新创建Visual Studio扩展缓存.我们发现如果有一个流浪的devenv.exe进程,就会发生这种情况.确保没有devenv.exe进程正在运行,然后重新安装UnityVS.
- 用户在GAC中安装了旧的UnityVS破解版,与当前的UnityVS冲突.
在某些情况下,您还没有安装Unity所需的.NET 3.5框架(Unity的类库是.NET 3.5的子配置文件),但是错误消息通常对此是明确的.
There's also the case where you haven't installed the .NET 3.5 framework which is required by Unity (Unity's class library is a subprofile of .NET 3.5), but the error message is usually explicit about this.
这篇关于UnityVS Visual Studio无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!