Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with TFS server workspace not possible? #46

Closed
Joentje71 opened this issue Jul 27, 2015 · 2 comments
Closed

Integration with TFS server workspace not possible? #46

Joentje71 opened this issue Jul 27, 2015 · 2 comments

Comments

@Joentje71
Copy link

Hello,

We use unicorn in combination with Visual Studio 2013 and TFS 2013.

When I make a change to an existing item in Sitecore, Unicorn tries to change the associated item on disk, but then raises an error: access to the path ... is denied. Also, the item in the serialization project is NOT checked out.

My Workspace is a "server workspace". All items on disk are read-only. Unicorn seems to have no rights to check out an item, make the item on disk writable and write changes to it.

Other developers in my team have a "local workspace". All their items on disk have the read-only flag NOT set. Unicorn is able to check the item out in TFS and make changes to the file on disk.

But I want to keep using a server workspace. Its performance is better when you have lots of items. TFS 2013 introduced the concept of a local workspace. Workspaces in earlier TFS versions were always on the server.

Is Unicorn not capable of working in combination with a TFS server workspace?

Thank you for your advice!

Greetings,
Jeroen

@kamsar
Copy link
Collaborator

kamsar commented Jul 27, 2015

Unicorn has no explicit support for TFS; I've prototyped it with VSO and a local workspace and yes, it seems to work. However if all files are locked and TFS must be contacted to unlock it - it's probably not going to work.

Your only option would be to implement your own version of the serialization provider that called some sort of TFS API to unlock the item before a write. I have no idea if such an API exists, and it may cause problems for the other developers not using a server workspace.

On the whole, using a server workspace with Unicorn is probably not a good idea. Using Git would be an even better idea :)

@kamsar kamsar closed this as completed Jul 27, 2015
@Joentje71
Copy link
Author

Thank you for your reply and tips! For now, we all are going to use a local workspace.

For legacy (BIDS) projects we'll have to configure a second workspace, because older versions of Visual Studio do not support local workspaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants