标签: unityvs

Visual Studio调试器未附加到Unity

我在使用Visual Studio的调试器连接到Unity时遇到问题 - 在VS中编辑和编译脚本工作正常 - 但是,当单击"附加到Unity"或"附加到Unity和播放"时,代码会编译但不会发生任何其他情况.如果所有构建都是最新的,那么按钮什么都不做.我可以手动启动Unity内部的游戏,它运行最新的代码,但它没有附加到VS调试器.

我在我的PC上安装了Unity 5.3.5,Unity 2.2.0.0的Visual Studio工具和Visual Studio Community 2015.所有Unity工具都出现在Visual Studio(附加到Unity等)中.

Tools > Attach To Unity Debugger里面VS带来了统一的编辑器打开的情况下的正确的列表,但选择一个不重视它.正如我在这里建议的那样,我尝试使用127.0.0.1作为IP端点,但这仍然无效.我通过防火墙设置允许Unity和VS无济于事.

Unity Help > About还显示了Visual Studio Tools For Unity版本号,因此它知道插件的存在.

我加载VS via devenv.exe /log以查看是否有任何奇怪的事情发生 - 日志看起来很好并且Unity Tools已正确加载.(如果有任何用途,日志就在这里.)

我已经在VS,Unity和VS Tools for Unity上进行了修复重新安装,这是漫长而艰巨的,但一无所获.

我正在努力让它发挥作用 - 按"附加到Unity"并看到它确实没什么,甚至没有错误信息真的很令人沮丧.我觉得我必须遗漏一些东西 - 任何想法/建议/解决方案都将不胜感激

unity-game-engine visual-studio visual-studio-debugging unityvs unity5

11
推荐指数
2
解决办法
5042
查看次数

UnityVS visual studio无法打开

我使用UnityVS生成visual studio项目,但项目文件* .CSharp.csproj无法打开.

我发现问题是ProjectTypeGuids使用的是未知类型:E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1,谷歌也无法告诉我这是什么.

有谁有同样的问题?

项目文件是:

<?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" …
Run Code Online (Sandbox Code Playgroud)

unity-game-engine visual-studio unityvs

8
推荐指数
3
解决办法
2万
查看次数

导入UnityVS错误?

我在我的Unity 5.1.1f1 Personal中导入了UnityVS 2.1 ..一旦导入,我就会收到以下错误.

DirectoryNotFoundException:找不到路径"C:\ Users\Public\Documents\Unity Projects\Achievement system\Library\UnityAssemblies\version.txt"的一部分.System.IO.FileStream..ctor(System.String路径,FileMode模式,FileAccess访问,FileShare共享,Int32 bufferSize,布尔匿名,FileOptions选项)(在/ Users/builduser/buildslave/mono-runtime-and-classlibs/build /mcs/class/corlib/System.IO/FileStream.cs:292)System.IO.FileStream..ctor(System.String路径,FileMode模式,FileAccess访问,FileShare共享)(包装器远程处理 - 调用带检查) System.IO.FileStream:.ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)System.IO.StreamWriter..ctor(System.String path,Boolean append,System.Text.编码编码,

谁能告诉我这是什么问题?我正在使用VS2015社区版.

unityvs

4
推荐指数
1
解决办法
1435
查看次数