Convert .Net Core to .Net Framework

后端 未结 8 1425
小蘑菇
小蘑菇 2020-12-08 06:18

I have a .Net Core project web project, and for various reasons want to convert it to a .Net Framework project.

Is there an easy way to do this, or do I have to star

8条回答
  •  既然无缘
    2020-12-08 06:53

    There are several steps that you need to do, in order to achieve this.

    1. Firstly right click on the .csproj file and add the following

       netstandard2.0;netcoreapp2.0;net35;
            win7-x86;win7-x64 false

    1. Once you have made these changes reload the project and build it.
    2. This will generate the .dll files and Nuget package for this build in the Debug/Release folder of the project.
    3. Add these .dll to the nuget and access these projects from nuget.

    Try the above steps. This should work.

提交回复
热议问题