Reputation: 45
When I try to run my game, unity deletes packages imported with nuget. This is done whenever we go to run it. The packages is specifically TestSharp.
Upvotes: 0
Views: 648
Reputation: 9
You have to copy the dll provided by that package, to the plugins folder of the unity project. Personally i create a custom c# proyect, import the nugget package there. Then in the postbuild event, i copy the generated dll in the plugins folder of the unity project. Unity should import these dll.
Upvotes: 1
Reputation: 2427
You can't use nuget packages with Unity like a regular Visual Studio project. You'll need to add the dll as a plugin. See this question on the Unity forum:
http://answers.unity3d.com/questions/631546/using-a-nuget-package-jsonnet.html
Upvotes: 2