In my netCore application deployed by jenkins I am getting this error when it is running the command dotnet restore *.sln
INFO: Executing command: /bin/sh -c dotnet restore *.sln --configfile /home/jenkins/workspace/Genesis_dev/Backend/afn-genesis-dotnetbase/develop@tmp/artifactory/javatmpdir/artifactory.plugin.nuget.config11370555646779985990.tmpDec 21, 2022 3:42:06 PM org.jfrog.build.extractor.packageManager.PackageManagerLogger errorSEVERE: Determining projects to restore.../usr/share/dotnet/sdk/3.1.415/NuGet.targets(128,5): error : Value cannot be null. (Parameter 'folderName') [/home/jenkins/workspace/Genesis_dev/Backend/afn-genesis-dotnetbase/develop/afn-genesis-dotnetbase.sln]
java.io.IOException: Determining projects to restore.../usr/share/dotnet/sdk/3.1.415/NuGet.targets(128,5): error : Value cannot be null. (Parameter 'folderName') [/home/jenkins/workspace/Genesis_dev/Backend/afn-genesis-dotnetbase/develop/afn-genesis-dotnetbase.sln]
This is my file .sln
Microsoft Visual Studio Solution File, Format Version 12.00# Visual Studio Version 16VisualStudioVersion = 16.6.30114.105MinimumVisualStudioVersion = 10.0.40219.1Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{80098154-89C9-49F0-AF8B-11D9E275332A}"EndProjectProject("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "main", "main", "{414A0165-9926-47BE-BE72-39E163E627FB}"EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Functions", "src\main\Functions\Functions.csproj", "{D8438BFF-E079-4F92-9580-9186C12C4CCA}"EndProjectProject("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{31C5499E-2FCC-409B-90AF-847BB0C92B47}"EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Functions.Test", "src\test\Functions.Test\Functions.Test.csproj", "{20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}"EndProjectGlobal GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|oc = Debug|oc Debug|x64 = Debug|x64 Debug|x86 = Debug|x86 Release|oc = Release|oc Release|x64 = Release|x64 Release|x86 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Debug|oc.ActiveCfg = Debug|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Debug|oc.Build.0 = Debug|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Debug|x64.ActiveCfg = Debug|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Debug|x64.Build.0 = Debug|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Debug|x86.ActiveCfg = Debug|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Debug|x86.Build.0 = Debug|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Release|oc.ActiveCfg = Release|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Release|oc.Build.0 = Release|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Release|x64.ActiveCfg = Release|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Release|x64.Build.0 = Release|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Release|x86.ActiveCfg = Release|oc {D8438BFF-E079-4F92-9580-9186C12C4CCA}.Release|x86.Build.0 = Release|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Debug|oc.ActiveCfg = Debug|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Debug|oc.Build.0 = Debug|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Debug|x64.ActiveCfg = Debug|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Debug|x64.Build.0 = Debug|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Debug|x86.ActiveCfg = Debug|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Debug|x86.Build.0 = Debug|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Release|oc.ActiveCfg = Release|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Release|oc.Build.0 = Release|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Release|x64.ActiveCfg = Release|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Release|x64.Build.0 = Release|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Release|x86.ActiveCfg = Release|oc {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29}.Release|x86.Build.0 = Release|oc EndGlobalSection GlobalSection(NestedProjects) = preSolution {414A0165-9926-47BE-BE72-39E163E627FB} = {80098154-89C9-49F0-AF8B-11D9E275332A} {D8438BFF-E079-4F92-9580-9186C12C4CCA} = {414A0165-9926-47BE-BE72-39E163E627FB} {31C5499E-2FCC-409B-90AF-847BB0C92B47} = {80098154-89C9-49F0-AF8B-11D9E275332A} {20BB4BDB-C0E8-404C-BB83-44A03B0AEA29} = {31C5499E-2FCC-409B-90AF-847BB0C92B47} EndGlobalSectionEndGlobal
And this is my file csproj
<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"><TargetFramework>netcoreapp3.1</TargetFramework><AzureFunctionsVersion>v3</AzureFunctionsVersion><RootNamespace>com.tdp.afn</RootNamespace><PackageId>dotnetbase</PackageId><Version>0.1.1</Version><FunctionAppName>FN-genesis-dotnetbase</FunctionAppName></PropertyGroup><ItemGroup><PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.7" /></ItemGroup><ItemGroup><None Update="host.json"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></None><None Update="local.settings.json"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory><CopyToPublishDirectory>Never</CopyToPublishDirectory></None></ItemGroup></Project>
How to solve this issue?