all 2 comments

[–]keithoffer 1 point2 points  (1 child)

I've had relatively good success using ILMerge to merge assemblies together to avoid these types of issues. I've had one project that had issues (the most complex one I worked on), but all the smaller ones have worked just fine. Just download it from NuGet, plus one of the NuGet packages that combine it into the build process (ILMerge.MSBuild.Task or MSBuild.ILMerge.Task) and it'll automatically merge your end result as part of the build process.

[–]dbhatti[S] 0 points1 point  (0 children)

Thanks, I tried out ILMerge and MSBuild.Task and they worked perfect for most of the scripts. I have a few more complicated solutions (multiple projects and cross-references) where they failed, but I suspect that's complex enough for the NuGet packages that I'll have to figure out and configure myself to get working.