Skip to content

StrawberryShake.Server.targets cannot evaluate ::VersionGreaterThanOrEquals(' ', 6) #6180

Closed

Description

Is there an existing issue for this?

  • I have searched the existing issues

Product

Strawberry Shake

Describe the bug

When following this documentation (https://chillicream.com/docs/strawberryshake/v13/get-started/console), I get the following error when trying to build (sub-step 5 of step 4):
StrawberryShake.Server.targets(38, 20): [MSB4184] The expression "[MSBuild]::VersionGreaterThanOrEquals('', 6)" cannot be evaluated. Version string was not in a correct format..

I have followed the exact same instructions, so I don't understand why I get the error message. This is the generated code where it gives an error:

<PropertyGroup> <DotNetMajor Condition="$([MSBuild]::VersionGreaterThanOrEquals($(DotNetVersion),6))">6</DotNetMajor> <DotNetMajor Condition="$([MSBuild]::VersionGreaterThanOrEquals($(DotNetVersion),7))">7</DotNetMajor> </PropertyGroup>

The error mentions this file name: StrawberryShake.Server.Targets

Steps to reproduce

  1. Follow the instructions fromhttps://chillicream.com/docs/strawberryshake/v13/get-started/console
  2. Build the application when the instruction says 5. Compile your project.

Relevant log output

`StrawberryShake.Server.targets(38, 20): [MSB4184] The expression "[MSBuild]::VersionGreaterThanOrEquals('', 6)" cannot be evaluated. Version string was not in a correct format.`.

Additional Context?

No response

Version

13.1.0

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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions