Closed Mephistofeles closed 9 months ago
For reference, 13.0.0-rc.4 works even if I use the preview version of .NET SDK.
RC4 was pinned to SDK 6. If you had non installed it would not work.
I will put this on the next patch build.
Thanks for reporting this.
I think this can be handled with https://learn.microsoft.com/en-us/visualstudio/msbuild/property-functions?view=vs-2022#msbuild-version-comparison-functions
Closing. This was likely fixed by #6012.
Is there an existing issue for this?
Product
Strawberry Shake
Describe the bug
There is a bug in StrawberryShake.Server.targets resulting in incorrect error "The Strawberry Shake code generation requires .NET SDK 6 or .NET SDK 7 to work." when using preview version of .NET, for example dotnet version returning: 7.0.200-preview.22628.1 It can't be parsed by Version.TryParse and DotNetMajor does not return correct major version.
Steps to reproduce
Relevant log output
No response
Additional Context?
No response
Version
13.0.2