question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Alpha] Paket no longer works with a project and a solution in the main folder

See original GitHub issue

Description

In a project structure I use paket 7.0.0-alpha can not install packages anymore and fails while 6.2.1 does everything like it is expected. I use an extra run project in the root folder to enable usage of dotnet run <command> and a project solution.

Repro steps

Use paket 7.0.0-alpha016 and call paket install in a file structure like this:

- paket.dependencies
- run.fsproj
- Project.sln
- src/
    - Project.fsproj
    - paket.references

Simple example: https://github.com/NicoVIII/SimpleOptics

Expected behavior

Paket installs the packages like in 6.2.1

Actual behavior

Paket fails with this error:

Calling dotnet restore
MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
Total time taken: 0 milliseconds
Paket failed with
-> dotnet restore failed

Known workarounds

Use 6.2.1 instead of alpha version.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
forkicommented, Feb 17, 2022

fixed in 018

0reactions
NicoVIIIcommented, Feb 17, 2022

It possibly is quite unorthodox, but I use dotnet run restore to restore. But the solution should also work, yes 🙈 Everything is in there.

EDIT I saw that approach in the SAFE-Template and tinkered with it a bit. But I would guess that people using this template would run into the same problem that I have. https://github.com/SAFE-Stack/SAFE-template/tree/master/Content/default

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does Paket have any culpability in VS intellisense failing issue?
There is no scenario where Visual Studio would be downloading anything. If the scenario where you edit paket.dependencies and paket.references while a solution...
Read more >
Seven tips for using Paket effectively
NET tool manifest file in your repository, the first command is not required. 2. Adding and removing a single package to / from...
Read more >
Visual Studio not showing all Projects in solution
Close the VStudio entire project, go to the main project folder and click on the .sln file to load the entire project agian....
Read more >
NuGet Package Version Reference
nuget.org rejects any package upload that lacks an exact version number. The version must be specified in the .nuspec or project file used...
Read more >
Working with the AWS CDK in C# - ...
The following example assumes that you are in your AWS CDK project's main directory. dotnet add src/ PROJECT-DIR package Amazon.CDK.AWS.IoT.Alpha -v ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found