这是indexloc提供的服务,不要输入任何密码
Skip to content

turbo issues with dotnet restore / dotnet publish #11114

@keita063

Description

@keita063

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.

Image

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions