You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QWIQ is a **Q**uick **W**ork **I**tem **Q**uery library for Team Foundation Server / Visual Studio Online. If you do a lot of reading or writing of work items, this package is for you!
3
9
4
10
## What can it be used for?
@@ -14,32 +20,42 @@ Qwiq makes testing your apps a breeze. Everything has an interface. Everything u
14
20
How often do you update a work item? How often do you create a new security group? We stripped out the rarely used stuff to make interfaces cleaner and the relationships between types simpler. Missing something you can't live without? Send us a pull request!
15
21
16
22
## How to install it
17
-
QWIQ is composed of the varios packages detailed above. Pick and choose the packages you want to accomplish your scenarios. Just run the commands from the Package Manager console in Visual Studio.
23
+
[Add our MyGet feed to your NuGet clients](https://docs.nuget.org/ndocs/tools/package-manager-ui#package-sources):
Once the feed is configured, instald via the nuget UI (as [Microsoft.Qwiq.Core](https://www.myget.org/feed/qwiq/package/nuget/Microsoft.Qwiq.Core)), or via the nuget package manager console:
18
29
19
30
### Install Core
20
31
```
21
32
PM> Install-Package Microsoft.Qwiq.Core
22
33
```
23
34
24
-
### Using QWIQ for work items
35
+
### Basic Usage
25
36
```csharp
26
37
usingMicrosoft.Qwiq;
27
38
usingMicrosoft.Qwiq.Credentials;
28
-
29
39
...
30
40
41
+
// Create credentials objects based on the current process and OS identity
42
+
// We support
43
+
// - Username and password
44
+
// - PAT
45
+
// - Federated Windows credentials
31
46
varcreds=CredentialsFactory.CreateCredentials();
32
-
33
47
varuri=newUri("[Tfs Tenant Uri]");
34
48
35
49
varstore=WorkItemStoreFactory
36
50
.GetInstance()
37
51
.Create(uri, creds);
52
+
// ^^^ store and re-use this!
38
53
54
+
// Execute WIQL
39
55
varitems=store.Query(@"
40
56
SELECT [System.Id]
41
57
FROM WorkItems
42
-
WHERE WorkItemType = 'Bug' AND State = 'Active'", true);?
58
+
WHERE WorkItemType = 'Bug' AND State = 'Active'");
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
<tags>IE IEPortal MS Internal Only MicrosoftEdge WebPlatform WebPlatformServices</tags>
14
+
<tags>Microsoft Team Foundation Server TFS VSO Visual Studio Online VisualStudio Agile WIT Work Item Tracking Object Model VSTS TeamFoundation TFSOM</tags>
0 commit comments