Sitelet https://github.com/fsprojects/Paket/issues/2534
Skip to content

Fail when generate load scripts and version in path #2534

Description

@fpellet

Description

With last release (5.7.0, no error before), I have an error when I install or restore dependencies.
After several tests, I have this error only if I specify "version_in_path" flag and generate load script on a group.

Repro steps

paket.dependencies

framework: net462

source https://api.nuget.org/v3/index.json

nuget xunit.runner.visualstudio >= 2.2 version_in_path: true


group Build
    framework: net462

    source https://api.nuget.org/v3/index.json

    generate_load_scripts: true

    nuget FAKE

Run paket install

I have output :

Paket version 5.7.0
Skipping resolver for group Main since it is already up-to-date
Resolving packages for group Build:
 - FAKE 4.62.5
Locked version resolution written to C:\projet\test\paket.lock
Installing into projects:
 - Creating model and downloading packages.
Could not detect any platforms from '_common'
Performance:
 - Resolver: 1 second (1 runs)
    - Runtime: 145 milliseconds
    - Blocked (retrieving package details): 45 milliseconds (1 times)
    - Blocked (retrieving package versions): 1 second (1 times)
 - Disk IO: 13 milliseconds
 - Average Request Time: 363 milliseconds
 - Number of Requests: 2
 - Runtime: 3 seconds
Paket failed with:
-> DirectoryNotFoundException: Could not find a part of the path 'C:\projet\test\packages\xunit.runner.visualstudio'.

Expected behavior

No error

Actual behavior

Error :

Paket failed with:
-> DirectoryNotFoundException: Could not find a part of the path 'C:\projet\test\packages\xunit.runner.visualstudio'.

Known workarounds

None

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions