I am able to build the application in local, but it fails in pipeline, and below error message i am getting .
C:\Program Files\dotnet\sdk\7.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(267,5):
C:\Agent\1\s\my-Applications\Process\Executor\obj\project.assets.json'
doesn't have a target for 'net6.0-windows'. Ensure that restore has run and that you have included 'net6.0-windows'
when i am running a .net 6 console app its running perfectly.
<TargetFramework>net6.0</TargetFramework>
but windows targetframework doesn't work
<TargetFramework>net6.0-windows</TargetFramework>