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

Joseph Gabello 1 Reputation point
2022-10-20T14:18:58.34+00:00

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?

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

2 answers

Sort by: Most helpful
  1. VenkateshDodda-MSFT 19,976 Reputation points Microsoft Employee
    2022-10-21T04:03:31.887+00:00

    @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
    2022-10-21T16:34:19.09+00:00

    Thanks for the input.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.