2

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.

4
  • It's not entirely clear what to you constitutes a framework in this context. Can you provide an example of what a custom framework might do and/or look like? Commented Oct 26 at 20:31
  • @500-InternalServerError bundle of dlls - such as asp.net core's that are also available as packages but also part of the "framework" maybe? Commented Oct 26 at 20:36
  • Not sure what benefit you see from such approach instead of just creating a library, but highly likely you will need to build and roll out your own version of .NET SDK and runtime to support it. Commented Oct 27 at 7:34
  • @500-InternalServerError As another person mentioned, by "framework" I mean ASP.NET Core. I'm not trying to solve any particular problem or meet any personal need, I'm just genuinely curious if this is possible. Because I think it would be somewhat unfair if only Microsoft could do this with their own web framework, while third parties couldn't. Commented Oct 27 at 8:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.