Giter VIP home page Giter VIP logo

Comments (39)

timhaovo avatar timhaovo commented on July 17, 2024 1

I'm not aware of any TF.exe command that would reliably output the nearest branch or identify a folder as a branch, sadly.

However, TF.exe does reference the assemblies required to execute the code above. So a hack-ish solution could be to use these assemblies instead. At design time you could reference the assemblies from the TF.exe folder with CopyLocal=false, to prevent inclusion in the final build. Then use the AppDomain.CurrentDomain.AssemblyResolve event to manually resolve the assemblies from the TF.exe folder during runtime. Not very reliable, but any resolving or missing assembly exceptions can be caught to gracefully fail in these cases.

The required assemblies are:
Microsoft.TeamFoundation.Client
Microsoft.TeamFoundation.Common
Microsoft.TeamFoundation.VersionControl.Client
Microsoft.TeamFoundation.VersionControl.Common
Microsoft.VisualStudio.Services.Client.Interactive
Microsoft.VisualStudio.Services.Common

Example assembly resolve handler:

        private static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
        {
            if (args.Name.StartsWith("Microsoft.TeamFoundation.") || args.Name.StartsWith("Microsoft.VisualStudio.Services."))
            {
                string name = args.Name;
                int spos = name.IndexOf(',');
                if (spos >= 0)
                    name = name.Substring(0, spos);
                var path = System.IO.Path.Combine(TFExeFolder, name + ".dll");
                return System.Reflection.Assembly.LoadFile(path);
            }
            return null;
        }

from vs-customize-window-title.

timhaovo avatar timhaovo commented on July 17, 2024 1

Oh, it's even easier, because Visual Studio has all these assemblies loaded by default as soon as a solution is opened. So no need to include or even resolve the assemblies at all, the extension can just use whatever Visual Studio has loaded anyway.

All you have to do to get the code working:

  1. Reference the required assemblies. These are:

Microsoft.TeamFoundation.Client
Microsoft.TeamFoundation.Common
Microsoft.TeamFoundation.VersionControl.Client
Microsoft.TeamFoundation.VersionControl.Common
Microsoft.VisualStudio.Services.Client.Interactive
Microsoft.VisualStudio.Services.Common

You'll find them in the TF.exe path (for VS2017 community edition: Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer )

For each of these references, set "Specific version" and "Local copy" to false, because you want to use whatever comes with Visual Studio at runtime.

  1. Put the TfsHelper class into the project.

  2. To get the TFS branch name call TfsHelper.GetBranchNameFromLocalFile with the directory path of the current solution (not the .sln file itself, because it might not be in TFS even if the folder is). Make sure to wrap the call in a try/catch block to protect against cases where the assemblies may fail to load for whatever reason.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024 1

Hi, can you try to update to version 4.2.2 (on the marketplace)?
I have removed the cast for vssCredentials, and reverted the namespace change which may be causing the previous options to be lost (I don't see what else could be causing this), please confirm if they're back. Thanks!

from vs-customize-window-title.

timhaovo avatar timhaovo commented on July 17, 2024 1

v4.2.2 works! Thanks a lot for integrating this feature!

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Hi, it should be possible, but I am not very familiar with TFS automation. Please take a look at https://github.com/mayerwin/vs-customize-window-title/blob/master/RenameVSWindowTitle/WorkspaceInfoGetter.cs and feel free to submit a PR to add support for retrieving the workspace branch name?

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

If this information is obtainable through command line (like with git), it could also be a solution. Can you tell me if the following works for you: http://stackoverflow.com/questions/10332269/how-to-determine-branch-name-from-batch-file

from vs-customize-window-title.

mrsesch avatar mrsesch commented on July 17, 2024

You can look here:
https://github.com/squaredinfinity/VSCommands/blob/master/Sources/Shared/Integration/TeamFoundation/TeamFoundationHelper.cs

With vsCommands it is possible. The drawback of vsCommands is that it is not available for VS 2017 yet.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Thanks for the link. I'll check that.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

The Nuget dependency seems quite heavy, it would be better if someone who uses TFS could test adding the missing method using the current implementation of WorkspaceInfoGetter.cs (https://github.com/mayerwin/vs-customize-window-title/blob/master/CustomizeVSWindowTitle/WorkspaceInfoGetter.cs) that loads the DLL dynamically, and submit a PR. If the dynamically loaded DLL does not provide this functionality, then I'll consider adding the dependency.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

I tried some things with DLLs but it really seems to bloat the extension with plenty of dependencies (I like the fact that it currently fits in 115kB).
I believe there is a command line tool installed with TFS, that works like with Git and Mercurial. Could you just give me the commands used to obtain the branch name?

If so, it should be quite straightforward to implement as I would reuse the same logic and UI as for Git and Mercurial (which use the already installed command line tool or allow the user to override its path).

from vs-customize-window-title.

tjgalama avatar tjgalama commented on July 17, 2024

I tried it with TF.exe (default installed) and TFPT.exe (which is part of VS2015 extension- TFS Power Tools). Unfortunatly no luck.
I think including the Microsoft.TeamfoundationServer.Client (or perhaps Microsoft.VisualStudioServices.Client?) is the only valid way to make this work for branche
Depending on how consistent a developer organizes it's source-control, this issue 'might' also be solved by supporting regex in the title patterns (in some-way)

from vs-customize-window-title.

timhaovo avatar timhaovo commented on July 17, 2024

A [tfsBranchName] tag would be very useful, indeed!

This is what I used in a different project to get the TFS branch name by calling GetBranchNameFromLocalFile with the solution folder as argument:
https://pastebin.com/fx2hu0iJ

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Thanks a lot, I can see it requires NuGet package Microsoft.TeamFoundationServer.ExtendedClient. It'd really be ideal if it could be extracted with TF.exe (whatever the complexity of the regex), do you know if this would be possible?

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Thanks, I'll look into integrating this feature in the next version (the one which will support VS 2019).

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Could this be achieved with this upcoming generic feature?
#33

from vs-customize-window-title.

timhaovo avatar timhaovo commented on July 17, 2024

Could this be achieved with this upcoming generic feature?
#33

There is no official command line tool that can provide the TFS branch name for a given file or folder. It'd be possible to write a tool like that, of course, but i think the ability to display the TFS branch name in the Visual Studio title bar is so close to the core feature set of this extension that it'd be weird if it required the download of an additional command line tool to get it to work.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Indeed. I think I'll try to implement the solution you suggested which seems fair enough!

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Do you know if the solution proposed here: https://stackoverflow.com/a/10332745/541420 could work to extract the branch name? (TF.EXE properties .)
For parity with git and hg it'd still be best if we could use tf.exe :).

from vs-customize-window-title.

timhaovo avatar timhaovo commented on July 17, 2024

No, sadly not. tf properties or tf info report the full server path, but it's not possible to determine which part of the path represents the branch.

from vs-customize-window-title.

rocifier avatar rocifier commented on July 17, 2024

Hi, any progress on this? Anything I could do to help? I would use this feature daily at work.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Hi, I'll try to get it done alongside the new release this month to support VS 2019. I'll let you know if I need your help for testing, thanks!

from vs-customize-window-title.

rocifier avatar rocifier commented on July 17, 2024

That would be awesome, I'll try to stand by to test it, as we use TFS extensively (for better or worse, it's a difficult move out).

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Hello, I have implemented support for TFS branch name using the solution suggested by @timhaovo. The new tag is [tfsBranchName] Can you please try the following VSIX and confirm if it works as you expect, if possible in VS 2015, 2017 and 2019?
CustomizeVSWindowTitle (new).zip

from vs-customize-window-title.

rocifier avatar rocifier commented on July 17, 2024

Oh what a champion, I'll try it out tomorrow hopefully. How do I configure it?

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Just use the tag [tfsBranchName] in the patterns you want.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

(in the "Custom VS Window Title" section of Visual Studio's Settings).

from vs-customize-window-title.

rocifier avatar rocifier commented on July 17, 2024

Hi @mayerwin just tested on VS2017 and VS2015. Results:

VS2017

When using [tfsBranchName] I see a single aterisk '*' shown in place of the where I expect the branch name. Tested for two different solutions, one on Main, one on a private branch.

VS2015

image

CreateInstance failed for package [CustomizeVSWindowTitle]Source: 'mscorlib' Description: Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.Shell.15.0, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
   at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.VisualStudio.Shell.15.0, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/
LOG: Initial PrivatePath = NULL
Calling assembly : CustomizeVSWindowTitle, Version=4.0.0.0, Culture=neutral, PublicKeyToken=ceec2b7720c0179d.
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:\Users\Ryan.OConnor\AppData\Local\Microsoft\VisualStudio\14.0\devenv.exe.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Microsoft.VisualStudio.Shell.15.0, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PublicAssemblies/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PublicAssemblies/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PublicAssemblies/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PublicAssemblies/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Users/Ryan.OConnor/AppData/Local/Microsoft/VisualStudio/14.0/Extensions/xp5oyf1t.fow/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Users/Ryan.OConnor/AppData/Local/Microsoft/VisualStudio/14.0/Extensions/xp5oyf1t.fow/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.DLL.
LOG: Attempting download of new URL file:///C:/Users/Ryan.OConnor/AppData/Local/Microsoft/VisualStudio/14.0/Extensions/xp5oyf1t.fow/Microsoft.VisualStudio.Shell.15.0.EXE.
LOG: Attempting download of new URL file:///C:/Users/Ryan.OConnor/AppData/Local/Microsoft/VisualStudio/14.0/Extensions/xp5oyf1t.fow/Microsoft.VisualStudio.Shell.15.0/Microsoft.VisualStudio.Shell.15.0.EXE.

Was unable to notice any messages in Output tabs related to the plugin.

Thanks,
Ryan

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Thanks, can you try again with the latest version (4.2.0)? It is the one in the marketplace.

from vs-customize-window-title.

timhaovo avatar timhaovo commented on July 17, 2024

I tried version 4.2.0, but the [tfsBranchName] placeholder just results in an empty string. My VSIX test project with the TfsHelper sample code above reports the correct branch, though. This is a very busy week for me, so i can't do much in-depth debugging right now. But i'll probably have time to look into it some more next week.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Can you give me an example of this:

call TfsHelper.GetBranchNameFromLocalFile with the directory path of the current solution (not the .sln file itself, because it might not be in TFS even if the folder is).

I may not have implemented this properly.

from vs-customize-window-title.

timhaovo avatar timhaovo commented on July 17, 2024

Sure, i do this in my test VSIX project:

var localDTE = (EnvDTE.DTE)(await package.GetServiceAsync(typeof(EnvDTE.DTE)));
var file = System.IO.Path.GetDirectoryName(localDTE?.Solution?.FullName);
var branch = TfsHelper.GetBranchNameFromLocalFile(file);

from vs-customize-window-title.

tjgalama avatar tjgalama commented on July 17, 2024

I don't see the branch name either. Might it have something to do with the fact that I have the VS2017 Enterprise edition (v15.9.9)? let me know If you need additional info/logging.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

OK strange, here is the code calling TfsHelper:

      public static string GetBranchNameOrEmpty(Solution solution) {
           var sn = solution?.FullName;
           if (string.IsNullOrEmpty(sn)) return string.Empty;
           var name = string.Empty;
           Globals.InvokeOnUIThread(() => name = TfsHelper.GetBranchNameFromLocalFile(Path.GetDirectoryName(sn)));
           return name ?? string.Empty;
       }

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

And I have put the TfsHelper here: https://github.com/mayerwin/vs-customize-window-title/blob/master/CustomizeVSWindowTitle/Lib/TfsHelper.cs

Not sure what is not set up correctly.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

@tjgalama No I don't think it has anything to do with that. The right way to debug this would be to have a test project and just place a breakpoint to understand why the resolver doesn't work. I have not tested it myself as I am not using TFS, so I have blindly implemented the code by @timhaovo (which likely is good but I may have overlooked something).

from vs-customize-window-title.

timhaovo avatar timhaovo commented on July 17, 2024

Tried my test project with the TfsHelper code you are using and it stops working. The culprit is the cast of vssCredentials to ICredentials in CreateTfsCollection. Use vssCredentials without the cast and and works again.

from vs-customize-window-title.

tjgalama avatar tjgalama commented on July 17, 2024

One other thing; when updating the package the VS Options for title customization were reset to their defaults.

from vs-customize-window-title.

tjgalama avatar tjgalama commented on July 17, 2024

When I enabled Debug mode the following exception turned up in the output view:

CustomizeVSWindowTitle: ReplaceTag (tfsBranchName) failed: System.InvalidCastException: Unable to cast object of type 'Microsoft.VisualStudio.Services.Common.VssCredentials' to type 'System.Net.ICredentials'.
   at ErwinMayerLabs.CustomizeVSWindowTitleExtension.Lib.TfsHelper.CreateTfsCollection(String tfsName)
   at ErwinMayerLabs.CustomizeVSWindowTitleExtension.Lib.TfsHelper.GetBranchNameFromLocalFile(String path)
   at ErwinMayerLabs.CustomizeVSWindowTitleExtension.Resolvers.TfsBranchNameResolver.<>c__DisplayClass2_0.<GetBranchNameOrEmpty>b__0()
   at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
   at System.Windows.Threading.Dispatcher.Invoke(Action callback)
   at ErwinMayerLabs.CustomizeVSWindowTitleExtension.Globals.InvokeOnUIThread(Action action)
   at ErwinMayerLabs.CustomizeVSWindowTitleExtension.Resolvers.TfsBranchNameResolver.GetBranchNameOrEmpty(Solution solution)
   at ErwinMayerLabs.CustomizeVSWindowTitleExtension.Resolvers.TfsBranchNameResolver.Resolve(AvailableInfo info)
   at ErwinMayerLabs.CustomizeVSWindowTitleExtension.CustomizeVSWindowTitle.<>c__DisplayClass53_0.<GetNewTitle>b__0(Match match)

from vs-customize-window-title.

mayerwin avatar mayerwin commented on July 17, 2024

Thank you for your help to get this implemented and working (and I am happy as the extension remains very lightweight)!

from vs-customize-window-title.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.