我使用SVN:外部组件从CodePlex上抢Microsoft.Practices.ServiceLocation。但是,在我自己的项目中引用csproj-file会导致从2005年到2008年的升级。这使得我的项目文件副本与基本副本不同,并且我无法从subversion更新项目。
的... \ DEPS \ Microsoft.Practices.ServiceLocation结果更新:
Command Update
Tree conflict ...\deps\Microsoft.Practices.ServiceLocation\ServiceLocatorProvider.cs
Tree conflict ...\deps\Microsoft.Practices.ServiceLocation\ServiceLocatorImplBase.cs
Tree conflict ...\deps\Microsoft.Practices.ServiceLocation\ServiceLocator.cs
Tree conflict ...\deps\Microsoft.Practices.ServiceLocation\Readme.txt
Tree conflict ...\deps\Microsoft.Practices.ServiceLocation\Properties
Tree conflict ...\deps\Microsoft.Practices.ServiceLocation\Microsoft.Practices.ServiceLocation.csproj
Tree conflict ...\deps\Microsoft.Practices.ServiceLocation\IServiceLocator.cs
Tree conflict ...\deps\Microsoft.Practices.ServiceLocation\ActivationException.Desktop.cs
Tree conflict ...\deps\Microsoft.Practices.ServiceLocation\ActivationException.cs
Completed At revision: 43682
warning! One or more files are in a conflicted state.
的......更新\ DEPS结果:
Command Update
Completed At revision: 0
的更新根结果:
Command Update
External ...\deps\Microsoft.Practices.ServiceLocation
External failed ...\deps\Microsoft.Practices.ServiceLocation
Error Working copy '...\deps\Microsoft.Practices.ServiceLocation' locked
Error Please execute the 'Cleanup' command.
Completed ...\deps\Microsoft.Practices.ServiceLocation - at revision: 0
餐间声称工作拷贝已经被锁定,似乎是错误的,执行发行锁定Microsoft.Practices.ServiceLocation文件夹会生成一条消息,指出“没有什么可解锁的。没有文件在这个工作拷贝的锁。”同样的结果,如果我在根用户身份执行命令。
执行清理什么也没有改变。
我使用TortoiseSVN。
- 我可以告诉Visual Studio 2008只能将项目/目录视为只读以避免升级?
- 是否有一个秘密的Subversion命令可以执行此操作?
- 为什么更改了havnt的文件更新会导致树冲突?
编辑︰ 我GOOGLE了一些,并发现Subversion文件解释树冲突在http://svnbook.red-bean.com/nightly/en/svn.tour.treeconflicts.html。我改变了我的第三个问题,因为我不明白为什么我在更新已更改的文件时遇到树冲突。
如果我要安装Visual Studio 2005(非快车),将其整合到同一个环境,让我打开项目,而不升级? (就像有两个“项目引擎”活跃在相同的devenv.exe进程?) – sisve 2009-09-20 15:30:04
我不知道SNV整合,但每个并排VS的端版本都有自己单独的配置(如使用Team Foundation客户端,有是每个VS版本的独立客户端安装)。 – Richard 2009-09-20 16:41:24