Merge .dll into C# Assembly?

后端 未结 3 1752
旧时难觅i
旧时难觅i 2021-01-06 03:58

Using #C.net 3.5

I\'m aware of the ILMerge and alike techniques, but I would actually like to make use of Jeffrey Richter\'s suggestions.

After adding this c

3条回答
  •  日久生厌
    2021-01-06 04:33

    String resourceName = "AssemblyLoadingAndReflection." + new AssemblyName(args.Name).Name + ".dll";
    

    should be changed to:

    String resourceName = Application.Current.GetType().Namespace + "." + new AssemblyName(args.Name).Name + ".dll";
    

提交回复
热议问题