Oskar Dudycz

Pragmatycznie o programowaniu

Jak odblokować workspace w TFS

2011-10-01 oskar dudycz.NET

cover

Dzisiaj kolejny przykład z życia wzięty, krótszy ale miejmy nadzieję, przydatny.

Zmieniłem na swoim komputerze nazwę grupy roboczej, do której należę. Po uruchomieniu Visual Studio i próbie checkoutu pliku okazało się, że pojawił mi się komunikat o błędzie:

A local workspace is required.  
Workspace NazwaGrupyRoboczej;Nazwa użytkownika 
does not reside on this computer.

Komunikat ni mniej ni więcej mówi, że VS nie mogło odnaleźć wcześniejszego workspace’a. Powodem jest to z tego, że TFS cache’uje workspace’y. Jak zatem wymusić na żeby odświeżył je i zobaczył naszą zmianę?

Należy uruchomić Visual Studio Command Prompt (Start => Programy => Microsoft Visual Studio 2010 => Visual Studio Tools => Visual Studio Command Prompt (2010)) i wpisać w nim:

tf workspaces /s:URLDoTwojegoSerweraTFS
👋 If you found this article helpful and want to get notification about the next one, subscribe to Architecture Weekly.

✉️ Join over 5000 subscribers, get the best resources to boost your skills, and stay updated with Software Architecture trends!

Loading...
Event-Driven by Oskar Dudycz
Oskar Dudycz For over 15 years, I have been creating IT systems close to the business. I started my career when StackOverflow didn't exist yet. I am a programmer, technical leader, architect. I like to create well-thought-out systems, tools and frameworks that are used in production and make people's lives easier. I believe Event Sourcing, CQRS, and in general, Event-Driven Architectures are a good foundation by which this can be achieved.