fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
2.02k stars 525 forks source link

Wrong hint paths for referenced assemblies #1990

Open auduchinok opened 8 years ago

auduchinok commented 8 years ago

I created a project using ProjectScaffolding and added a NuGet reference to it using mono .paket/paket.exe add nuget JetBrains.ReSharper.SDK project SDKTest.

When I try to build, there's a lot of errors like

2) FS0078: FSC(0,0): Unable to find the file '..\..\packages\AsyncBridge.JetBrains\lib\net40-Client\AsyncBridge.dll' in any of /usr/local/Cellar/mono/4.6.1.5/lib/mono/4.0-api /Users/Eugene/Developer/ReSharperSDKTestFs/src/SDKTest /Users/Eugene/Developer/ReSharperSDKTestFs/packages/FSharp.Core/lib/net40
3) FS0078: FSC(0,0): Unable to find the file '..\..\packages\AsyncIO\lib\net40\AsyncIO.dll' in any of /usr/local/Cellar/mono/4.6.1.5/lib/mono/4.0-api /Users/Eugene/Developer/ReSharperSDKTestFs/src/SDKTest /Users/Eugene/Developer/ReSharperSDKTestFs/packages/FSharp.Core/lib/net40
4) FS0078: FSC(0,0): Unable to find the file '..\..\packages\DotNetZip.Reduced\lib\net20\Ionic.Zip.Reduced.dll' in any of /usr/local/Cellar/mono/4.6.1.5/lib/mono/4.0-api /Users/Eugene/Developer/ReSharperSDKTestFs/src/SDKTest /Users/Eugene/Developer/ReSharperSDKTestFs/packages/FSharp.Core/lib/net40
5) FS0078: FSC(0,0): Unable to find the file '..\..\packages\FSharp.Core\lib\net40\FSharp.Core.dll' in any of /usr/local/Cellar/mono/4.6.1.5/lib/mono/4.0-api /Users/Eugene/Developer/ReSharperSDKTestFs/src/SDKTest /Users/Eugene/Developer/ReSharperSDKTestFs/packages/FSharp.Core/lib/net40
forki commented 8 years ago

Can you please put a repro sample in a zip or something and put it here? Thx

Does the csproj look correct?

auduchinok commented 8 years ago

Sure, here it is. ReSharperSDKTestFs.zip I removed packages directory from there. fsproj looks correct apart from assemblies hints paths.

forki commented 8 years ago

If you run paket update -f - would that fix it for you?

Am 29.10.2016 11:05 vorm. schrieb "Eugene Auduchinok" < notifications@github.com>:

Sure, here it is. ReSharperSDKTestFs.zip https://github.com/fsprojects/Paket/files/559852/ReSharperSDKTestFs.zip I removed packages directory from there. fsproj looks correct apart from assemblies hints paths.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Paket/issues/1990#issuecomment-257080514, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNKkpOhu6v7WS7KzeVdaYxxMpS594ks5q4ww8gaJpZM4KkD0C .

auduchinok commented 8 years ago

Nope, it doesn't fix the issue.

auduchinok commented 8 years ago

When using VS 2015, NuGet installs everything fine and adds correct hints. SDKTest.zip There's just another issue with build in F# 4.0 which is fixed in upcoming F# 4.1.

forki commented 8 years ago

@auduchinok can't see any issue with the zip. what's the concrete problem?

auduchinok commented 8 years ago

Path hints in the last zip were added using NuGet in VS and are correct. There're wrong paths in first attached zip.

forki commented 8 years ago

ok can you please show me exactly which path is incorrect and where?