I will try to be more clear:
When I include the .saproj in the Visual Studio as follows:
- Code: Select all
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Release' ">
<SmartAssembly.MSBuild.Tasks.Build ProjectFile="EasyFit.saproj" />
And build my project, the resulting executable gives an unhandled exception at startup
(see below for details of this exception).
When I open this same .saproj in SmartAssembly and build, this exception does not occur
when starting the resulting executable.
The obfuscated executable is written in a seperate folder, which is a subdir of the bin\\Release folder. Obfuscation and assembly merging is applied.
It's an "System.Windows.Markup.XamlParseException" exception with the following message: "Cannot find type 'Type Name'. The assembly used when compiling might be different than that used when loading and the type is missing."
It occurs in "XamlReader.LoadBaml". So the exception appears to be related to the error messages I see in MSBuild: "Error rewriting xaml for resources/glowbutton.baml