I'm encountering an issue with path length limits when running the nuget restore command in my bitbucket pipeline.

0

Here’s the command I'm using: & "C:\Program Files\NuGet\nuget.exe" restore "RetailHub-Service.sln" The error message I receive is: MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin\amd64'. The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

I am using selfhosted window runner which is an ec2 instance with os window server 2019. i have installed the necessary dependencies. Please help . Thanks in advance!

asked a year ago169 views
1 Answer
0

Hi Naruto,

It might be issue with your command.

Your command "C:\Program Files\NuGet\nuget.exe" is having space between the directory name. So it assumes they both are different directories. So initially change into that directory and perform operations you need. Because Commands are case sensitive.

Thanks:)

EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions