Hi, I am Trying to build a CI Pipeline
At Build Step This is the error I am getting when I build through Jenkins " C:\ProgramFiles\dotnet\sdk\5.0.405\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1004: Assets file ‘C:\ProgramData\Jenkins.jenkins\workspace\DevOpsAPI\src\TimeTracker.DAL\obj\project.assets.json’ not found. Run a NuGet package restore to generate this file. [C:\ProgramData\Jenkins.jenkins\workspace\DevOpsAPI\src\TimeTracker.DAL\TimeTracker.DAL.csproj] "
When I am using “dotnet restore” in command prompt to fix this “error NETSDK1004” it is working but if same command “dotnet restore or MSBuild /t:restore or /t:Restore” giving in Jenkins its displaying “MSBUILD : error MSB1008: Only one project can be specified.”
But In command prompt “dotnet build” command it is working
Please provide me solution to fix this Issue !!!