A dotnet tool to generate reference assemblies.
Reference assemblies are assemblies which only contain metadata but no executable IL code.
Sometimes you do not want to ship executable code but only metadata for developers to interact with your product. This can be especially useful if other developers are developing integrations (add-ons or plug-ins) to your proprietary product. You can then just provide your reference assembly to them. They will not need access to your product.
dotnet tool install ReferenceAssemblyGenerator <-g|--global>
dotnet refgen -- [-f|--force] [-o|--output <outputfile>] <assemblyPath>
The C# and Visual Basic .NET compiler (Rosyln) contains the similar options /refout and /refonly.
- Rosyln can only generate reference assemblies if you have the full source code. ReferenceAssemblyGenerator does not need source code, only the binary files.