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

Getting error "FileNotFoundException: Could not find file '..\script\paket.dependencies". want to keep all my dependence in root folder only. #3285

Open aarunraja opened 6 years ago

aarunraja commented 6 years ago

Description

       Want to keep all my dependence (package folder) in root folder only.  used paket.references to achieve, but getting **FileNotFoundException: Could not find file '..\script\paket.dependencies** error.

Repro steps

I have folder structure as specified below. src --> script --> build.fsx --> fake.cmd --> paket.references --> svc --> packages --> paket.dependencies

the script folder will have F# Make script. in that i have refer my group packet. the code snap given below #r "paket: groupref build //"

My paket.references will look like this

// [ FAKE GROUP ] group Build source https://api.nuget.org/v3/index.json nuget Fake.Core.Target

when i try to run my script getting below error There was a problem while setting up the environment: -> FileNotFoundException: Could not find file '..\script\paket.dependencies'.

Expected behavior

All my dependence should be in root folder only (package folder). the script should run with all it dependence .

Actual behavior

Getting FileNotFoundException: Could not find file '..\script\paket.dependencies error.

forki commented 6 years ago

can you please upload a zip with repro?

matthid commented 6 years ago

This might be a fake issue as we have some trickery in place when relative paths are used...

aarunraja commented 6 years ago

Sample code available here ..

aarunraja commented 6 years ago

Can you please suggest any work around for this. Or can you share document how to use Absolute Path to reference the components