Skip to content

Commit 561a39c

Browse files
committed
Initial implementation
0 parents  commit 561a39c

37 files changed

+1391
-0
lines changed

.editorconfig

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# EditorConfig is awesome:
2+
http://EditorConfig.org
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Don't use tabs for indentation.
8+
[*]
9+
indent_style = space
10+
# (Please don't specify an indent_size here; that has too many unintended consequences.)
11+
12+
# Code files
13+
[*.cs,*.csx,*.vb,*.vbx]
14+
indent_size = 4
15+
16+
# Xml project files
17+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
18+
indent_size = 2
19+
20+
# Xml config files
21+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
22+
indent_size = 2
23+
24+
# JSON files
25+
[*.json]
26+
indent_size = 2

.gitattributes

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
###############################################################################
2+
# Set default behavior to:
3+
# automatically normalize line endings on check-in, and
4+
# convert to Windows-style line endings on check-out
5+
###############################################################################
6+
* text=auto encoding=UTF-8
7+
*.sh text eol=lf
8+
9+
###############################################################################
10+
# Set file behavior to:
11+
# treat as text, and
12+
# diff as C# source code
13+
###############################################################################
14+
*.cs text diff=csharp
15+
16+
###############################################################################
17+
# Set file behavior to:
18+
# treat as text
19+
###############################################################################
20+
*.cmd text
21+
*.config text
22+
*.csproj text
23+
*.groovy text
24+
*.json text
25+
*.md text
26+
*.nuspec text
27+
*.pkgdef text
28+
*.proj text
29+
*.projitems text
30+
*.props text
31+
*.ps1 text
32+
*.resx text
33+
*.ruleset text
34+
*.shproj text
35+
*.sln text
36+
*.targets text
37+
*.vb text
38+
*.vbproj text
39+
*.vcxproj text
40+
*.vcxproj.filters text
41+
*.vsct text
42+
*.vsixmanifest text
43+
44+
###############################################################################
45+
# Set file behavior to:
46+
# treat as binary
47+
###############################################################################
48+
*.png binary
49+
*.snk binary

.gitignore

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
.vs/
8+
9+
# Build results
10+
artifacts/
11+
Debug/
12+
Release/
13+
bin/
14+
obj/
15+
.dotnet/
16+
.tools/
17+
.packages/
18+
19+
# Per-user project properties
20+
launchSettings.json
21+
22+
# Visual Studio profiler
23+
*.psess
24+
*.vsp
25+
*.vspx
26+
27+
# ReSharper is a .NET coding add-in
28+
_ReSharper*/
29+
*.[Rr]e[Ss]harper
30+
31+
# DotCover is a Code Coverage Tool
32+
*.dotCover
33+
34+
# NCrunch
35+
*.ncrunch*
36+
.*crunch*.local.xml

Build.cmd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
powershell -ExecutionPolicy ByPass -command "& {&'%~dp0eng\common\Build.ps1' -restore -build %*}
3+
exit /b %ErrorLevel%

Directory.Build.props

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
<Project>
3+
<PropertyGroup>
4+
<RepositoryUrl>https://github.com/dotnet/sourcelink</RepositoryUrl>
5+
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
6+
<LangVersion>Latest</LangVersion>
7+
</PropertyGroup>
8+
</Project>

License.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Copyright (c) .NET Foundation and Contributors
2+
3+
All rights reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the “License”); you may not
6+
use this file except in compliance with the License. You may obtain a copy of
7+
the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
License for the specific language governing permissions and limitations under
15+
the License.

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Microsoft.Build.Tasks.(Git|TFVC)
2+
3+
4+
Pre-release builds are available on MyGet gallery: https://dotnet.myget.org/Gallery/repository-info.
5+
6+
[//]: # (Begin current test results)
7+
8+
| |Windows Debug|Windows Release|
9+
|:--------:|:-----------:|:-------------:|
10+
|**master**|[![Build Status](https://ci.dot.net/job/dotnet_repository-info/job/master/job/windows_debug/badge/icon)](https://ci.dot.net/job/dotnet_repository-info/job/master/job/windows_debug/)|[![Build Status](https://ci.dot.net/job/dotnet_repository-info/job/master/job/windows_release/badge/icon)](https://ci.dot.net/job/dotnet_repository-info/job/master/job/windows_release/)|
11+
12+
[//]: # (End current test results)
13+
14+
15+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

Restore.cmd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
powershell -ExecutionPolicy ByPass -command "& {&'%~dp0eng\common\Build.ps1' -restore %*}
3+
exit /b %ErrorLevel%

SourceLink.sln

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27214.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SourceLink.GitHub", "src\GitHub\SourceLink.GitHub.csproj", "{570FAF85-DF51-49DC-A432-4BBD73436E84}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SourceLink.VSTS.TFVC", "src\VSTS\TFVC\SourceLink.VSTS.TFVC.csproj", "{D6D9766F-F3B6-450C-AFBC-3E33AEFB8492}"
9+
EndProject
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SourceLink.VSTS.Git", "src\VSTS\Git\SourceLink.VSTS.Git.csproj", "{8B24544C-766E-4641-BBFF-F1B543E0C45F}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14+
Debug|Any CPU = Debug|Any CPU
15+
Release|Any CPU = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{570FAF85-DF51-49DC-A432-4BBD73436E84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{570FAF85-DF51-49DC-A432-4BBD73436E84}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{570FAF85-DF51-49DC-A432-4BBD73436E84}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{570FAF85-DF51-49DC-A432-4BBD73436E84}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{D6D9766F-F3B6-450C-AFBC-3E33AEFB8492}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{D6D9766F-F3B6-450C-AFBC-3E33AEFB8492}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{D6D9766F-F3B6-450C-AFBC-3E33AEFB8492}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{D6D9766F-F3B6-450C-AFBC-3E33AEFB8492}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{8B24544C-766E-4641-BBFF-F1B543E0C45F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{8B24544C-766E-4641-BBFF-F1B543E0C45F}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{8B24544C-766E-4641-BBFF-F1B543E0C45F}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{8B24544C-766E-4641-BBFF-F1B543E0C45F}.Release|Any CPU.Build.0 = Release|Any CPU
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {0E6D4D3C-C44D-4A03-B5C0-10A36F51E272}
36+
EndGlobalSection
37+
EndGlobal

Test.cmd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
powershell -ExecutionPolicy ByPass -command "& {&'%~dp0eng\common\Build.ps1' -test %*}
3+
exit /b %ErrorLevel%

build.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
source="${BASH_SOURCE[0]}"
4+
5+
# resolve $SOURCE until the file is no longer a symlink
6+
while [[ -h $source ]]; do
7+
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
8+
source="$(readlink "$source")"
9+
10+
# if $source was a relative symlink, we need to resolve it relative to the path where the
11+
# symlink file was located
12+
[[ $source != /* ]] && source="$scriptroot/$source"
13+
done
14+
15+
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
16+
"$scriptroot/eng/common/build.sh" --build --restore $@

eng/SignToolData.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"sign": [
3+
{
4+
"certificate": "MicrosoftSHA2",
5+
"strongName": "MsSharedLib72",
6+
"values": [
7+
"bin/SourceLink.GitHub/net461/SourceLink.GitHub.dll",
8+
"bin/SourceLink.GitHub/netcoreapp2.0/SourceLink.GitHub.dll",
9+
"bin/SourceLink.VSTS.Git/net461/SourceLink.VSTS.Git.dll",
10+
"bin/SourceLink.VSTS.Git/netcoreapp2.0/SourceLink.VSTS.Git.dll",
11+
"bin/SourceLink.VSTS.TFVC/net461/SourceLink.VSTS.TFVC.dll"
12+
]
13+
}
14+
]
15+
}

eng/Versions.props

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<PropertyGroup>
4+
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
5+
6+
<!-- This repo version -->
7+
<VersionPrefix>1.0.0</VersionPrefix>
8+
<PreReleaseVersionLabel>beta</PreReleaseVersionLabel>
9+
10+
<!-- Libs -->
11+
<LibGit2SharpVersion>0.26.0-preview-0017</LibGit2SharpVersion>
12+
<MicrosoftBuildVersion>15.6.82</MicrosoftBuildVersion>
13+
<MicrosoftBuildTasksCore>15.6.82</MicrosoftBuildTasksCore>
14+
<MicrosoftTeamFoundationServerExtendedClientVersion>15.112.1</MicrosoftTeamFoundationServerExtendedClientVersion>
15+
</PropertyGroup>
16+
</Project>

eng/common/CIBuild.cmd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
powershell -ExecutionPolicy ByPass -command "& {&'%~dp0Build.ps1' -restore -build -test -sign -pack -ci %*}
3+
exit /b %ErrorLevel%

0 commit comments

Comments
 (0)