Developing a Hololens 2 app: deploying via VS works but installing a app package does not

%3CLINGO-SUB%20id%3D%22lingo-sub-1962286%22%20slang%3D%22en-US%22%3EDeveloping%20a%20Hololens%202%20app%3A%20deploying%20via%20VS%20works%20but%20installing%20a%20app%20package%20does%20not%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1962286%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EHi.%20I%20am%20developing%20a%20Hololens%202%20app%20with%20VS2019%2BUnity%2BMRTK.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20test%20the%20app%20by%20deploying%20via%20VS2019%20and%20it%20works.%20However%2C%20if%20I%20publish%20it%20as%20an%20app%20package%20and%20install%20it%20on%20the%20device%20portal%2C%20the%20app%20runs%20but%20cannot%20access%20its%20asset%20data%20under%20Data%2FStreamingAssets.%20I%20tried%20to%20make%20an%20app%20package%20with%20different%20methods%20(%201.%20'Publish%20%2F%26nbsp%3B%3C%2FSPAN%3EGenerate%20an%26nbsp%3Bapp%20package'%20menu%20of%20VS2019%3B%202.%20manually%20packaging%20and%20signing%20using%20MakeAppx%20and%20SignTool.%20)%20but%20encountered%20the%20same%20problem%20regardless%20of%20methods.%20Does%20anyone%20know%20a%20solution%20for%20this%20problem%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi. I am developing a Hololens 2 app with VS2019+Unity+MRTK.

 

I test the app by deploying via VS2019 and it works. However, if I publish it as an app package and install it on the device portal, the app runs but cannot access its asset data under Data/StreamingAssets. I tried to make an app package with different methods ( 1. 'Publish / Generate an app package' menu of VS2019; 2. manually packaging and signing using MakeAppx and SignTool. ) but encountered the same problem regardless of methods. Does anyone know a solution for this problem?

0 Replies