I have imported UnityVS 2.1 in my Unity 5.1.1f1 Personal.. and as soon as I import I get the following error.
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)
Can anyone tell me what is the problem? I am using VS2015 community edition.
Ok I have solved the problem... it seems like the UnityVS didnt create the folder structure as follows by itself
\Library\UnityAssemblies\version.txt
So I created it manually by creating the UnityAssemblies folder and a blank text file named version.txt inside it... and bam it worked perfectly.. Stupid UnityVS... had me worrying for 1 hour.
This happens when your project has no scripts and wasnt started at least 1 time, only then that folder and file is created
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With