Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to migrate DLL from .Net Framework to .Net Standard?

I have a solution containing more .Net Framework projects. I need to move the current application libraries to .Net Standard in order to be used by other projects.

I know I can do this by removing the current projects and recreating them with .Net Standard, then adding each class and dependency back to them, until I finish. This approach is acceptable in my case as the application is not huge, but I wonder if there is an easier way than this.

I was looking for something like the way that Target framework is usually changed for projects:

enter image description here

But there is no entry for .Net Standard here.

like image 804
meJustAndrew Avatar asked Sep 12 '18 13:09

meJustAndrew


1 Answers

You will need to manually edit csproj file and edit TargetFrameworks

  <PropertyGroup>
    <TargetFrameworks>netstandard1.4;net40;net45</TargetFrameworks>
  </PropertyGroup>

But personally in cases like that I am creating empty project then do replacing of old csproj file.

like image 59
Vova Bilyachat Avatar answered Oct 14 '22 05:10

Vova Bilyachat