Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't restore and build on Linux #4615

Closed
fogbank opened this issue Nov 27, 2023 · 2 comments · Fixed by #3777
Closed

Can't restore and build on Linux #4615

fogbank opened this issue Nov 27, 2023 · 2 comments · Fixed by #3777

Comments

@fogbank
Copy link

fogbank commented Nov 27, 2023

When I run build.sh on Linux (Ubuntu 23.10, .NET 8.0.100), the project fails to restore and build.

This is actually two issues:

  1. Nuke fails to restore due to being unable to find msbuild in the path or relevant environment variables. On Linux, msbuild is supposed to be invoked by dotnet build. Adding a shell script named /usr/local/bin/msbuild that simply invokes dotnet build solved this issue for me. This is probably an issue with Nuke, I guess.
  2. After getting past that, NSwag still fails to restore due to NSwagStudio being part of the solution. NSwagStudio requires the WindowsDesktop SDK, which isn't available on Linux. It would be nice to split the solution into two separate solutions, one for NSwag proper and another one for NSwagStudio.

By removing every reference to NSwagStudio, NSwagStudio.Installer, and NSwagStudio.Chocolatey I was able to build, although more work remains to be done in order to build with Nuke.

@ZzeMR
Copy link

ZzeMR commented Jan 29, 2024

Same here !
I wanted to use this project but apparently it only works for windows.
Sigh !

@lahma
Copy link
Collaborator

lahma commented Jan 29, 2024

#3777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants