Hi, I'm new using bitbucket pipelines, I setup my self hosted runner in my windows machine (not docker) and in my machine I already have .net installed, but in the pipeline when it execute the "dotnet build" or "dotnet restore" it fails and says the following:
It seems like it's not realizing the machine already has dotnet installed.
I just want to build and publish my .net 6 projects.
Hi Jonabel and welcome to the community!
Windows Runners use PowerShell to run pipeline steps on your Windows machine (host device). As long as a certain tool is installed and you can use it in PowerShell without a Bitbucket runner, it should be possible to use it with the Runners as well.
Have you installed the .NET SDK on this Windows machine?
Is the path of the .NET SDK installation added in the PATH environment variable of Windows?
If you clone your repo on this Windows machine (for testing purposes) and then in a PowerShell window navigate to the clone directory and run dotnet restore, does the command run successfully or do you get the same error?
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.