Skip to content

Commit 28dcc7d

Browse files
authored
Initial implementation of direct git repo data reading (#288)
1 parent b4f0f2f commit 28dcc7d

File tree

77 files changed

+5971
-2190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+5971
-2190
lines changed

SourceLink.sln

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27214.1
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29011.400
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Build.Tasks.Git", "src\Microsoft.Build.Tasks.Git\Microsoft.Build.Tasks.Git.csproj", "{A86F9DC3-9595-44AC-ACC6-025FB74813E6}"
77
EndProject
@@ -29,8 +29,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.SourceLink.GitHub
2929
EndProject
3030
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.SourceLink.Vsts.Git.UnitTests", "src\SourceLink.Vsts.Git.UnitTests\Microsoft.SourceLink.Vsts.Git.UnitTests.csproj", "{60C82684-6A13-4AEF-A4F5-C429BEDE1913}"
3131
EndProject
32-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Build.Tasks.Git.Operations", "src\Microsoft.Build.Tasks.Git.Operations\Microsoft.Build.Tasks.Git.Operations.csproj", "{BC24CED9-324E-4AF9-939F-BDB0C2C5F644}"
33-
EndProject
3432
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.SourceLink.GitLab", "src\SourceLink.GitLab\Microsoft.SourceLink.GitLab.csproj", "{B8F63D05-BF7E-4F09-B87F-2FD2E6D58149}"
3533
EndProject
3634
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.SourceLink.GitLab.UnitTests", "src\SourceLink.GitLab.UnitTests\Microsoft.SourceLink.GitLab.UnitTests.csproj", "{46C6BD7C-ABB7-4444-B095-C63868FACC41}"
@@ -113,10 +111,6 @@ Global
113111
{60C82684-6A13-4AEF-A4F5-C429BEDE1913}.Debug|Any CPU.Build.0 = Debug|Any CPU
114112
{60C82684-6A13-4AEF-A4F5-C429BEDE1913}.Release|Any CPU.ActiveCfg = Release|Any CPU
115113
{60C82684-6A13-4AEF-A4F5-C429BEDE1913}.Release|Any CPU.Build.0 = Release|Any CPU
116-
{BC24CED9-324E-4AF9-939F-BDB0C2C5F644}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
117-
{BC24CED9-324E-4AF9-939F-BDB0C2C5F644}.Debug|Any CPU.Build.0 = Debug|Any CPU
118-
{BC24CED9-324E-4AF9-939F-BDB0C2C5F644}.Release|Any CPU.ActiveCfg = Release|Any CPU
119-
{BC24CED9-324E-4AF9-939F-BDB0C2C5F644}.Release|Any CPU.Build.0 = Release|Any CPU
120114
{B8F63D05-BF7E-4F09-B87F-2FD2E6D58149}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121115
{B8F63D05-BF7E-4F09-B87F-2FD2E6D58149}.Debug|Any CPU.Build.0 = Debug|Any CPU
122116
{B8F63D05-BF7E-4F09-B87F-2FD2E6D58149}.Release|Any CPU.ActiveCfg = Release|Any CPU

eng/runtimeconfig.template.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"rollForwardOnNoCandidateFx": 2
3+
}

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"tools": {
3-
"dotnet": "2.2.203"
3+
"dotnet": "3.0.100-preview5-011568"
44
},
55
"msbuild-sdks": {
66
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19255.2"

src/Common/ValueTuple.cs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
2+
3+
#if NET461
4+
5+
using System.Collections.Generic;
6+
7+
namespace System
8+
{
9+
internal struct ValueTuple<T1, T2>
10+
{
11+
public T1 Item1;
12+
public T2 Item2;
13+
14+
public ValueTuple(T1 item1, T2 item2)
15+
{
16+
Item1 = item1;
17+
Item2 = item2;
18+
}
19+
}
20+
21+
internal struct ValueTuple<T1, T2, T3>
22+
{
23+
public T1 Item1;
24+
public T2 Item2;
25+
public T3 Item3;
26+
27+
public ValueTuple(T1 item1, T2 item2, T3 item3)
28+
{
29+
Item1 = item1;
30+
Item2 = item2;
31+
Item3 = item3;
32+
}
33+
}
34+
35+
namespace Runtime.CompilerServices
36+
{
37+
internal sealed class TupleElementNamesAttribute : Attribute
38+
{
39+
public IList<string> TransformNames { get; }
40+
41+
public TupleElementNamesAttribute(string[] transformNames)
42+
{
43+
TransformNames = transformNames;
44+
}
45+
}
46+
}
47+
}
48+
49+
#endif

src/Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
44

55
<PropertyGroup>
6-
<LangVersion>Latest</LangVersion>
6+
<LangVersion>Preview</LangVersion>
77
<Copyright>$(CopyrightMicrosoft)</Copyright>
88
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
99
<GenerateResxSource>true</GenerateResxSource>
10+
<UserRuntimeConfig Condition="$(TargetFramework.StartsWith('netcoreapp'))">$(RepositoryEngineeringDir)runtimeconfig.template.json</UserRuntimeConfig>
1011
</PropertyGroup>
1112

1213
<!--

src/Microsoft.Build.StandardCI/Microsoft.Build.StandardCI.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<PropertyGroup>
33
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
44
<AutoGenerateAssemblyVersion>true</AutoGenerateAssemblyVersion>
5+
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
56

67
<!-- Using an explicit nuspec file since NuGet Pack target currently doesn't support including dependencies in tools packages -->
78
<IsPackable>true</IsPackable>

0 commit comments

Comments
 (0)