79674073

Date: 2025-06-21 01:17:02
Score: 1.5
Natty:
Report link

As @zivkan answered https://stackoverflow.com/a/77147546/6200917, default msbuild and nuget actions produces flat binary output directory preserving references original names. Renaming files there must be matched with changes in loading those renamed dll's (e.g. by directly using AssemblyLoadContext). Making this to work seems not so obvious.

But sometimes useful solution could be obvious one, so here it is.

Alternative - Create proxying dll's for every (additional) version

If those required packages are not transitive, creating trivial proxies (perhaps packing them to NuGet format) and referring them from main project should work (and nicely integrate with default MSBuild/Nuget actions), for example:

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @zivkan
  • Low reputation (1):
Posted by: MKX