-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Verify canary release
- I verified that the issue exists in the latest Turborepo canary release.
Link to code that reproduces this issue
/
Which canary version will you have in your reproduction?
2.5.8
Environment information
Expected behavior
to execute dotnet restore without issues. Dotnet restore works fine without turbo. Dotnet restore is needed for dotnet publish.
Actual behavior
on calling dotnet restore with "turbo run scriptName" (script calls dotnet restore) it gives following error:
C:\Program Files\dotnet\sdk\9.0.306\NuGet.targets(789,5): error : Value cannot be null. (Parameter 'path1')
Turbo is calling the command correctly from the specified folder. However, for nuget package reference or also project relative reference it does not use the folder from where the command was executed. It looks like, that its using the root directory and therefore there are resolution errors ?
to make it more clear here is the monorepo structure:
root
- src
-script in projectToRun
To Reproduce
root
- src
-projectToRun
all turbo commands are in root, calling subcommands in subfolders. Works super fine for build commands. Only problem with dotnet restore.
Root has script: "restoreTest": "turbo run restoreInSubProject"
Command in projectToRun:
restoreInSubProject: dotnet restore
fails with C:\Program Files\dotnet\sdk\9.0.306\NuGet.targets(789,5): error : Value cannot be null. (Parameter 'path1')
it states also the path to the csproj which are failing.
Additional context
No response