Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 8e90ce9

Browse files
Merge pull request #2208 from github/devops/build-on-2019
Update solution so that it will compile on Visual Studio 2019
2 parents ba1c61d + 50b672d commit 8e90ce9

File tree

19 files changed

+496
-200
lines changed

19 files changed

+496
-200
lines changed

GitHubVS.sln

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27703.2035
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.28603.18
55
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHub.VisualStudio.Vsix", "src\GitHub.VisualStudio.Vsix\GitHub.VisualStudio.Vsix.csproj", "{D26B4B40-0C94-48AD-8019-0B9BE46E0071}"
7+
EndProject
68
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHub.VisualStudio", "src\GitHub.VisualStudio\GitHub.VisualStudio.csproj", "{11569514-5AE5-4B5B-92A2-F10B0967DE5F}"
79
ProjectSection(ProjectDependencies) = postProject
810
{7F5ED78B-74A3-4406-A299-70CFB5885B8B} = {7F5ED78B-74A3-4406-A299-70CFB5885B8B}
@@ -33,7 +35,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{8E1F
3335
ProjectSection(SolutionItems) = preProject
3436
scripts\Modules\BuildUtils.psm1 = scripts\Modules\BuildUtils.psm1
3537
scripts\Modules\Debugging.psm1 = scripts\Modules\Debugging.psm1
36-
scripts\Modules\Vsix.psm1 = scripts\Modules\Vsix.psm1
38+
scripts\modules\Versioning.ps1 = scripts\modules\Versioning.ps1
39+
scripts\modules\Vsix.ps1 = scripts\modules\Vsix.ps1
3740
EndProjectSection
3841
EndProject
3942
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{7B6C5F8D-14B3-443D-B044-0E209AE12BDF}"
@@ -141,7 +144,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Octokit.GraphQL.Core", "sub
141144
EndProject
142145
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Octokit.GraphQL", "submodules\octokit.graphql.net\Octokit.GraphQL\Octokit.GraphQL.csproj", "{791B408C-0ABC-465B-9EB1-A2422D67F418}"
143146
EndProject
144-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHub.StartPage.UnitTests", "test\GitHub.StartPage.UnitTests\GitHub.StartPage.UnitTests.csproj", "{B467682B-9F0E-42D8-8A20-1DE78F798793}"
147+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GitHub.StartPage.UnitTests", "test\GitHub.StartPage.UnitTests\GitHub.StartPage.UnitTests.csproj", "{B467682B-9F0E-42D8-8A20-1DE78F798793}"
145148
EndProject
146149
Global
147150
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -151,6 +154,14 @@ Global
151154
ReleaseWithoutVsix|Any CPU = ReleaseWithoutVsix|Any CPU
152155
EndGlobalSection
153156
GlobalSection(ProjectConfigurationPlatforms) = postSolution
157+
{D26B4B40-0C94-48AD-8019-0B9BE46E0071}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
158+
{D26B4B40-0C94-48AD-8019-0B9BE46E0071}.Debug|Any CPU.Build.0 = Debug|Any CPU
159+
{D26B4B40-0C94-48AD-8019-0B9BE46E0071}.DebugWithoutVsix|Any CPU.ActiveCfg = DebugWithoutVsix|Any CPU
160+
{D26B4B40-0C94-48AD-8019-0B9BE46E0071}.DebugWithoutVsix|Any CPU.Build.0 = DebugWithoutVsix|Any CPU
161+
{D26B4B40-0C94-48AD-8019-0B9BE46E0071}.Release|Any CPU.ActiveCfg = Release|Any CPU
162+
{D26B4B40-0C94-48AD-8019-0B9BE46E0071}.Release|Any CPU.Build.0 = Release|Any CPU
163+
{D26B4B40-0C94-48AD-8019-0B9BE46E0071}.ReleaseWithoutVsix|Any CPU.ActiveCfg = ReleaseWithoutVsix|Any CPU
164+
{D26B4B40-0C94-48AD-8019-0B9BE46E0071}.ReleaseWithoutVsix|Any CPU.Build.0 = ReleaseWithoutVsix|Any CPU
154165
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
155166
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.Debug|Any CPU.Build.0 = Debug|Any CPU
156167
{11569514-5AE5-4B5B-92A2-F10B0967DE5F}.DebugWithoutVsix|Any CPU.ActiveCfg = DebugWithoutVsix|Any CPU

global.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"msbuild-sdks": {
3-
"MSBuild.Sdk.Extras": "1.6.52"
4-
}
2+
"msbuild-sdks": {
3+
"MSBuild.Sdk.Extras": "1.6.61"
4+
}
55
}

scripts/modules/Vsix.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Set-StrictMode -Version Latest
22

33
New-Module -ScriptBlock {
4-
$gitHubDirectory = Join-Path $rootDirectory src\GitHub.VisualStudio
4+
$gitHubDirectory = Join-Path $rootDirectory src\GitHub.VisualStudio.Vsix
55

66
function Get-VsixManifestPath {
77
Join-Path $gitHubDirectory source.extension.vsixmanifest

src/GitHub.TeamFoundation.14/Services/VSGitExt.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,6 @@
1515

1616
namespace GitHub.VisualStudio.Base
1717
{
18-
// This is a workaround to avoid using reference aliases, which don't currently work with <PackageReference>.
19-
#if TEAMEXPLORER14
20-
public class VSGitExt14 : VSGitExt
21-
{
22-
public VSGitExt14(IServiceProvider serviceProvider, IGitService gitService) : base(serviceProvider, gitService) { }
23-
}
24-
#elif TEAMEXPLORER15
25-
public class VSGitExt15 : VSGitExt
26-
{
27-
public VSGitExt15(IServiceProvider serviceProvider, IGitService gitService) : base(serviceProvider, gitService) { }
28-
}
29-
#elif TEAMEXPLORER16
30-
public class VSGitExt16 : VSGitExt
31-
{
32-
public VSGitExt16(IServiceProvider serviceProvider, IGitService gitService) : base(serviceProvider, gitService) { }
33-
}
34-
#endif
35-
3618
/// <summary>
3719
/// This service acts as an always available version of <see cref="IGitExt"/>.
3820
/// </summary>

src/GitHub.TeamFoundation.16/GitHub.TeamFoundation.16.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<RootNamespace>GitHub.TeamFoundation</RootNamespace>
1313
<AssemblyName>GitHub.TeamFoundation.16</AssemblyName>
1414
<LangVersion>7.3</LangVersion>
15-
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
15+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
1616
<FileAlignment>512</FileAlignment>
1717
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode>
1818
<NuGetPackageImportStamp>

0 commit comments

Comments
 (0)