Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
Bug in StrawberryShake.Server v13.1.0 - The expression "[MSBuild]::VersionGreaterThanOrEquals('', 7)" cannot be evaluated. Version string was not in a correct format. #6224
When upgrading StrawberryShake.Server from v13.0.5 to v13.1.0 I get a compilation error:
StrawberryShake.Server.targets(38, 20): [MSB4184] The expression "[MSBuild]::VersionGreaterThanOrEquals('', 7)" cannot be evaluated. Version string was not in a correct format.
It helps to run dotnet graphql update, but this shouldn't be necessary. Other users checking out the repo should not have to run any tool commands.
Setup a project with StrawberryShake.Server v13.0.5
Upgrade to v13.1.0
Build project
Relevant log output
"/Users/username/projects/Edge/yClient/Company.MyClient.csproj" (rebuild target) (1) ->
(GenerateGraphQLCode target) ->
MSBUILD : warning MSB5029: The value "\**\*.cs" of the "Include" attribute in element <ItemGroup> in file "/Users/username/.nuget/packages/strawberryshake.server/13.1.0/build/StrawberryShake.Server.targets (23,16)" is a wildcard that results in enumerating all files on the drive, which was likely not intended. Check that referenced properties are always defined.
"/Users/username/projects/Edge/yClient/Company.MyClient.csproj" (rebuild target) (1) ->
(_GenerateGraphQLCode target) ->
/Users/username/.nuget/packages/strawberryshake.server/13.1.0/build/StrawberryShake.Server.targets(38,20): error MSB4184: The expression "[MSBuild]::VersionGreaterThanOrEquals('', 7)" cannot be evaluated. Version string was not in a correct format.
"/Users/username/projects/Edge/yClient/Company.MyClient.csproj" (rebuild target) (1) ->
(CoreCompile target) ->
CSC : error CS2021: File name '/**/*.cs' is empty, contains invalid characters, has a drive specification without an absolute path, or is too long
CSC : error CS2001: Source file '/**/*.cs' could not be found.
Is there an existing issue for this?
Product
Strawberry Shake
Describe the bug
When upgrading
StrawberryShake.Server
from v13.0.5 to v13.1.0 I get a compilation error:StrawberryShake.Server.targets(38, 20): [MSB4184] The expression "[MSBuild]::VersionGreaterThanOrEquals('', 7)" cannot be evaluated. Version string was not in a correct format.
It helps to run
dotnet graphql update
, but this shouldn't be necessary. Other users checking out the repo should not have to run any tool commands.Found this related slack chat: https://hotchocolategraphql.slack.com/archives/CMUJ40EHJ/p1685372432603619
Steps to reproduce
Relevant log output
Additional Context?
.graphqlrc.json:
project.csproj:
Version
StrawberryShake.Server: 13.1.0
dotnet --version => 7.0.100