Targeting error .net core RC2 and .net4.6.1

I have the following project.json:

{
"version": "1.0.0-*",

  "dependencies": {
    "NETStandard.Library": "1.5.0-rc2-24027",
    "Dapper": "1.50.0-rc2b",
    "Microsoft.Extensions.DependencyInjection": "1.0.0-rc2-final",
    "System.Dynamic.Runtime": "4.0.11-rc2-24027",
    "Microsoft.CSharp": "4.0.1-rc2-24027"
  },

  "frameworks": {
    "netstandard1.5": {
      "imports": "dnxcore50"
    },
    "net461": {}
  }
}

Now, I get the following warnings that I prefer not to have

The indicated dependency was System.Dynamic.Runtime> = 4.0.11-rc2-24027, but ended with System.Dynamic.Runtime 4.0.10.0.

The indicated dependency was Microsoft.CSharp> = 4.0.1-rc2-24027, but eventually Microsoft.CSharp 4.0.0.0 appeared.

removing net461 from frameworks solves my problem - but this is not the preferred choice.

However, now I can guess why I get them, something related to those libraries that do not support net461, although this seems strange to me.

I tried using an older version, but then I got a warning that Dapper was expecting a newer version of these - any ideas?

- , ( )

+4
1

, , , . :

{
  "version": "1.0.0-*",

  "dependencies": {
    "Dapper": "1.50.0-rc2b",
    "Microsoft.Extensions.DependencyInjection": "1.0.0-rc2-final",
    "System.Dynamic.Runtime": "4.0.11-rc2-24027"
  },

  "frameworks": {
    "netstandard1.5": {
      "dependencies": {
        "NETStandard.Library": "1.5.0-rc2-24027"
      },
      "imports": "dnxcore50"
    },
    "net461": {
      "dependencies": {
        "Microsoft.CSharp": "4.0.1-rc2-24027"
      }
    }
  }
}
+2

All Articles