Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet pack fails to resolve assembly when retrieving portable assembly metadata #3128

Closed
BladeWise opened this issue Jul 14, 2016 · 0 comments

Comments

@BladeWise
Copy link

Using nuget pack Sample.csproj -verbosity detailed over the attached project produces a System.IO.FileNotFoundException, trying to resolve System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
Such exception is raised while trying to access assembly metadata in the reflection-only context.

The Sample.project.json file contains the following dependencies:

{
  "supports": {},
  "dependencies": {
    "Microsoft.NETCore.Portable.Compatibility": "1.0.1",
    "NETStandard.Library": "1.6.0",
    "NuSpec.ReferenceGenerator": "2.0.0-beta-bld14",
    "System.IO.IsolatedStorage": "4.0.1",
    "System.Reflection": "4.1.0",
    "System.Runtime.Loader": "4.0.0"
  },
  "frameworks": {
    "netstandard1.5": {}
  }
}

I am aware that packing from csproj while using project.json could not work, so the sample project could not produce a valid package anyway (see #3108), but this issue seems more general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants