将.Net应用程序从VSS转换为TFS VSSConverter.exe错误 [英] Converting a .Net application from VSS to TFS VSSConverter.exe error

查看:117
本文介绍了将.Net应用程序从VSS转换为TFS VSSConverter.exe错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的任务是使用VSSConverter.exe将.Net应用程序从VSS转换为TFS(目前仍为Visual Studio 2008).我已按照http://msdn.microsoft.com/zh-cn/library/ms181247(v=vs.90).aspx上的说明(和子说明)进行操作.我使用的是VSSConverter.exe的VS10版本,并且能够成功执行初始分析,但是当我进行实际转换时,出现了错误:

VSSConverter的此预发行版本不支持迁移到Team Foundation Server 2005或2008.

经过大量研究后无济于事,我加载了VS Team System 2008及其各自的SP1,以获取9.0 VSSConverter.

当转换器位于其原始位置(C:\ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE)时,我得到:

无法将"VSSConverter"识别为内部或外部命令,
可操作的程序或批处理文件.

将VSSConverter与settings.xml文件放在同一文件夹中时,错误是(遵循在线建议),似乎至少可以识别该转换器:

''Microsoft.TeamFoundation.Converters.VersionControl.Com
的类型初始值设定项 mon.HatterasWrapper''引发异常.

对于任何一个命令都是这样:

C:\ VSS2TeamFoundation> VSSConverter分析settings.xml
或者...
C:\ VSS2TeamFoundation> VSSConverter迁移migration_settings.xml


在VSSConverter.log文件中,我找到:

[Common,Warning,3,2012/09/20 14:44:17.401]版本:9.0.21022.8
[VSS,错误,3,2012/09/20 14:44:17.463]异常:System.TypeInitializationException
消息:"Microsoft.TeamFoundation.Converters.VersionControl.Common.HatterasWrapper"的类型初始值设定项引发了异常.
堆栈跟踪:位于Microsoft.TeamFoundation.Converters.VersionControl.Common.HatterasWrapper..ctor()
在Microsoft.TeamFoundation.Converters.VersionControl.Common.Converter..ctor()
在Microsoft.TeamFoundation.Converters.VersionControl.Vss.VssConverter.MainThread()
帮助链接:
BaseExceptionMessage:无法加载文件或程序集``Microsoft.TeamFoundation.Common,Version = 9.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a''或其依赖项之一.系统找不到指定的文件.
InnerException:System.IO.FileNotFoundException
InnerException消息:无法加载文件或程序集"Microsoft.TeamFoundation.Common,版本= 9.0.0.0,文化=中性,PublicKeyToken = b03f5f7f11d50a3a"或其依赖项之一.系统找不到指定的文件.
InnerException堆栈跟踪:在Microsoft.TeamFoundation.Converters.VersionControl.Common.ConflictCache..ctor()
在Microsoft.TeamFoundation.Converters.VersionControl.Common.HatterasWrapper..cctor()
InnerException帮助链接:
InnerExceptionBaseExceptionMessage:无法加载文件或程序集``Microsoft.TeamFoundation.Common,Version = 9.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a''或其依赖项之一.系统找不到指定的文件.
我搜索了您的网站和许多其他网站,并尝试了多项尝试,但均未成功.

I am tasked with converting a .Net application from VSS to TFS (staying with Visual Studio 2008 for now) using VSSConverter.exe. I have followed the instructions (and sub-instructions) at http://msdn.microsoft.com/en-us/library/ms181247(v=vs.90).aspx. I was using the VS10 version of VSSConverter.exe, and was able to perform the initial analysis successfully, but when I got to the actual conversion I got the error:

This pre-release of VSSConverter does not support migrating to Team Foundation Server 2005 or 2008.

After much research to no avail, I loaded in VS Team System 2008 and its respective SP1 to get the 9.0 VSSConverter.

When the converter is in its original location (C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE), I get:

''VSSConverter'' is not recognized as an internal or external command,
operable program or batch file.

When VSSConverter is placed in the same folder as the settings.xml file, the error is (having followed an online suggestion), It seems to at least recognize the converter:

The type initializer for ''Microsoft.TeamFoundation.Converters.VersionControl.Com
mon.HatterasWrapper'' threw an exception.

This is true for either command:

C:\VSS2TeamFoundation>VSSConverter Analyze settings.xml
Or…
C:\VSS2TeamFoundation>VSSConverter Migrate migration_settings.xml


In the VSSConverter.log file, I find:

[Common, Warning, 3, 2012/09/20 14:44:17.401] Version : 9.0.21022.8
[VSS, Error, 3, 2012/09/20 14:44:17.463] Exception: System.TypeInitializationException
Message: The type initializer for ''Microsoft.TeamFoundation.Converters.VersionControl.Common.HatterasWrapper'' threw an exception.
Stack Trace: at Microsoft.TeamFoundation.Converters.VersionControl.Common.HatterasWrapper..ctor()
at Microsoft.TeamFoundation.Converters.VersionControl.Common.Converter..ctor()
at Microsoft.TeamFoundation.Converters.VersionControl.Vss.VssConverter.MainThread()
Help Link:
BaseExceptionMessage: Could not load file or assembly ''Microsoft.TeamFoundation.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'' or one of its dependencies. The system cannot find the file specified.
InnerException: System.IO.FileNotFoundException
InnerException Message: Could not load file or assembly ''Microsoft.TeamFoundation.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'' or one of its dependencies. The system cannot find the file specified.
InnerException Stack Trace: at Microsoft.TeamFoundation.Converters.VersionControl.Common.ConflictCache..ctor()
at Microsoft.TeamFoundation.Converters.VersionControl.Common.HatterasWrapper..cctor()
InnerException Help Link:
InnerExceptionBaseExceptionMessage: Could not load file or assembly ''Microsoft.TeamFoundation.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'' or one of its dependencies. The system cannot find the file specified.
I’ve searched your website and many others and tried multiple things without success. Would greatly appreciate answers on how to fix this.

推荐答案

我的建议不是使用转换器,而是创建解决方案的静态开始"版本然后只需将该解决方案作为新解决方案签入TFS.保留旧解决方案的备份作为备份,以防万一您的新TFS解决方案无法维护VSS项目的历史记录.这样更清洁,您将有机会在签入之前法医检查解决方案,并清理随着时间的推移不可避免地进入项目的旧残留物.
My suggestion would be not to use the converter, but rather to create a static "starting" version of your solution and then simply check that solution into TFS as a new solution. Keep a backup of the old solution in VSS as a backup just in case as your new TFS solution wouldn''t maintain the history of the VSS project. Much cleaner this way and you''ll have a chance to forensically go through the solution before checkin and clean up old residual crap that inevitably finds its way into projects over time.


这篇关于将.Net应用程序从VSS转换为TFS VSSConverter.exe错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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