I’m exploring how .NET shared frameworks work (for example, Microsoft.NETCore.App and Microsoft.AspNetCore.App) and I’m wondering if it’s possible to define and use a custom shared framework that can be referenced via <FrameworkReference>.
From what I understand, <FrameworkReference> is typically used for the official Microsoft frameworks. However, I’m curious whether it’s possible for developers to define their own shared frameworks, installed system-wide and have them recognized by the SDK in the same way.
So far, I’ve looked through: The .NET SDK repository and documentation but I haven’t found any documentation describing how to register a custom shared framework.
Question:
What would be required to create and use a custom shared framework that can be referenced with <FrameworkReference>? Is this supported by the .NET SDK, or only available for Microsoft’s own frameworks?
Edit: Just to clarify, I asked this question out of curiosity rather than for a specific project. My goal is to understand whether the mechanism behind is something only Microsoft can use for its own shared frameworks, or if it’s also feasible for third-party developers to create and register their own.