Hi Steven,

Thanks a lot. That solved my problem.


--
Manoj

On Wed, May 19, 2010 at 12:20 PM, Stephen Godbold <
[email protected]> wrote:

> Hi Manoj,
>
>
>
> You can get the team project from a local path by using the
> GetTeamProjectForLocalPath method on the Workspace class, passing it one of
> the local paths you have. This is available in the
> Microsoft.TeamFoundation.VersionControl.Client namespace (from the assembly
> of the same name). If you’d like the doco for the API you can grab it from
> http://code.msdn.microsoft.com/TfsSdk  under the documentation section.
>
>
>
> Hope this helps!
>
>
>
> Cheers,
>
> Steve.
>
>
>
> *Stephen Godbold*
>
> Microsoft MVP - VS ALM | Readify | Senior Consultant |M: +61 409 390 683
>
> P Please consider the environment before printing this e-mail
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Manoj Kr. Garg
> *Sent:* Wednesday, 19 May 2010 4:32 PM
> *To:* ozTFS
> *Subject:* Re: How to get TFS Project info from Visual studio solution
> file
>
>
>
> Hi Steven,
>
>
>
> Thanks for your reply.
>
>
>
> But how do I access workspace information in the Add-in? and, how can I get
> TFS project information using workspace using TFS SDK ?
>
> I am sorry to ask these question, this might be quite straight forward but
> I am quite new to the VS Addin development and TFS Source control
> management.
>
>
>
> Thanks,
>
> Manoj
>
>
>
> On Wed, May 19, 2010 at 11:48 AM, Steven Nagy <[email protected]>
> wrote:
>
> I have no direct answer to your question, however I can suggest that rather
> than getting the project information from the solution, you could instead
> get it from the workspace where you pulled the solution file from?
>
>
>
>
>
> *Steven Nagy
> *Readify | Senior Developer
>
> M: +61 404 044 513 | E: [email protected] | B: azure.snagy.name
>
>
> ------------------------------
>
> *From:* [email protected] [[email protected]] On Behalf Of
> Manoj Kr. Garg [[email protected]]
> *Sent:* 19 May 2010 16:12
> *To:* [email protected]
> *Subject:* How to get TFS Project info from Visual studio solution file
>
> Hi,
>
> I am working on a Visual Studio 2008 Add-in. Using this addin i want to
> show some information like workitems, queries etc from TFS server project
> under which the current open solution file is checked in.
>
> For example: I have TFS team project named "DemoTFSProject" in my TFS
> server. Under this project's source control repository, i have a solution
> file named "MySolution.sln" checked in. Now when I open this solution file
> in Visual studio, I want my add-in to find the address of the TFS Server and
> name of Project under which current solution is checked in. So that using
> TFS SDK I can access workitems in this project from TFS Server.
>
> I looked into the soltuion file, it has following information
>
>
>
> GlobalSection(TeamFoundationVersionControl) = preSolution
>
> SccNumberOfProjects = 1
>
> SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
>
> SccTeamFoundationServer = http://d-10369:8080/
>
> SccLocalPath0 = .
>
> EndGlobalSection
>
> I want to know how to access the above information in my addin and how to
> get the project name from this??
>
> I would appreciate any help in this.. Please point me to some direction.
>
>
>
> Thanks,
>
> Manoj
>
>
> _______________________________________________
> oztfs mailing list
> [email protected]
> http://prdlxvm0001.codify.net/mailman/listinfo/oztfs
>
>
>
>
> _______________________________________________
> oztfs mailing list
> [email protected]
> http://prdlxvm0001.codify.net/mailman/listinfo/oztfs
>
>
_______________________________________________
oztfs mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/oztfs

Reply via email to