-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid parameter 'net5.0-windows10.0.17763.0' #2565
Comments
The same problem occurs when using an older paket version:
|
Further isolated the problem to: // fails
//#r "nuget: Paket.Core, 6.0.0-alpha050"
// fails
//#r "nuget: Paket.Core, 5.251.0"
// works
#r "nuget: Paket.Core, 6.0.0-beta8"
open System.IO
open Paket
let path = Path.GetFullPath(".")
let lockFile = Path.Combine(path, "paket.lock")
File.Exists(lockFile)
LockFile.LoadFrom(lockFile) Use the attached lock file. So upgrading to Paket.Core 6.0.0-beta8 should do the trick. |
I was investigating this issue and FAKE is using a different Paket version than the one you are specifying in your repository - MiniScaffold. |
Because the stable version of Paket cannot handle net5 references. That's the essence of the problem. |
There has not been any activity in this issue for the last 3 months so it will be closed in 14 days if there is no activity. |
Description
When trying to build my solution with just
dotnet build
. It works. But using fake I get an errorRepro steps
nuget Informedica.Utils.Lib
andMicrosoft.Data.SqlClient
to dependenciespaket install
to install the dependenciesdotnet fake build -t dotnetbuild
See my below comments that demonstrate the problem in isolation.
Exptected behavior
The solution builds, just like running
dotnet build
.Actual behavior
Known workarounds
Not using fake
Related information
fake version: 5.20.4-alpha.1642
.NET SDK (reflecting any global.json):
Version: 5.0.103
Commit: 72dec52dbd
Runtime Environment:
OS Name: Windows
OS Version: 6.1.7601
OS Platform: Windows
RID: win7-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.103\
Host (useful for support):
Version: 5.0.3
Commit: c636bbdc8a
.NET SDKs installed:
2.1.701 [C:\Program Files\dotnet\sdk]
2.1.801 [C:\Program Files\dotnet\sdk]
2.2.301 [C:\Program Files\dotnet\sdk]
2.2.401 [C:\Program Files\dotnet\sdk]
3.1.100 [C:\Program Files\dotnet\sdk]
3.1.101 [C:\Program Files\dotnet\sdk]
3.1.301 [C:\Program Files\dotnet\sdk]
5.0.103 [C:\Program Files\dotnet\sdk]
The text was updated successfully, but these errors were encountered: