byme8 / ZeroQL

C# GraphQL client with Linq-like syntax
MIT License
278 stars 13 forks source link

ZeroQL CLI not working from Azure Devops pipelines #98

Closed devl-up closed 7 months ago

devl-up commented 7 months ago

Describe the bug

When my project is build from the Azure Devops Pipeline, the following errors shows up

/home/AzDevOps/.nuget/packages/zeroql/6.1.1/build/net7.0/ZeroQL.props(13,9): warning MSB3073: The command "dotnet zeroql --version" exited with code 150

Locally, everything works fine.

I do have a step in my pipeline that restores the project's tools

image

Which works

image

Here's the step which fails

image

The weird thing is that it is not the default "tool XXX not found" error from dotnet itself, so I'm pretty sure he actually calls & finds the tool.

Another thing that is weird is that my project is running & building in .NET 8 (which he finds), and when installing the tool he seems to do it under a 7.0 folder, which u can see in the last picture (also saying I'm missing the 7.0 SDK)

EDIT:

Installing the 7.0 alongside the 8.0 SDK in the pipeline seemed to fix the issue, the question is if this is expected behavior then ?

byme8 commented 7 months ago

6.1.1 doesn't support net8.0. Try the v6.2.0-preview.4. It has support for .net8.0.

I have started the build for 6.2.0. In a few minutes, the proper non-preview version will be ready.

devl-up commented 7 months ago

@byme8 alright thanks a lot will close this one !