title: C# rename namespaces during build
body: <p>I am looking for a way to rename namespaces in an 3-rd party assembly during build process (and corresponding using statements in user code). I searched through fody's weavers but haven't found such thing. There is a pull request to ILRepack that does exact thing but it seems to be stale and not passing CI: <a href="https://github.com/gluck/il-repack/pull/268" rel="nofollow noreferrer">https://github.com/gluck/il-repack/pull/268</a></p>
  <p>Lets say I have two projects, A and B, both are nugetized and B has package dependency on A. Since I do not want to lock consumer on specific version on A when referencing B I am merging A into B with ILRepack and internalize A there, but despite A being internalized in B there is a type ambiguity on classes from A when consumer uses A and B in his project C.</p>
  <p>NEST package (elasticsearch client <a href="https://github.com/elastic/elasticsearch-net" rel="nofollow noreferrer">https://github.com/elastic/elasticsearch-net</a>) has done the exact thing with Newtonsoft.Json package.</p>