This repository has been archived by the owner on Apr 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 2.0 is msbuild core only, not msbuild full framework * able to open up in Visual Studio 2017 without error * synced up CI changes for SourceLinkTest * try b408
- Loading branch information
Showing
13 changed files
with
138 additions
and
119 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
SourceLink.Create.GitHub/SourceLink.Create.GitHub.Core.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<Project> | ||
<UsingTask TaskName="SourceLink.Create.GitHub.CreateTask" AssemblyFile="SourceLink.Create.GitHub.dll" /> | ||
|
||
<PropertyGroup> | ||
<!-- enable only in CI environments by default --> | ||
<!-- enable on AppVeyor and Travis CI, detect CI environment variable --> | ||
<SourceLinkCreate Condition="'$(SourceLinkCreate)' == ''">$(CI)</SourceLinkCreate> | ||
<!-- enable on Jenkins and TeamCity, detect BUILD_NUMBER environment variable --> | ||
<SourceLinkCreate Condition="'$(SourceLinkCreate)' == '' and '$(BUILD_NUMBER)' != ''">true</SourceLinkCreate> | ||
<CompileDependsOn Condition="'$(SourceLinkCreate)' == 'true' and ($(DebugType) == 'portable' or $(DebugType) == 'embedded')">SourceLinkCreate;$(CompileDependsOn)</CompileDependsOn> | ||
<SourceLinkRepo Condition="'$(SourceLinkRepo)' == ''">$(MSBuildProjectDirectory)</SourceLinkRepo> | ||
<SourceLinkFile Condition="'$(SourceLinkFile)' == ''">$(SourceLink)</SourceLinkFile> | ||
<SourceLinkFile Condition="'$(SourceLinkFile)' == ''">$(BaseIntermediateOutputPath)sourcelink.json</SourceLinkFile> | ||
<SourceLinkNotInGit Condition="'$(SourceLinkNotInGit)' == ''">embed</SourceLinkNotInGit> | ||
<SourceLinkHashMismatch Condition="'$(SourceLinkHashMismatch)' == ''">embed</SourceLinkHashMismatch> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<SourceLinkSources Condition="'@(SourceLinkSources)' == ''" Include="@(Compile)" Exclude="@(EmbeddedFiles)" /> | ||
</ItemGroup> | ||
|
||
<Target Name="SourceLinkCreate"> | ||
<SourceLink.Create.GitHub.CreateTask | ||
GitDirectory="$(SourceLinkGitDirectory)" | ||
Url="$(SourceLinkUrl)" | ||
File="$(SourceLinkFile)" | ||
Sources="@(SourceLinkSources)" | ||
NoAutoLF="$(SourceLinkNoAutoLF)" | ||
EmbeddedFilesIn="@(EmbeddedFiles)"> | ||
<Output PropertyName="SourceLink" TaskParameter="SourceLink" /> | ||
<Output ItemName="EmbeddedFiles" TaskParameter="EmbeddedFiles" /> | ||
</SourceLink.Create.GitHub.CreateTask> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,3 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<UsingTask TaskName="SourceLink.Create.GitHub.CreateTask" AssemblyFile="SourceLink.Create.GitHub.dll" /> | ||
|
||
<PropertyGroup> | ||
<!-- enable only in CI environments by default --> | ||
<SourceLinkCreate Condition="'$(SourceLinkCreate)' == ''">$(CI)</SourceLinkCreate> | ||
<CompileDependsOn Condition="'$(SourceLinkCreate)' == 'true' and ($(DebugType) == 'portable' or $(DebugType) == 'embedded')">SourceLinkCreate;$(CompileDependsOn)</CompileDependsOn> | ||
<SourceLinkRepo Condition="'$(SourceLinkRepo)' == ''">$(MSBuildProjectDirectory)</SourceLinkRepo> | ||
<SourceLinkFile Condition="'$(SourceLinkFile)' == ''">$(SourceLink)</SourceLinkFile> | ||
<SourceLinkFile Condition="'$(SourceLinkFile)' == ''">$(BaseIntermediateOutputPath)sourcelink.json</SourceLinkFile> | ||
<SourceLinkNotInGit Condition="'$(SourceLinkNotInGit)' == ''">embed</SourceLinkNotInGit> | ||
<SourceLinkHashMismatch Condition="'$(SourceLinkHashMismatch)' == ''">embed</SourceLinkHashMismatch> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<SourceLinkSources Condition="'@(SourceLinkSources)' == ''" Include="@(Compile)" Exclude="@(EmbeddedFiles)" /> | ||
</ItemGroup> | ||
|
||
<Target Name="SourceLinkCreate"> | ||
<SourceLink.Create.GitHub.CreateTask | ||
GitDirectory="$(SourceLinkGitDirectory)" | ||
Url="$(SourceLinkUrl)" | ||
File="$(SourceLinkFile)" | ||
Sources="@(SourceLinkSources)" | ||
NoAutoLF="$(SourceLinkNoAutoLF)" | ||
EmbeddedFilesIn="@(EmbeddedFiles)"> | ||
<Output PropertyName="SourceLink" TaskParameter="SourceLink" /> | ||
<Output ItemName="EmbeddedFiles" TaskParameter="EmbeddedFiles" /> | ||
</SourceLink.Create.GitHub.CreateTask> | ||
</Target> | ||
|
||
<Project> | ||
<Import Condition="'$(MSBuildRuntimeType)' == 'Core'" Project="SourceLink.Create.GitHub.Core.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Project> | ||
<UsingTask TaskName="SourceLink.Test.TestTask" AssemblyFile="SourceLink.Test.dll" /> | ||
|
||
<PropertyGroup> | ||
<!-- enable only in CI environments by default --> | ||
<!-- enable on AppVeyor and Travis CI, detect CI environment variable --> | ||
<SourceLinkTest Condition="'$(SourceLinkTest)' == ''">$(CI)</SourceLinkTest> | ||
<!-- enable on Jenkins and TeamCity, detect BUILD_NUMBER environment variable --> | ||
<SourceLinkTest Condition="'$(SourceLinkTest)' == '' and '$(BUILD_NUMBER)' != ''">true</SourceLinkTest> | ||
<CompileDependsOn Condition="'$(SourceLinkTest)' == 'true' and ($(DebugType) == 'portable' or $(DebugType) == 'embedded')">$(CompileDependsOn);SourceLinkTest</CompileDependsOn> | ||
<SourceLinkPdb Condition="'$(SourceLinkPdb)' == ''">$(PdbFile)</SourceLinkPdb> | ||
<SourceLinkPdb Condition="'$(SourceLinkPdb)' == '' and $(DebugType) == 'portable'">$(IntermediateOutputPath)$(TargetName).pdb</SourceLinkPdb> | ||
<SourceLinkPdb Condition="'$(SourceLinkPdb)' == '' and $(DebugType) == 'embedded'">$(IntermediateOutputPath)$(TargetName).dll</SourceLinkPdb> | ||
</PropertyGroup> | ||
|
||
<Target Name="SourceLinkTest"> | ||
<SourceLink.Test.TestTask Pdb="$(SourceLinkPdb)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<UsingTask TaskName="SourceLink.Test.TestTask" AssemblyFile="SourceLink.Test.dll" /> | ||
|
||
<PropertyGroup> | ||
<!-- enable only in CI environments by default --> | ||
<SourceLinkTest Condition="'$(SourceLinkTest)' == ''">$(CI)</SourceLinkTest> | ||
<CompileDependsOn Condition="'$(SourceLinkTest)' == 'true' and ($(DebugType) == 'portable' or $(DebugType) == 'embedded')">$(CompileDependsOn);SourceLinkTest</CompileDependsOn> | ||
<SourceLinkPdb Condition="'$(SourceLinkPdb)' == ''">$(PdbFile)</SourceLinkPdb> | ||
<SourceLinkPdb Condition="'$(SourceLinkPdb)' == '' and $(DebugType) == 'portable'">$(IntermediateOutputPath)$(TargetName).pdb</SourceLinkPdb> | ||
<SourceLinkPdb Condition="'$(SourceLinkPdb)' == '' and $(DebugType) == 'embedded'">$(IntermediateOutputPath)$(TargetName).dll</SourceLinkPdb> | ||
</PropertyGroup> | ||
|
||
<Target Name="SourceLinkTest"> | ||
<SourceLink.Test.TestTask Pdb="$(SourceLinkPdb)" /> | ||
</Target> | ||
<Project> | ||
<Import Condition="'$(MSBuildRuntimeType)' == 'Core'" Project="SourceLink.Test.Core.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.