I build an empty project with Visual Studio 2015 RTM + Unity 5.2
Scroll down to see why it failed to restore nuget packages, addtionally try creating Universal 10 app from VS 2015 and see if it runs fine there.
Thanks Tomas1856 , I have already got it now !
How did you solve it? I’m having this problem atm, and need it fixed…
EDIT: nvm, the workaround was to build a UWP app in VS2015 first, of which corrects the problem.
any project? should it be same name?
Any project. I’ve also noticed that some failures were triggered by having no internet, (Wow Microsoft…) just make sure your internet is up, then build your project. Sometimes, a whole lot of errors and warnings will pop up, but in most cases, they’re false, as the game builds fine regardless.
EDIT: Also, you don’t need the same name.
i am using unity 5.3.0f4, windows 10 64bit , VS 2015
i can’t to build my game in windows store platform…
plz help me
@4443 , something went wrong with restoring Nuget packages, things to try:
- delete C:\Users<user>.nuget directory, note it’s hidden, ensure that you can see hidden directories
or
- don’t use build & run, simply build, open generated solution and try to run then
“* don’t use build & run, simply build, open generated solution and try to run then”
People, listen to this one… It’s the only way I got my machine to build anything.
And for nuGet errors, I found connecting to the internet solved the problem. the nuGet package restore might also throw errors for no reason, in that the build will still run fine.
its not working guys , after delete .nuget directory…
any other method…???
i just simply install the vs 2015 i didn’t change any setting before install…i did wrong???
@4443 try creating Universal application from VS 2015, maybe you’re missing some SDK.
which is more important from VS 2015 before install…
I had the same problem, reinstalling the Universal SDK from the VS installer (it will isA need to download something during the installation, leave it) solved the problem for me.
Thanks for fixing the problem that I had with trying to build this thing. Wish I had found this tread about 2 hours ago.
You’re welcome.
On the other hand, I forgot this thread existed, lol. XD
Hi, I had the same problem and the proposed solutions here didn’t work for me.
However, I was able to solve the problem by uptating the Nuget package manager used by Unity.
I opened a command prompt and navigated to C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport\Tools
Then updated nuget.exe with the following command: nuget.exe update -self
I restarted Unity and then I was able to build my project. Hope that helps.
Huh, i had no idea Unity had it’s own nuget executable. Maybe I should update mine, lol. XD
I was able to build games regardless of most of the errors I got (aka. they didn’t actually affect my game’s builds at the time I got them)
This did the trick for me. Thx!
l am using unity 5.6.0f1, windows 10 64bit , VS 2015
l can’t to build my game in windows store platform…
help me
Can you post your editor log?