jaredpar / basic-reference-assemblies

Produce NuPkg files that have .NET Reference assemblies as resources
MIT License
100 stars 15 forks source link

Changing the code structure a bit #31

Closed jaredpar closed 1 year ago

jaredpar commented 1 year ago

As the set of references and use cases have increased I'm finding the existing code structure hard to deal with. Specifically:

  1. As ReferenceInfo is a type that is per assembly so it's impossible to share logic across target frameworks
  2. Assemblies being directly inside the Net60 types is leading to a lot of name ambiguities.
  3. It's weird for ReferenceInfo types to be inside a type named References and References to not be in a type

As such I'm changing the code structure as follows:

  1. Adding a Deconstruct and AsTuple method to ReferenceInfo that will return a value that can be shared amongst all the assemblies
  2. Moving the content which used to be under References to ReferenceInfos
  3. Moving references under References

These changes will be reflected in the 1.4 release series.