Open codingdave opened 7 years ago
The cause of the trouble is when you have a WPF Application but no local namespace. Then the baml code only contains the header
M S B A M L ÿÿÿÿ WpfApplication1 WpfApplication1.MainWindow
whereas when you have included the namespace you get
M S B A M L ÿÿÿÿJ FWpfApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null1clr-namespace:WpfApplication1WpfApplication1 5 WpfApplication1.MainWindow
You see that Version, culture and Public Key Token are missing here.
I have added a minimal sample.
WpfApplication1.zip
So instead of reverting the commit above it would be better to fix proper detection of code that does not have a local namespace. Unfortunately I have no clue how to fix that.
Please revert the commit ccfa393 as it constitutes a regression for my WPF+Winforms project.
The issue I get on the command line is:
The real issue is:
System.NullReferenceException was unhandled by user code HResult=-2147467261 Message=Object reference not set to an instance of an object. Source=Confuser.Core StackTrace: at Confuser.Core.ConfuserEngine.PrintEnvironmentInfo(ConfuserContext context) in D:\Projects\ConfuserEx.git\Confuser.Core\ConfuserEngine.cs:line 527 at Confuser.Core.ConfuserEngine.RunInternal(ConfuserParameters parameters, CancellationToken token) in D:\Projects\ConfuserEx.git\Confuser.Core\ConfuserEngine.cs:line 180 at Confuser.Core.ConfuserEngine.<>c__DisplayClass3.<Run>b__2() in D:\Projects\ConfuserEx.git\Confuser.Core\ConfuserEngine.cs:line 68 at System.Threading.Tasks.Task.Execute() InnerException: