As long as the target machines you intend to run your application on have
Team Explorer installed on them, yes it's possible.
I've actually got a project out on CodePlex that I integrated their form
into my application already if you need a working example.
http://www.codeplex.com/NException
Check out the EditTFSWorkItem Form class, it should have a good example of
how to use it. Also, from my experience with TFS and custom applications you
*will* run into problems with using their controls on forms. The controls
you'll be using aren't registered in the GAC *cough* so your application
will have problems resolving where the assemblies are located when using
them on your target machines. That's the workaround I came up with to ensure
the assemblies could be resolved properly (it's inside the Program.cs file
in the project I directed you to)
static Assembly CurrentDomain_A ssemblyResolve( object sender,
ResolveEventArg s args) {
AssemblyName name = new AssemblyName(ar gs.Name);
using (RegistryKey key =
Registry.LocalM achine.OpenSubK ey(@"Software\M icrosoft\Visual Studio\9.0")) {
// Locate the installation directory for Visual Studio.
string installDir = key.GetValue("I nstallDir").ToS tring();
string privateAssembli esFolder = Path.Combine(in stallDir,
"PrivateAssembl ies");
string assemblyFile = Path.Combine(pr ivateAssemblies Folder,
name.Name + ".dll");
if (File.Exists(as semblyFile)) {
return Assembly.LoadFi le(assemblyFile ,
AppDomain.Curre ntDomain.Eviden ce);
}
}
return null;
}
"SasaT" <Sa***@discussi ons.microsoft.c omwrote in message
news:F9******** *************** ***********@mic rosoft.com...
Hi people...
I integrated WorkItemFormCon trol with my application and it works as
expected except one little detail: if some work Item have another WI or
Changset attached as a link (Links tab), linked items will always be
opened
as HTML read-only documents.
If you do the same action from the Team Explorer, result will be alive
Work
Item opened in a new WorkItemFormCon trol window.
Is there a way to simulate Team Explorer functionallity from the custom
form
with hosted WorkItemFormCon trol control?
Thanks in advance,
Sasa