-
Notifications
You must be signed in to change notification settings - Fork 263
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
Undefined variable 'dotnet-sdk_9' #1246
Comments
I have this issue as well, any fixes yet? |
The temp solution I found was to downgrade to 7.0. For it to be fixed, the nixpacks needs to be updated to have 9.0 has the base version. Hopefully after downgrading to 7.0, it works for you too. To downgrade your .NET project from version 9.0 to 7.0, follow these steps:
dotnet restore
dotnet clean |
Instead of downgrading and relying on Nixpacks, why not just use docker? |
That is actually what I actually ended up doing, and now it works. |
My current suspicion is that your generated nixpacks.toml file was missing a phases.build setting and needs this to be set to avoid this bug. Can either of you verify this perhaps?
|
Is there an existing issue for this?
Describe the bug
This happens when I use nixpacks buid in a .NET 9 project.
To reproduce
nixpacks build ./
in the right directoryExpected behavior
I expect nixpacks to build the application.
Environment
OS: macOS 15.2 (M3 Pro)
Nixpacks version: 1.30.0 (installed via Homebrew)
The text was updated successfully, but these errors were encountered: