Base solution for your next web application
Open Closed

Can we change the target framework of the Application.Shared project from netstandard2.0 to net5.0 ? #10553


User avatar
0
dzungle created

Hello Support Team

We are updating the aspnet zero form version 8.9.2 to version 10.4 (ASP.NET Core and Angular).
We also have our own core/shared projects that target net5.0. And these projects need to be referenced by the Application.Shared project. We faced building errors because of incompatity issue as below:

.

Can we change the target framework of the Application.Shared project from netstandard2.0 to net5.0 in order to resolve the issue? Or do we have to retarget our own core/shared projects to the same netstandard2.0 framework? Could you please suggest the best practice?

Best Regards

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @dzungle

    Sure, you can change its target to .net5. We use netstandard to support .NET Framework.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    dzungle created

    Thank you, @ismcagdas.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)