Removing Stubborn Dependencies in Visual Studio
Hi! So I'm getting a laundry list of errors whenever I try to build in Visual Studio. An example is:
10>CSC : error CS0006: Metadata file 'C:*ProjectName**ProjectName*\Temp\UnityVS_bin\Debug\Unity.2D.PixelPerfect.dll' could not be found
This error happens for all of the current packages I have installed for Unity. My current project has dependencies to all of these packages (set up by Unity, I didn't do that explicitly) and when I attempt to remove the dependencies, Visual Studio says the dependency was created by the project system and cannot be removed. I'm pretty new to this sort of thing, so any help moving forward would be appreciated, thanks!
Answer by rudypoo · Feb 01, 2019 at 09:15 PM
You cannot build a Unity3d project through Visual Studio. Unity automatically compiles whenever it detects a change to code and builds are done through the File menu->Build Settings. You can edit code through Visual Studio and if you have Unity Tools for Visual Studio installed (I think it installs with Unity, but if not, you can add them through the Visual Studio installer), you can attach Visual Studio to Unity for debugging, but not for building.
Thanks for the response! I ended up figuring that much out from some digging around after I posted this, but I appreciate the help!
Your answer
Follow this Question
Related Questions
Problem with dependencies 0 Answers
Problems with meta files and Visual Studio... 1 Answer
Unable to install a package via Nuget in Visual Studio 0 Answers
Visual studio from unity not recognizing imported c++ CLR DLL 1 Answer
How to get started with Azure Blobg Storage? (How to I add the correct namespace?) 1 Answer