1

Closed

WinRT Nuget Version: XamlParseException

description

  1. Install Toastinet with NuGet to a WinRT 8.1 Project
  2. Add the Control to the Page
  3. Design & Runtime not working
The Example Project only works because the source is still there so it can copy the necessary files.
Closed Feb 19, 2015 at 4:32 PM by GDM

comments

GDM wrote Nov 26, 2014 at 8:43 AM

Hello,

Thanks for your report.
I will investigate and I'll publish an update before the end of the week.

negue wrote Nov 29, 2014 at 8:40 PM

I tried it again with Nuget Version 1.5, it is the same problem :(

What I'm adding to my universal Page
      xmlns:winRt="using:Toastinet.WinRT"
and
  <winRt:Toastinet Grid.Column="0" Grid.ColumnSpan="2" 
                          x:Name="Toastinet"/>
Do I need to import the styles in my App.xaml?

negue wrote Nov 29, 2014 at 9:08 PM

I think I found the error, you need to publish some more files along with the *.dll

Here is how I could get it running:

At first I compiled the Source to see the bin output of the "Toastinet.WinRT" Project, after many try and errors of copying the files in the right folder, I got the right folder / file structure:
(NugetPackages)/Toastinet.1.5/lib/
+---netcore451
|   |   Toastinet.WinRT.dll
|   |   Toastinet.WinRT.pri
|   |
|   \---Toastinet.WinRT
|       |   Toastinet.WinRT.xr.xml
|       |   Toastinet.xbf
|       |
|       \---Resources
|               ApplicationStyles.xbf
|
\---wpa81
    |   Toastinet.WinRT.dll
    |   Toastinet.WinRT.pri
    |
    \---Toastinet.WinRT
        |   Toastinet.WinRT.xr.xml
        |   Toastinet.xbf
        |
        \---Resources
                ApplicationStyles.xbf
Now it works on my universal project :)

GDM wrote Nov 29, 2014 at 9:44 PM

Yes, you're right, this is it.

I republish right now with missing files.

This problem occurs only with universal app.

GDM wrote Dec 2, 2014 at 6:40 PM

Hello,

Thanks for your help. I've added missing files, it is now working.
(It seems that a parse exception occur in Design mode but not in runtime, I don't know why)

wrote Feb 19, 2015 at 4:32 PM