From 4abdfd45829f4c348eef94bbad076fd102e50de0 Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Wed, 30 Aug 2023 19:32:27 +0300 Subject: [PATCH] Techutils update - Adding fields for fix command in NuGet (#903) --- utils/coreutils/techutils.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/coreutils/techutils.go b/utils/coreutils/techutils.go index 985c1fad3..5aee3eeb2 100644 --- a/utils/coreutils/techutils.go +++ b/utils/coreutils/techutils.go @@ -112,6 +112,11 @@ var technologiesData = map[Technology]TechData{ Nuget: { indicators: []string{".sln", ".csproj"}, formal: "NuGet", + // .NET CLI is used for NuGet projects + execCommand: "dotnet", + packageInstallationCommand: "add", + // packageName -v packageVersion + packageVersionOperator: " -v ", }, Dotnet: { indicators: []string{".sln", ".csproj"}, @@ -155,7 +160,7 @@ func (tech Technology) IsCiSetup() bool { return technologiesData[tech].ciSetupSupport } -func (tech Technology) GetPackageOperator() string { +func (tech Technology) GetPackageVersionOperator() string { return technologiesData[tech].packageVersionOperator }