Project.Assests.json file is being written to the Debug Directory

Joseph Gabello 1 Reputation point

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\\build\obj\Debug\Squirrel\project.assets.json

The NuGet commands are:

- task: NuGetCommand@2  
  displayName: "Restore NuGet.config"  
    command: 'restore'  
    restoreSolution: '$(solution)'  
    configuration: 'Release'  
    feedsToUse: 'select'  
    nugetConfigPath: 'NuGet.config'  

How do I change the directory where the json file is being written?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
32,710 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. VenkateshDodda-MSFT 14,211 Reputation points Microsoft Employee

    @Joseph Gabello Thank you for reaching to Microsoft Q&A. Currently Azure deVops is not supported in Q&A forum. I would suggest raise/reporting your problem over the deVops developer community here.


    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

  2. Joseph Gabello 1 Reputation point

    Thanks for the input.

    0 comments No comments