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

TFVC ChangeSet Exception: Could not generate typed context for given inputs #6

Open
kachalkov opened this issue Nov 29, 2016 · 0 comments

Comments

@kachalkov
Copy link

kachalkov commented Nov 29, 2016

hhttps://www.visualstudio.com/en-ca/docs/integrate/api/tfvc/changesets

Getting many errors when trying to add changeset url from local TFS instance

lic class TypedDataContext : JsonDataContextBase {

	public IEnumerable<LINQPad.User.TestInput.Test> Test { get { return GetTextJsonInput<LINQPad.User.TestInput.Test>("7a3a553d-d404-4d95-8e50-2401723a3dac"); }}

	public IEnumerable<.> s { get { return GetUrlParameterlessInput<.>(@"http://server:8080/tfs/defaultcollection/App Modernization/_apis/tfvc/changesets", new List<Tuple<string,string>> { Tuple.Create("Accept","application/json; text/json") }); } }

}

Here is json, which works if used at text type:

{"count":1,"value":[{"changesetId":358,"url":"http://server:8080/tfs/DefaultCollection/App%20Modernization/_apis/tfvc/changesets/358","author":{"id":"f0b23e2a-04d4-4a20-86f6-32970a135280","displayName":"Alexander Kachalkov","uniqueName":"domain\user","url":"http://server:8080/tfs/defaultcollection/_apis/Identities/f0b23e2a-04d4-4a20-86f6-32970a135280","imageUrl":"http://xsupapp15zpts12:8080/tfs/DefaultCollection/_api/_common/identityImage?id=f0b23e2a-04d4-4a20-86f6-32970a135280"},"checkedInBy":{"id":"f0b23e2a-04d4-4a20-86f6-32970a135280","displayName":"Alexander Kachalkov","uniqueName":"domain\user","url":"http://server:8080/tfs/defaultcollection/_apis/Identities/f0b23e2a-04d4-4a20-86f6-32970a135280","imageUrl":"http://server:8080/tfs/DefaultCollection/_api/_common/identityImage?id=f0b23e2a-04d4-4a20-86f6-32970a135280"},"createdDate":"2016-09-06T07:02:38.34Z","comment":"Created team project folder $/App Modernization via the Team Project Creation Wi","commentTruncated":true}]}

P.S. I think it would be easier to edit connection file directly rather than through GUI :)

@kachalkov kachalkov changed the title TFVC ChangeSet shows null reference exception TFVC ChangeSet Exception: Could not generate typed context for given inputs Nov 29, 2016
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

1 participant