[Alpha] Paket no longer works with a project and a solution in the main folder
See original GitHub issueDescription
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:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixed in 018
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