gpt4 book ai didi

导入时出现 UnityVS 错误?

转载 作者:行者123 更新时间:2023-12-04 23:19:06 26 4
gpt4 key购买 nike

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

DirectoryNotFoundException: Could not find a part of the path "C:\Users\Public\Documents\Unity Projects\Achievement system\Library\UnityAssemblies\version.txt". System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/FileStream.cs:292) System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) (wrapper remoting-invoke-with-check) 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.Encoding encoding, Int32 bufferSize) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/StreamWriter.cs:124) System.IO.StreamWriter..ctor (System.String path, Boolean append) (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool) System.IO.File.CreateText (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:159) SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.CreateVersionFile (System.String[] assemblies) SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.DeployUnityAssemblies (SyntaxTree.VisualStudio.Unity.Bridge.ProjectSystem.UnitySolution solution) SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.GenerateProject () SyntaxTree.VisualStudio.Unity.Bridge.Project+<>c__DisplayClass4.b__3 () UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs:264)



谁能告诉我是什么问题?
我使用的是 VS2015 社区版。

最佳答案

好的我已经解决了这个问题......似乎UnityVS没有自己创建如下文件夹结构

\Library\UnityAssemblies\version.txt

所以我通过创建 UnityAssemblies 文件夹和一个名为 version.txt 的空白文本文件来手动创建它......并且它完美地工作......
愚蠢的 UnityVS...让我担心了 1 个小时。

关于导入时出现 UnityVS 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32536151/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com