-
Notifications
You must be signed in to change notification settings - Fork 520
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
Paket 5.214.0 gives 'error MSB4086: A numeric comparison was attempted...' #3610
Comments
I can confirm that using Dotnet Cli instead of Msbuild directly is a working solution for us. |
@aklefdal I guess the VS2017 on the build server is not up to date but some older version? |
If you want to test a fix (or have a workaround):
Otherwise wait for the PR to be released and report back. |
can you please retry with 5.215.0? |
I retried this morning, and can confirm that Paket 5.215 (with FAKE 5.15.3) works. You guys rock! I will have a look at the instalment of build tools on the build agents, you are right, they might be outdated.
|
Description
Paket 5.214.0 seems to have broken our build (restore), but only on the build server. Gets the following error message:
.paket\Paket.Restore.targets(77,169): error MSB4086: A numeric comparison was attempted on "$(MSBuildVersion)" that evaluates to "" instead of a number, in condition " '$(MSBuildVersion)' < '16.0.360' ".
Repro steps
The builds scripts work fine on my machine, which has VS2019 installed. It works even in a standard command prompt. On the build agent, with .Net 4.7.2 developer pack installed, it fails.
Expected behavior
A working build.
Actual behavior
From the build log:
Known workarounds
Project files are the new SDK format, upgraded a few weeks ago, so we could now upgrade the build script to use Dotnet CLI instead.
The text was updated successfully, but these errors were encountered: