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

net461 + netstandard issue #2779

Closed
miloszes opened this issue Sep 20, 2017 · 2 comments
Closed

net461 + netstandard issue #2779

miloszes opened this issue Sep 20, 2017 · 2 comments

Comments

@miloszes
Copy link

miloszes commented Sep 20, 2017

Hi,

I've created a simple .net standard 2 library containing a one class. When I install it with .net core projects it's linked correctly.
In case I install it into the .net Framework 4.6.1 project the reference package is not linked (when I install it using nuget everything is fine). When I run install in the verbose mode I can see that it uses the ToolsVersion 14. Is it correct that paket uses ToolsVersion 14 when linking .net standard libraries?

Can anyone help me to determine the problem?

Best regards,
MiloszeS

Repro steps

Create netstandard 2 library and create a nuget package

  1. install it using paket for a .NetFramework 4.6.1

The package won't be linked.

If possible then please create a git repository with a repro sample or attach a zip to the issue.

Expected behavior

Package is installed with paket.

Actual behavior

Package is not installed. The logs:

.paket\paket.exe install --verbose
Paket version 5.97.0
found: D:\Sandbox\Nuget\Net46Console\paket.dependencies
Parsing D:\Sandbox\Nuget\Net46Console\paket.dependencies
Resolving packages for group Main:
0 packages in resolution.
1 requirements left
- NetStandardSharedLibrary, (from D:\Sandbox\Nuget\Net46Console\paket.dependencies)

Trying to resolve NetStandardSharedLibrary (from D:\Sandbox\Nuget\Net46Console\paket.dependencies)
Starting request to 'https://www.nuget.org/api/v2/FindPackagesById()?semVerLevel=2.0.0&id='NetStandardSharedLibrary''
Starting request to 'https://xxx/repository/library-dev/FindPackagesById()?semVerLevel=2.0.0&id='NetStandardSharedLibrary''
Source 'https://xxx/repository/library-dev' yielded (0): [0.0.1 ; 0.0.1.1]

https://xxx/repository/library-dev/Packages(Id='NetStandardSharedLibrary',Version='0.0.1.1') <title type="text">NetStandardSharedLibrary</title> Package Description 2017-09-20T08:37:41.518Z NetStandardSharedLibrary 0.0.1.1 2017-09-20T08:37:41.519Z Package Description 0 true true false 2017-09-20T08:37:41.519Z Y3w/4WkCSncJf50vbtOtBhrUgCGlYr4fnnqK2GO9s/9ByQ+UMRwx8RKrpPWBhZ5a6DZ+bMyYtcrj8i5131YOkw== SHA512 8346 false NetStandardSharedLibrary 0

Found Explored Package NetStandardSharedLibrary 0.0.1.1
Locked version resolution written to D:\Sandbox\Nuget\Net46Console\paket.lock
Installing into projects:

  • Creating model and downloading packages.
    Downloading NetStandardSharedLibrary 0.0.1.1
    Downloading directly from DownloadLink: https://xxx/repository/library-dev/NetStandardSharedLibrary/0.0.1.1
    Downloading from https://xxx/repository/library-dev/NetStandardSharedLibrary/0.0.1.1 to C:\Users\xxx.nuget\packages\NetStandardSharedLibrary\0.0.1.1\NetStandardSharedLibrary.0.0.1.1.nupkg
    Downloaded NetStandardSharedLibrary 0.0.1.1 from https://xxx/repository/library-dev/NetStandardSharedLibrary/0.0.1.1.
    NetStandardSharedLibrary 0.0.1.1 unzipped to D:\Sandbox\Nuget\Net46Console\packages\NetStandardSharedLibrary
  • Net46Console/paket.references -> Net46Console/Net46Console.csproj
    Installing to D:\Sandbox\Nuget\Net46Console\Net46Console\Net46Console.csproj with ToolsVersion 14
    • Deleting Paket Reference nodes
      Project D:\Sandbox\Nuget\Net46Console\Net46Console\Net46Console.csproj changed
      Performance:
  • Resolver: 1 second (1 runs)
    • Runtime: 138 milliseconds
    • Blocked (retrieving package details): 434 milliseconds (1 times)
    • Blocked (retrieving package versions): 973 milliseconds (1 times)
  • Disk IO: 47 milliseconds
  • Average Download Time: 298 milliseconds
  • Number of downloads: 1
  • Average Request Time: 560 milliseconds
  • Number of Requests: 3
  • Runtime: 3 seconds

Known workarounds

Install with nuget.

@matthid
Copy link
Member

matthid commented Oct 14, 2017

Probably a duplicate of #2391, please follow the PR and the related Issues.

@matthid matthid closed this as completed Oct 14, 2017
@matthid
Copy link
Member

matthid commented Oct 14, 2017

And #2705

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

No branches or pull requests

2 participants