简体   繁体   English

在Asp.net Core中为DeveloperForce.Force添加nuget包会抛出错误

[英]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. 我正在尝试在asp.net核心应用程序中添加添加Force包,但是它抛出错误。

Package DeveloperForce.Force 1.3.0 is not compatible with netcoreapp1.0 软件包DeveloperForce.Force 1.3.0与netcoreapp1.0不兼容

I have looked on the web Force package for core framework But i couldnot find. 我已经在Web Force软件包中找到了核心框架,但找不到。 Is there a way to bypass this error. 有没有一种方法可以绕过此错误。

The only way is to remove .NET Core support from the project(s) consuming that package. 唯一的方法是从使用该软件包的项目中删除.NET Core支持。 There's no other way without the owners of DeveloperForce.Force upgrading their packages. 没有DeveloperForce.Force的拥有DeveloperForce.Force没有其他办法DeveloperForce.Force升级他们的软件包。

Alright I got it. 好吧,我明白了。

In my project.json file. 在我的project.json文件中。 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. 我添加了net45,然后添加了现在可以工作的nuget包。 It only shown a warning on the salesforce class 它只在salesforce类上显示警告 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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