The dependency Microsoft.Composition 1.0.27 does not support framework .NETCoreApp,Version=v1.1

前端 未结 2 897
庸人自扰
庸人自扰 2021-01-04 17:18

When I upgrade framework section to:

\"frameworks\": {
    \"netcoreapp1.1\": {
      \"dependencies\": {
      },
      \"imports\": \"dnxcore50\"
    }
  }         


        
2条回答
  •  一向
    一向 (楼主)
    2021-01-04 17:46

    If you are dealing with csproj files you can edit them and add this line:

    $(PackageTargetFallback);dotnet5.6;portable-net45+win8

    The result should look like this:

    netcoreapp1.1 $(PackageTargetFallback);dotnet5.6;portable-net45+win8

    This is how VS converter does it when it upgrades project.json to csproj. If you need other targets, you can play around converting your project.json files to csproj files and see the output.

提交回复
热议问题