Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Trouble with nuget

John M Skowron
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 12, 2022

I'm having issues restoring nuget packages in my pipeline. Nuget reports an error restoring every time. It shows errors in the path referencing some components in the packages that i don't even use. Is there a way to ignore the error and continue on to the build?

I've tried several different ways to restore the packages during the build. All my components are .net framework, so i use nuget restore then msbuild.

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
John M Skowron
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 13, 2022

I figured out the problem I was having with nuget restore. If you are using the nuget cli or msbuild, you need to enable long file paths in the registry. 

refer to this issue in the nuget github: Nuget and long file paths  

Yunier Nieves
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 11, 2023

Thank you.

I was facing the same problem. Enabling long paths on my Windows runner allowed me to restore Nuget packages.

TAGS
AUG Leaders

Atlassian Community Events