qwiq - Microsoft.Qwiq.Core 10.1.0-exposesharedque-0022

Provides Quick Work Item Queries to Team Foundation Server and Visual Studio Online

PM> Install-Package Microsoft.Qwiq.Core -Version 10.1.0-exposesharedque-0022 -Source https://www.myget.org/F/qwiq/api/v3/index.json

Copy to clipboard

> nuget.exe install Microsoft.Qwiq.Core -Version 10.1.0-exposesharedque-0022 -Source https://www.myget.org/F/qwiq/api/v3/index.json

Copy to clipboard

> dotnet add package Microsoft.Qwiq.Core --version 10.1.0-exposesharedque-0022 --source https://www.myget.org/F/qwiq/api/v3/index.json

Copy to clipboard
<PackageReference Include="Microsoft.Qwiq.Core" Version="10.1.0-exposesharedque-0022" />
Copy to clipboard
source https://www.myget.org/F/qwiq/api/v3/index.json

nuget Microsoft.Qwiq.Core  ~> 10.1.0-exposesharedque-0022
Copy to clipboard

> choco install Microsoft.Qwiq.Core --version 10.1.0-exposesharedque-0022 --source https://www.myget.org/F/qwiq/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "qwiq" -SourceLocation "https://www.myget.org/F/qwiq/api/v2"
Install-Module -Name "Microsoft.Qwiq.Core" -RequiredVersion "10.1.0-exposesharedque-0022" -Repository "qwiq" -AllowPreRelease
Copy to clipboard

Browse the sources in this package using Visual Studio or WinDbg by configuring the following legacy symbol server URL: https://www.myget.org/F/qwiq/symbols/


QWIQ

License: MIT AppVeyor qwiq MyGet Build Status

MyGet MyGet

QWIQ is a Quick Work Item Query 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!

What can it be used for?

Querying Team Foundation Server, of course! Instead of directly using the TFS Client OM, you could use QWIQ! It it made of packages designed to make working with Tfs/Vso a pleasure. Qwiq.Core is the no-frills base package, exposinng the raw types needed to read and write work items. Qwiq.Identity adds methods to simplify converting between your preferred method of identity (display names, user names) and TFS's identity classes. Qwiq.Linq provides a Linq query provider to be able to write Linq to query tfs. Qwiq.Mapper enables converting from IWorkItem, the raw Qwiq.Core type, to your own classes to enable strongly typed access to your WorkItems. Qwiq.Relatives extends Qwiq.Linq to enable slightly more complicated queries allowing for basic queries of related workitems. Qwiq.Mocks provides default implementations for commonly mocked classes within Qwiq, and should allow for getting up and unit testing quickly. Why use this over the Client OM? Glad you asked!

1. Easier to consume

Let's be honest, the TFS libraries are a pain to use. There are a lot of them, several are dynamically loaded, and a few are native. While we can't avoid it, you can! Just install the Qwiq.Core package and everything will be in your \bin folder when you need it.

2. Easier to test

Qwiq makes testing your apps a breeze. Everything has an interface. Everything uses factories (or factory methods) instead of constructors. Just mock what you need for your tests and go. No more messy, temperamental fakes, or adapters cluttering your code.

3. Easier to understand

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!

How to install it

Add our MyGet feed to your NuGet clients:

  • v3 (VS 2015+ / NuGet 3.x): https://www.myget.org/F/qwiq/api/v3/index.json
  • v2 (VS 2013 / NuGet 2.x): https://www.myget.org/F/qwiq/api/v2

Once the feed is configured, install via the nuget UI or via the nuget package manager console

Install Core

From the NuGet package manager console

PM> Install-Package Microsoft.Qwiq.Core

Or via the UI Microsoft.Qwiq.Core,

Install Client

We now have two clients: one for SOAP, and one for REST

From the NuGet package manager console

PM> Install-Package Microsoft.Qwiq.Client.Soap

Or via the UI Microsoft.Qwiq.Client.Soap,

Basic Usage

using Microsoft.Qwiq;
using Microsoft.Qwiq.Credentials;

using Microsoft.VisualStudio.Services.Client;
...

// We support
//  - OAuth2
//  - Personal Access Token (PAT)
//  - Username and password (BASIC)
//  - Windows credentials (NTLM or Federated with Azure Active Directory)
//  - Anonymous

// Use the full URI, including the collection. Example: https://QWIQ.VisualStudio.com/DefaultCollection
var uri = new Uri("[Tfs Tenant Uri]");
var options = new AuthenticationOptions(uri, AuthenticationType.Windows);
var store = WorkItemStoreFactory
                .Default
                .Create(options);

// Execute WIQL
var items = store.Query(@"
    SELECT [System.Id] 
    FROM WorkItems 
    WHERE [System.WorkItemType] = 'Bug' AND State = 'Active'");
[Reflection.Assembly]::LoadFrom("E:\Path\To\Microsoft.Qwiq.Core.dll")
# Can use SOAP or REST clients here
[Reflection.Assembly]::LoadFrom("E:\Path\To\Microsoft.Qwiq.Client.Soap.dll")

$uri = [Uri]"[Tfs Tenant Uri]"
$options = New-Object Microsoft.Qwiq.Credentials.AuthenticationOptions $uri,Windows
$store = [Microsoft.Qwiq.Client.Soap.WorkItemStoreFactory]::Default.Create($options)

$items = $store.Query(@"
    SELECT [System.Id] 
    FROM WorkItems 
    WHERE [System.WorkItemType] = 'Bug' AND State = 'Active'", $false)

Contributing

Getting started with Git and GitHub

Once you're familiar with Git and GitHub, clone the repository and start contributing!

  • Any 0.0
    • Castle.Core (>= 4.0.0)
    • Microsoft.AspNet.WebApi.Client (>= 5.2.3)
    • Microsoft.IdentityModel.Clients.ActiveDirectory (>= 3.13.9)
    • Microsoft.VisualStudio.Services.InteractiveClient (>= 15.112.1)
    • Newtonsoft.Json (>= 10.0.2)
    • System.IdentityModel.Tokens.Jwt (>= 4.0.4.403061554)
  • .NETFramework 4.6: 4.6.0.0

                        
Assembly Assembly hash Match
/lib/net46/microsoft.qwiq.core.dll 9c90af9cb53746af8c97b23b9cc540e51

Owners

Richard Murillo qwiq

Authors

Microsoft

Project URL

https://github.com/MicrosoftEdge/Microsoft.Qwiq

License

MIT

Tags

Microsoft Team Foundation Server TFS VSO Visual Studio Online VisualStudio Agile WIT Work Item Tracking Object Model VSTS TeamFoundation TFSOM

Info

57 total downloads
2 downloads for version 10.1.0-exposesharedque-0022
Download (57.08 KB)
Download legacy symbols (243.22 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
10.1.0-exposesharedque-0022 57.08 KB Wed, 10 Oct 2018 18:25:25 GMT 2
10.0.0 2.01 KB Mon, 12 Feb 2018 23:09:00 GMT 2
9.1.0-beta0015 54.83 KB Mon, 12 Feb 2018 17:31:06 GMT 10
9.1.0-beta0013 54.99 KB Thu, 08 Feb 2018 20:55:44 GMT 1
9.1.0-beta0011 54.99 KB Mon, 22 Jan 2018 22:31:44 GMT 1
9.0.0 54.81 KB Sat, 20 Jan 2018 00:06:57 GMT 11
8.1.2 56.26 KB Fri, 04 Aug 2017 20:24:58 GMT 7
8.1.1 56.26 KB Fri, 04 Aug 2017 20:19:43 GMT 2
8.1.0 56.25 KB Thu, 03 Aug 2017 01:11:00 GMT 2
8.0.2 56.13 KB Fri, 04 Aug 2017 20:30:13 GMT 2
8.0.1 56.12 KB Wed, 26 Jul 2017 18:38:55 GMT 2
8.0.0 56.12 KB Thu, 03 Aug 2017 00:44:48 GMT 3
7.2.0 24.97 KB Tue, 27 Jun 2017 19:16:50 GMT 2
7.1.0 24.96 KB Tue, 27 Jun 2017 19:24:43 GMT 2
7.0.1 24.97 KB Tue, 18 Jul 2017 01:16:39 GMT 2
7.0.0 24.61 KB Tue, 27 Jun 2017 19:23:39 GMT 2
6.1.1 24.52 KB Tue, 18 Jul 2017 01:15:44 GMT 2
6.1.0 55.08 KB Tue, 27 Jun 2017 19:25:06 GMT 2