Skip to content

Commit

Permalink
Fix nuget warnings on linux (#14836)
Browse files Browse the repository at this point in the history
Fixes errors like `.../Directory.Build.targets(43,5): error : NUGET_PACKAGES should end with a slash or it will lead to editorconfig issues: .../.nuget/packages [.../src/Razor/src/Microsoft.VisualStudio.DevKit.Razor/Microsoft.VisualStudio.DevKit.Razor.csproj::TargetFramework=net8.0]`
  • Loading branch information
ryzngard authored Jun 12, 2024
1 parent 5031801 commit ef3e671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/common/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ function InitializeBuildTool {
function GetNuGetPackageCachePath {
if [[ -z ${NUGET_PACKAGES:-} ]]; then
if [[ "$use_global_nuget_cache" == true ]]; then
export NUGET_PACKAGES="$HOME/.nuget/packages"
export NUGET_PACKAGES="$HOME/.nuget/packages/"
else
export NUGET_PACKAGES="$repo_root/.packages"
export NUGET_PACKAGES="$repo_root/.packages/"
export RESTORENOHTTPCACHE=true
fi
fi
Expand Down

0 comments on commit ef3e671

Please sign in to comment.