Skip to content

Multi-trageting basic class library with VS2015 #6230

@gzak

Description

@gzak

I have a very barebones class library, and here's its project.json file (it's just a data model with very basic types and so doesn't need any other dependencies):

{
  "version": "1.1.0-beta2",
  "description": "My.Models",
  "authors": [ "asdf" ],

  "dependencies": {
    "NETStandard.Library": "1.5.0-rc2-24027"
  },

  "frameworks": {
    "netstandard1.5": {
      "imports": [
        "dotnet5.6",
        "dnxcore50",
        "portable-net45+win8"
      ]
    }
  }
}

I also have a separate solution with a traditional csproj project inside targeting .net 451 (framework assemblies), and when I add a dependency on the My.Models package in the csproj I get the following error:

Attempting to resolve dependency 'NETStandard.Library (≥ 1.5.0-rc2-24027)'.
'NETStandard.Library' already has a dependency defined for 'Microsoft.NETCore.Platforms'.

What am I doing wrong here? My.Models is as basic a class library as it gets...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions