You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please revert the commit ccfa393 as it constitutes a regression for my WPF+Winforms project.
The issue I get on the command line is:
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Confuser.Core.ConfuserEngine.PrintEnvironmentInfo(ConfuserContext context)
at Confuser.Core.ConfuserEngine.RunInternal(ConfuserParameters parameters, CancellationToken token)
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Confuser.CLI.Program.RunProject(ConfuserParameters parameters)
at Confuser.CLI.Program.Main(String[] args)
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:
The text was updated successfully, but these errors were encountered:
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=null�1�clr-namespace:WpfApplication1�WpfApplication1 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:
The text was updated successfully, but these errors were encountered: