yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.57k stars 1.63k forks source link

Input Module with spaces in name #114

Closed AdamCaviness closed 9 years ago

AdamCaviness commented 9 years ago

My "Input Module" has spaces in the assembly name and ConfuserEx throws an exception in ConfuserEngine.cs on the latest code's line 495 where AssemblyResolver.GetCachedAssemblies() is called. This is unrelated to the exe filename itself but rather the Assembly Name for the host exe's csproj. When I have a space in the Assembly Name then the Dictionary<string, AssemblyDef> field cachedAssemblies has a null item which ConfuserEngine.cs and AssemblyResolver.GetCachedAssemblies() do not account for. As far as the actual root of the problem, I think it might be in the TypeNameParser. Thanks for all the work that has been put into this, it is impressive.

yck1509 commented 9 years ago

Should be fixed by 63e2a9ce6e2df1131ddd45d561da1e753adc8e0e.