嗨
我们正在开发框架上的mvc应用程序是4.6和TFS 2008 for code repository。由于我们有自定义nuget服务器托管的nuget包引用,我想从我们的nuget服务器恢复所需的包。
We are developing an mvc application on framework is 4.6 and TFS 2008 for code repository. Since we have nuget package references which is hosted in our custom nuget server, i want to restore the required packages from our nuget server.
由于我们正在使用TFS 2008,我们是否可以使用Nuget安装程序构建步骤中的任务?
Since we are uing TFS 2008, can we use Nuget installer task in the build step?
问候
推荐答案
您好,
您需要通过以下文章使用TFBuild设置包恢复下面:
You need to set up package restore with TFBuild by following article below:
https:// docs .microsoft / zh-cn / nuget / consume-packages / team-foundation-build
存储库的结构如下所示:
The structure of the repository looks as follows:
<项目> │ .gitignore │ .tfignore │ build.proj │ ├───src │ │ BingSearcher.sln │ │ │ └───BingSearcher │ │ App.config │ │ BingSearcher.csproj │ │ packages.config │ │ Program.cs │ │ │ └───性能 │ AssemblyInfo.cs │ └───工具 └───NuGet nuget.exe
<Project> │ .gitignore │ .tfignore │ build.proj │ ├───src │ │ BingSearcher.sln │ │ │ └───BingSearcher │ │ App.config │ │ BingSearcher.csproj │ │ packages.config │ │ Program.cs │ │ │ └───Properties │ AssemblyInfo.cs │ └───tools └───NuGet nuget.exe
在准备好必要的文件和工具之后,将Team Build配置为使用build.proj,然后它将在构建期间恢复包
After preparing the necessary files and tool, configure Team Build to use build.proj, then it will restore the package during the build
最好的问候,
更多推荐
在TFS Build中添加Nuget任务
发布评论