From 9cf835fda484dee236fc9abbbb8706d2d4b06d29 Mon Sep 17 00:00:00 2001 From: Dan Rigby Date: Sun, 6 Oct 2013 13:37:25 -0400 Subject: [PATCH] Fix Vs2012 naming It was inconsistent with previous VS version naming. --- .../GitTfs.Vs2012.csproj | 8 ++++---- {GitTfs.Vs11 => GitTfs.Vs2012}/Properties/AssemblyInfo.cs | 2 +- .../TfsHelper.Vs2012.cs | 6 +++--- {GitTfs.Vs11 => GitTfs.Vs2012}/TfsPlugin.cs | 2 +- .../Wrappers.Vs11.cs => GitTfs.Vs2012/Wrappers.Vs2012.cs | 0 GitTfs.sln | 2 +- GitTfs/Core/TfsInterop/TfsPlugin.cs | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) rename GitTfs.Vs11/GitTfs.Vs11.csproj => GitTfs.Vs2012/GitTfs.Vs2012.csproj (96%) rename {GitTfs.Vs11 => GitTfs.Vs2012}/Properties/AssemblyInfo.cs (94%) rename GitTfs.Vs11/TfsHelper.Vs11.cs => GitTfs.Vs2012/TfsHelper.Vs2012.cs (96%) rename {GitTfs.Vs11 => GitTfs.Vs2012}/TfsPlugin.cs (94%) rename GitTfs.Vs11/Wrappers.Vs11.cs => GitTfs.Vs2012/Wrappers.Vs2012.cs (100%) diff --git a/GitTfs.Vs11/GitTfs.Vs11.csproj b/GitTfs.Vs2012/GitTfs.Vs2012.csproj similarity index 96% rename from GitTfs.Vs11/GitTfs.Vs11.csproj rename to GitTfs.Vs2012/GitTfs.Vs2012.csproj index e1b02ab6..3bce9cb7 100644 --- a/GitTfs.Vs11/GitTfs.Vs11.csproj +++ b/GitTfs.Vs2012/GitTfs.Vs2012.csproj @@ -8,8 +8,8 @@ {699CE23D-8BBD-4C15-82E9-7A628ACCA4C6} Library Properties - GitTfs.Vs11 - GitTfs.Vs11 + GitTfs.Vs2012 + GitTfs.Vs2012 v4.0 512 ..\ @@ -87,9 +87,9 @@ Wrappers.cs - + - + diff --git a/GitTfs.Vs11/Properties/AssemblyInfo.cs b/GitTfs.Vs2012/Properties/AssemblyInfo.cs similarity index 94% rename from GitTfs.Vs11/Properties/AssemblyInfo.cs rename to GitTfs.Vs2012/Properties/AssemblyInfo.cs index 5fbf2335..34480f7e 100644 --- a/GitTfs.Vs11/Properties/AssemblyInfo.cs +++ b/GitTfs.Vs2012/Properties/AssemblyInfo.cs @@ -4,7 +4,7 @@ using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("GitTfs.Vs11")] +[assembly: AssemblyTitle("GitTfs.Vs2012")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] diff --git a/GitTfs.Vs11/TfsHelper.Vs11.cs b/GitTfs.Vs2012/TfsHelper.Vs2012.cs similarity index 96% rename from GitTfs.Vs11/TfsHelper.Vs11.cs rename to GitTfs.Vs2012/TfsHelper.Vs2012.cs index eb33138e..9f515634 100644 --- a/GitTfs.Vs11/TfsHelper.Vs11.cs +++ b/GitTfs.Vs2012/TfsHelper.Vs2012.cs @@ -14,7 +14,7 @@ using Sep.Git.Tfs.Util; using Sep.Git.Tfs.VsCommon; using StructureMap; -namespace Sep.Git.Tfs.Vs11 +namespace Sep.Git.Tfs.Vs2012 { using System.Net; @@ -120,10 +120,10 @@ namespace Sep.Git.Tfs.Vs11 private static string GetDialogAssemblyPath() { - return Path.Combine(GetVs11InstallDir(), "PrivateAssemblies", DialogAssemblyName + ".dll"); + return Path.Combine(GetVs2012InstallDir(), "PrivateAssemblies", DialogAssemblyName + ".dll"); } - private static string GetVs11InstallDir() + private static string GetVs2012InstallDir() { return TryGetRegString(@"Software\Microsoft\VisualStudio\11.0", "InstallDir") ?? TryGetRegString(@"Software\WOW6432Node\Microsoft\VisualStudio\11.0", "InstallDir"); diff --git a/GitTfs.Vs11/TfsPlugin.cs b/GitTfs.Vs2012/TfsPlugin.cs similarity index 94% rename from GitTfs.Vs11/TfsPlugin.cs rename to GitTfs.Vs2012/TfsPlugin.cs index 63a35bc0..15e7e1e2 100644 --- a/GitTfs.Vs11/TfsPlugin.cs +++ b/GitTfs.Vs2012/TfsPlugin.cs @@ -1,4 +1,4 @@ -namespace Sep.Git.Tfs.Vs11 +namespace Sep.Git.Tfs.Vs2012 { class TfsPlugin : Sep.Git.Tfs.Core.TfsInterop.TfsPlugin { diff --git a/GitTfs.Vs11/Wrappers.Vs11.cs b/GitTfs.Vs2012/Wrappers.Vs2012.cs similarity index 100% rename from GitTfs.Vs11/Wrappers.Vs11.cs rename to GitTfs.Vs2012/Wrappers.Vs2012.cs diff --git a/GitTfs.sln b/GitTfs.sln index 91ed68cd..1aeb8a2c 100644 --- a/GitTfs.sln +++ b/GitTfs.sln @@ -11,7 +11,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitTfs.Vs2010", "GitTfs.Vs2 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitTfs.VsFake", "GitTfs.VsFake\GitTfs.VsFake.csproj", "{20C411E8-49C7-11E1-A776-3FE84824019B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitTfs.Vs11", "GitTfs.Vs11\GitTfs.Vs11.csproj", "{699CE23D-8BBD-4C15-82E9-7A628ACCA4C6}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitTfs.Vs2012", "GitTfs.Vs2012\GitTfs.Vs2012.csproj", "{699CE23D-8BBD-4C15-82E9-7A628ACCA4C6}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibGit2Sharp", "lib\libgit2sharp\LibGit2Sharp\LibGit2Sharp.csproj", "{EE6ED99F-CB12-4683-B055-D28FC7357A34}" EndProject diff --git a/GitTfs/Core/TfsInterop/TfsPlugin.cs b/GitTfs/Core/TfsInterop/TfsPlugin.cs index 1e1f1b8d..8335f644 100644 --- a/GitTfs/Core/TfsInterop/TfsPlugin.cs +++ b/GitTfs/Core/TfsInterop/TfsPlugin.cs @@ -18,7 +18,7 @@ namespace Sep.Git.Tfs.Core.TfsInterop return x.Try("GitTfs.Vs" + explicitVersion, "Sep.Git.Tfs.Vs" + explicitVersion + ".TfsPlugin") ?? x.Fail("Unable to load TFS version specified in GIT_TFS_CLIENT (" + explicitVersion + ")!"); } - return x.Try("GitTfs.Vs11", "Sep.Git.Tfs.Vs11.TfsPlugin") ?? + return x.Try("GitTfs.Vs2012", "Sep.Git.Tfs.Vs2012.TfsPlugin") ?? x.Try("GitTfs.Vs2010", "Sep.Git.Tfs.Vs2010.TfsPlugin") ?? x.Try("GitTfs.Vs2008", "Sep.Git.Tfs.Vs2008.TfsPlugin") ?? x.Fail();