0

I have a Xamarin.Forms solution that contains a UWP project. Since my dev machine is Windows 8.1, I set up Remote Debug in another pc with Windows 10 installed in my same LAN. So, in Visual Studio I have to Right-Click to my UWP project and choose "Deploy" ensuring that "Remote Machine" is selected. After that I can Debug by hitting Remote Machine.

It worked, the app worked with no problem using this Remote Debug.

Since this UWP didn't have its own Assets (Logos, icons, etc) i opened the Manifest Designer to choose the images in Visual Assets section. Compiled, Deployed, and tried to remote debug again. Now the app doesn't open, and I get the following Exceptions:

AppConsume.UWP.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Users\Usuario\AppData\Local\DevelopmentFiles\f736c883-f105-4d30-a719-4bf328872f5eVS.Debug_x86.JOHN_SMITH\Xamarin.Forms.Platform.dll'. Cannot find or open the PDB file.
'AppConsume.UWP.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Users\Usuario\AppData\Local\DevelopmentFiles\f736c883-f105-4d30-a719-4bf328872f5eVS.Debug_x86.JOHN_SMITH\Xamarin.Forms.Xaml.dll'. Cannot find or open the PDB file.
Excepción producida: 'System.IO.FileNotFoundException' en mscorlib.ni.dll
Excepción producida: 'System.IO.FileNotFoundException' en mscorlib.ni.dll
Excepción producida: 'System.IO.FileNotFoundException' en mscorlib.ni.dll

I tried other solutions like deleting Package Data folder described here: Exception thrown: 'System.Exception' in mscorlib.ni.dll on UWP App Start, with no success.

Any Ideas?

UPDATE: After checked System.IO.FileNotFoundException in Breakpoint settings I'm able to get more info about the current exception.

In Xamarin.Forms.Forms.Init(e); from App.xaml.cs file is throwing this exception:

Could not load file or assembly 'ClrCompression, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

I also updated UWP package to 5.2.2

4

1 に答える 1

0

デバッグでアプリケーションをコンパイルして実行するには、ビルド構成を調整します。

Visual Studio 2015 では、[ビルド] > [構成マネージャー] ウィンドウにあります (これはおそらく既定では発生しません)。ユニバーサル プロジェクトの [ビルド] ボックスと [デプロイ] ボックスにチェックを入れます。

構成マネージャー

ただし、まだログに「System.IO.FileNotFoundException」が表示されますが、少なくともアプリは開きます。

https://developer.xamarin.com/guides/xamarin-forms/platform-features/windows/installation/universal/

于 2016-12-19T18:40:11.707 に答える