Il FileSystemWatcher ha un comportamento che, all'apparenza, può far pensare ad un bug: alcuni eventi, come OnChanged e OnCreated, vengono generati più volte. In realtà, questo comportamento è normale. Come viene indicato da MSDN:
Common file system operations might raise more than one event. For example, when a file is moved from one directory to another, several OnChanged and some OnCreated and OnDeleted events might be raised. Moving a file is a complex operation that consists of multiple simple operations, therefore raising multiple events. Likewise, some applications (for example, antivirus software) might cause additional file system events that are detected by FileSystemWatcher.
In questo post, inoltre, viene spiegato perché l'evento OnChanged viene generato due volte quando si salva un file utilizzando Notepad.
Per aggiungere un utente a Team Foundation Server è necessario creare un account, con i privilegi corretti, oltre che nello Team Foundation Server, anche in SharePoint e SQL Reporting Services.
Questo articolo di MSDN spiega come aggiungere un nuovo utente a Team Foundation Server. Così facendo, però, l'utente sarà solo in grado di connettersi al server, ma non potrà né accedere a progetti esistenti né crearne di nuovi. Per terminare correttamente la configurazione è possibile ricorrere al programma TFS Admin Tool:
The TFS Admin Tool allows a TFS administrator to quickly add users to all three platforms utilized by Team Foundation Server: Team Foundation Server, Sharepoint, and SQL Reporting Services, all through one common interface. The tool also allows administrators to change the current permissions on any of the three tiers, identify any errors, and view all of the users and their permission sets across Team Foundation Server, Sharepoint, and SQL Reporting Services.
Il programma è scritto in C# ed è pubblicato su CodePlex. L'ultima release disponibile, la 1.2, ha ancora qualche problema (ogni tanto genera un'eccezione non prevista), ma comunque riesce a configurare correttamente tutti gli account necessari per utilizzare le varie funzionalità di Team Foundation Server.