NuGet软件包更新& Package.config删除问题(TF400024) [英] NuGet Package updates & Package.config remove issue (TF400024)

查看:277
本文介绍了NuGet软件包更新& Package.config删除问题(TF400024)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我们在NuGet软件包更新和TFS源代码控制集成方面遇到问题.这给我们的团队带来了麻烦,并且让我们犹豫不决,无法完全采用NuGet软件包.

We are having issues with NuGet package updates and TFS source control integration lately. This is causing allot of hassles with our team and making us hesitate in adopting NuGet packages fully.

问题/错误:我没有从代码系统中删除某些项目"package.config"文件,而是将它们从文件系统中删除(并在TFS源代码管理中标记为已删除).

The issue/bug: instead of updating certain projects "package.config" files, they are being removed from the file system (and marked as deleted within TFS source control) I can't work out why.

我们看到的行为如下:

  1. 在VS.NET 2012中打开解决方案(大约18个项目)
  2. 通过程序包管理"对话框将解决方案级别的程序包更新启动到最新版本,如
  1. Open in solution (approx. 18 projects) in VS.NET 2012
  2. Initiate a solution level package update to the latest version via the Package Management Dialog, as described here.
    • The package.config exists and part of the project(s) within said selected solution.
    • Theses packages.configs are NOT checked out of TFS yet.

我注意到了这一点,并撤消了结帐&出现此错误:

I notice this and Undo Check-Out & get this error:

TF400024: The change on xxx\packages.config cannot be undone because a file already exists at xxx\packages.config. The file must be deleted from disk for the undo to succeed.

  • 有趣的是,对于TFS,文件是否标记为已删除,但仍驻留在我的文件系统上?
  • 下面列出的程序包管理器提供的输出并不表示已删除package.config的项目的任何问题.

    The output provided by Package Manager listed below does not indicate any issues for the project in which the package.config was removed.

    Updating 'NugetPackageAssemblyA' from version '1.5.18.0' to '1.5.23.0' in project 'CommonUnitTests'.
     Removed reference 'AssemblyAA.dll' from project 'CommonUnitTests'
     Removed reference 'AssemblyBB.dll' from project 'CommonUnitTests'
     Removed reference 'AssemblyCC.dll' from project 'CommonUnitTests'
     Removed reference 'NugetPackageAssemblyA.dll' from project 'CommonUnitTests'
     Added file 'packages.config'.
     Removed file 'packages.config'
     Successfully removed 'NugetPackageAssemblyA 1.5.18.0' from CommonUnitTests.
     Added reference 'AssemblyAA' to project 'CommonUnitTests'
     Added reference 'AssemblyBB' to project 'CommonUnitTests'
     Added reference 'AssemblyCC' to project 'CommonUnitTests'
     Added reference 'NugetPackageAssemblyA' to project 'CommonUnitTests'
     'packages.config' already exists. Skipping...
     Successfully added 'NugetPackageAssemblyA 1.5.23.0' to CommonUnitTests.
    

    DEV.环境统计信息:

    • Nuget软件包管理器:版本2.2.40116.9051
    • Visual Studio 2012:版本11.051106.01更新1

    有什么我想念的吗?

    推荐答案

    简单地将代码签入Visual Studio Online就可以解决问题.

    A simple check-in of the code to Visual Studio Online did the trick for me.

    这篇关于NuGet软件包更新& Package.config删除问题(TF400024)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆