I am new to Azure DevOps and trying to build a Visual Studio solution with many projects. During the NuGet restore which is running in an azure pipeline, the project.assests.json file is being written to the wrong directory. The solution is set to Release configuration but the json file is being written to the Debug directory. The following is the output of the NuGet restore:
2022-10-18T20:33:28.9371401Z Writing assets file to disk. Path: E:\2020ProdBuild1_work\271\s\squirrel.windows\build\obj\Debug\Squirrel\project.assets.json
The NuGet commands are:
- task: NuGetCommand@2
displayName: "Restore NuGet.config"
inputs:
command: 'restore'
restoreSolution: '$(solution)'
configuration: 'Release'
feedsToUse: 'select'
nugetConfigPath: 'NuGet.config'
How do I change the directory where the json file is being written?