简体   繁体   中英

Adding nuget package for DeveloperForce.Force in Asp.net Core throw error

I am trying add to add Force package in my asp.net core application but it is throwing an error.

Package DeveloperForce.Force 1.3.0 is not compatible with netcoreapp1.0

I have looked on the web Force package for core framework But i couldnot find. Is there a way to bypass this error.

The only way is to remove .NET Core support from the project(s) consuming that package. There's no other way without the owners of DeveloperForce.Force upgrading their packages.

Alright I got it.

In my project.json file. I updated the frameworks.

  "frameworks": {
    "netcoreapp1.0": {
      "imports": [
        "dotnet5.6",
        "dnxcore50",
        "portable-net45+win8",
        "net45"
      ],
      "dependencies": {
      }
    }

I added the net45 and than added the nuget package it works now. It only shown a warning on the salesforce class 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM