Using .NetZ and WPF raises a System.IO.IOException

My goal is to use any packer for C # applications and libraries (preferring WPF) through the command line or the full assembly in Visual Studio.

I came to .NetZ ( http://madebits.com/netz/ ), which is pretty neat and worked very well until I tested it with a WPF application: / p>

PackageExample.Program -> C:\Users\[username]\Documents\Visual Studio 2012\Projects\PackageExample\PackageExample.Program\bin\Debug\PackageExample.Program.exe COMMAND: packcompress\netz-bin-40\netz.exe -o PackageExample.Program\bin\Debug\Packed -pl anycpu -s -z PackageExample.Program\bin\Debug\PackageExample.Program.exe "PackageExample.Program\bin\Debug\*.dll" -d:@ -v __________________________________________ | | | .NETZ - .NET Executables Compressor | | Copyright (C) 2004-2013 Vasian Cepa | | [v0.4.8] http://madebits.com | |__________________________________________| PE subsystem : GUI .NET Runtime : 4.0.30319.18052 Output directory: C:\Users\[username]\Documents\Visual Studio 2012\Projects\PackageExample\PackageExample.Program\bin\Debug\Packed RID: zip.dll Added : C:\Users\[username]\Documents\Visual Studio 2012\Projects\PackageExample\packcompress\netz-bin-40\zip.dll [65536 byte(s) ~ 64KB] Processing : 3 file(s) 1| C:\Users\[username]\Documents\Visual Studio 2012\Projects\PackageExample\PackageExample.Program\bin\Debug\PackageExample.Program.exe [255488 byte(s) ~ 249KB] -> [130850 byte(s) ~ 127KB] - 49% RID: A6C24BF5-3690-4982-887E-11E1B159B249 2| C:\Users\[username]\Documents\Visual Studio 2012\Projects\PackageExample\PackageExample.Program\bin\Debug\PackageExample.Lib1.dll [4096 byte(s) ~ 4KB] -> [1577 byte(s) ~ 1KB] - 62% RID: PackageExample.Lib1!2!1Version=1.0.0.0!2!1!4=neutral!2!1PublicKeyToken=null 3| C:\Users\[username]\Documents\Visual Studio 2012\Projects\PackageExample\PackageExample.Program\bin\Debug\PackageExample.Lib2.dll [4608 byte(s) ~ 4KB] -> [1617 byte(s) ~ 1KB] - 65% RID: PackageExample.Lib2!2!1Version=1.0.0.0!2!1!4=neutral!2!1PublicKeyToken=null Done [00:00:00.300] 

The packaged application throws this: http://i.imagebanana.com/img/251ygj82/Unbenannt.PNG (Cannot find the mainwindow.xaml ressource file.)

The problem seems to be that xaml.NetZ is embarrassing, but I found some people who have earned it on the Internet, but I am not getting any problems.

Can you help me in this case?

Additional Information: It might be interesting to mention that I even tried this with .NET 2.0.NetZ based on the .NET 3.5 WPF application.

0
c # wpf xaml
Sep 26 '13 at 13:34 on
source share
1 answer

I also had problems using NetZ to compress exe exe and dll into one exe. My app.xml.cs will start to run, but then a UnhandledException of type NotImplementedException will be thrown: Baml2006SchemaContext.ResolveBamlType ...

To fix this problem, I ran the fuslogvw.exe file to see assembly binding errors and found that GalaSoft.MvvmLight.Wpf4.dll could not be downloaded from the Netz collector. Then I switched to NetZ.exe, compiled from the source, and tried again. After repeated experiments, I see that if I recompile the NetZ-pack application, it sometimes starts working. Reconnect the main application again, and NetZ creates the failed application. In other words, something is choppy. Sorry for the not-so-good news - try a different packaging scheme or try NetZ many times on many builds until you find a working one.

+1
Oct. 16 '13 at 6:34 on
source share
— -



All Articles