RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.61k stars 1.22k forks source link

NSwag MSBuild fails on Linux #4929

Open jerone opened 3 days ago

jerone commented 3 days ago

I've setup NSwag MSBuild to run my nswag.json file according to the instructions here: https://github.com/RicoSuter/NSwag/wiki/NSwag.MSBuild This works great on Windows.

However when I try to build the project on my Linux agent on Azure Pipelines, I'm getting the following error:

/home/azureuser/agent/_work/24/s/<project>/IntegrationTest.csproj(34,3): error MSB3073: The command "/home/azureuser/.nuget/packages/nswag.msbuild/14.0.8/buildTransitive/../tools/Net80/dotnet-nswag run nswag.json /variables:Configuration=Release" exited with code 127.

I can confirm that this folder and file exists on the agent: image

However, when I try to execute these files (.exe or .dll), I'm getting the following errors: image

Am I missing something?