我使用UnityVS生成Visual Studio项目,但是无法打开项目文件* .CSharp.csproj。

我发现问题是ProjectTypeGuids使用未知类型:E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1,而google也无法告诉我那是什么。

有人有同样的问题吗?

该项目文件是:

<?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>

最佳答案

这通常发生在三种不同的情况下:

  • 用户正在使用Visual Studio的试用版。当前,UnityVS需要一个完整的Visual Studio。
  • 安装未能重新创建Visual Studio扩展缓存。我们发现如果有一个流浪的devenv.exe进程,就会发生这种情况。确保没有devenv.exe进程正在运行,然后重新安装UnityVS。
  • 用户在GAC中安装了旧的UnityVS破解版,与当前的UnityVS冲突。

  • 在某些情况下,您还没有安装Unity所需的.NET 3.5框架(Unity的类库是.NET 3.5的子配置文件),但是错误消息通常对此是明确的。

    09-28 03:34