TFS 2013 Build Controller Not Respecting NuGet Package Restore

后端 未结 2 1224
花落未央
花落未央 2021-01-18 00:59

We are using VSO with an on-prem build controller (TFS 2013). I\'ve enabled NuGet package restore in the Options menu of Visual Studio (migrated away from the old, deprecat

2条回答
  •  再見小時候
    2021-01-18 01:32

    To enable restore NuGet package with TFS build, please follow steps below. Check this blog for the details.

    1. In VS IDE, go to Tools -> Options -> NuGet Package Manager -> enable Allow NuGet to download missing packages.
    2. Delete NuGet.exe and NuGet.targets files from .nuget folder. Be these two files are deleted from version control as well.
    3. Remove the following tags from .proj file:

        1. true
    
        2.  
    
        3.   
            
                This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, 
        see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
            
            
        

    For your another issue about can't find the TfvcTemplate.12.xaml process template, you can first create a new team project in VSO, download the process file and check it in to Version Control. Then edit the build definition, click the New button on the Process tab, browse the process file in the version control.

提交回复
热议问题