在 Mac 上使用 TFS 和出色的 Team Explorer Everywhere 命令行工具。我设法做到了以下几点:
--创建了一个配置文件
--创建了一个工作区(TFS 文件夹和我的机器文件夹之间的映射)
--能够“获取”我的团队项目
sudo tf get * MyProjectName
--能够检查我的团队项目
sudo tf checkout MyProjectName -recursive -lock:none
现在,当我尝试使用我的 IDE Xamarin-studio 编辑 .cs 文件时,它不会将它们保存回来。它说发生了错误。
错误信息:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of
an invocation. ---> System.UnauthorizedAccessException: Access to the path
"/Users/ingimarbjarnason/Applicon/Vigor/MiniOrka.iOS/.#ActionSheetPicker.cs" is denied.
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x0032f] in
/private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-
3.2.0/mcs/class/corlib/System.IO/FileStream.cs:320
.....
就像文件被锁定并且 Xamarin-Studio 不会更改它。有没有人一起使用这两个并且知道如何绕过这个?