question

deceadev-2295 avatar image
0 Votes"
deceadev-2295 asked HernandoRen-MSFT commented

VS error when deploying Hololens2 app. Cannot find GameAssembly.lib

My client and me are having problems to deploy the app in his machine (in my machine it works perfectly), so he can test the app in his headset (we work remotely). He has cloned the project and I've checked via teamviewer that he has the correct Unity settings and VS settings.. I can remotely build the app successfully in Unity but when I try to build and deploy the vs solution via VS 2019, I always get the same error in his machine....

This is the error (MapFileParser.exe / Cannot find GameAssembly.lib):

119403-mapfileparsererror.png


It says that it cannot open the library GameAssembly.lib.. I realised that the Build folder does not contain the file GameAssembly.lib. Somehow that library is not being generated...

Please, someone who can help me with this issue ? I've tried many things so far. The machine has all the tools, proper software versions, I've followed all the steps of MS official documentation....
Also, I've tried with deploying via WIFI and USB, same result.


Thanks!


windows-uwphololens-development
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Could you paste the log messages of the "Output" window in Visual Studio after the build fails? It is recommended you tried to delete the previous "build" directory and rebuild it in Unity. Then, repairing the installation of VS and ensure that you update to Visual Studio 2019 version 16.8 or higher. Besides, please double-check the workload Desktop development with C++ has been installed in VS correctly. For more information please see:Installation checklist

0 Votes 0 ·

Hi @HernandoRen-MSFT ,

Thanks for your reply.
I already checked the installation checklist and everything was fine. Also, I made a new "build" directory in Unity in his machine. Same issue. Attached are the log messages of the "Output" window:

120451-buildoutput.txt


0 Votes 0 ·
buildoutput.txt (4.9 KiB)

As a test, please try to create a simple UWP project from the Visual Studio and deploy it to your HoloLens. Do you see the same behavior? Besides, could you provide the version number of your Unity and Visual Studio?

0 Votes 0 ·

Possibly because some overactive anti-virus apps (including Defender) blocking GameAssembly.lib. Could you disable your anti-virus for the build folder and try again?

0 Votes 0 ·

0 Answers