Here is the sample project I'm using on GitHub: MahApps.Metro.Simple.Demo
Here is the original question I found on StackOverflow: How to bundle MahApps.Metro into single exe
My goal is to be able to run the compiled EXE file on another computer without including the MahApps.Metro.dll and System.Windows.Interactivity.dll files alongside the executable.
I am using the VisualStudio Professional 2013 IDE and have not modified the demo project aside from installing the MahApps.Metro NuGet package.
Here are the exact steps I'm currently attempting:
- Run the debugger and make a copy of the compiled executable from the "project name"\bin\degbug directory.
- Place the copy of the compiled executable file on another computer and attempt to run it.
The application fails to run and the System.Windows.Markup.XamlParseException error gets recorded in the Windows Application log.
However, when I copy the previously mentioned DLLs and place them within the same directory alongside the executable file it runs successfully.
Am I not compiling the project correctly to get the desired result?
I've verified all of the items posted by punker76, in the response to the previously linked question, and everything matches.