Convert .Net Core to .Net Framework

后端 未结 8 1421
小蘑菇
小蘑菇 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:57

    add below in csproj

      <PropertyGroup>
        <TargetFrameworks>netcoreapp2.1;net471</TargetFrameworks>
      </PropertyGroup>
    
    0 讨论(0)
  • 2020-12-08 07:00

    I have loaded core project to the VS 2017 RC Community and open *.csproj in text editor.

    Just delete teg

    <RuntimeFrameworkVersion>
    

    and replace

    <TargetFramework>netcoreapp1.1</TargetFramework>
    

    to

    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
    

    And after all in project properties set to any another framework and reset back (VS reload and repair *.csproj file).

    0 讨论(0)
提交回复
热议问题