MSBuild Not working in Jenkins But It is working in My Local Command Prompt
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]"
But while using command prompt "dotnet build" command it is working
Please provide me solution to fix this Issue !!!!