Y
Y
Yugg02021-01-30 21:41:02
Unity
Yugg0, 2021-01-30 21:41:02

Why does it give these errors when compiling the game in Unity?

When compiling, it gives the following errors:

spoiler
Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()

Необработанное исключение. System.Reflection.TargetInvocationException: исключение было выброшено целью вызова.
UnityEditor.BuildPlayerWindow: BuildPlayerAndRun ()


spoiler
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Project\Just-Tanks\Library\ScriptAssemblies\Assembly-CSharp.dll'.
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()

---> System.IO.DirectoryNotFoundException: не удалось найти часть пути 'D: \ Project \ Just-Tanks \ Library \ ScriptAssemblies \ Assembly-CSharp.dll'.
UnityEditor.BuildPlayerWindow: BuildPlayerAndRun ()


spoiler
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()


spoiler
И другие: 6015a7138ae1e000007303.jpeg


I created a clean project, there is no such error.
I created a copy of my project, there is an error, I deleted all the elements (I left only a new scene), there is an error.
I created a new project, transferred everything from Asset to the project, it works.
Then what's the problem, why the old project does not compile?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-07-19
@Denny_Colt

Chrome + F12 + Network
Fiddler

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question