Skip to content

Path.GetFullPath in netstandard1.2 can not be builded #1551

@Sebosek

Description

@Sebosek

Hi there,

I want to use Path.GetFullPath in class library targeting to netstandard1.2 but build ends up with: 'Path' does not contain a definition for 'GetFullPath'.
By description at nuget.org I should use netstandard1.0, netstandard 1.3 or 1.5 (Why just odd versions?), So I decide to target at 1.0, but still build is ending with described error. What am I missing?
(One of application what this library should use is asp.net core webapi running at .net fw 4.5.1)

Here is my project.json

{
  "dependencies": {
    "NETStandard.Library": "1.0.0-rc2-24027",
    "System.Diagnostics.FileVersionInfo": "4.0.0-rc2-24027",
    "Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final",
    "System.Runtime.Extensions": "4.1.0-rc2-24027",
    "System.Runtime": "4.1.0-rc2-24027"
  },

  "frameworks": {
    "netstandard1.0": {
      "imports": [
        "dnxcore50",
        "dnx451"
      ]
    }
  },

  "version": "1.0.0-*"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions