This repository has been archived by the owner on May 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move build-compile and build-pack targets to the MSBuild lifecycle
- Loading branch information
Nate McMaster
committed
Feb 3, 2017
1 parent
0e30b52
commit 7228b4e
Showing
6 changed files
with
84 additions
and
82 deletions.
There are no files selected for viewing
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,4 @@ | ||
# ignore packages that are installed into this folder when KoreBuild is symlinked | ||
sake/ | ||
nugetpackageverifier/ | ||
netframeworkreferenceassemblies/ |
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,6 +1,7 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<BuildDir>$(RepositoryRoot)\build</BuildDir> | ||
<ArtifactsDir>$(BuildDir)\artifacts</ArtifactsDir> | ||
<RepositoryRoot Condition="'$(RepositoryRoot)'==''">$(MSBuildThisFileDirectory)..\..\</RepositoryRoot> | ||
<ArtifactsDir>$(RepositoryRoot)\artifacts</ArtifactsDir> | ||
<BuildDir>$(ArtifactsDir)\build</BuildDir> | ||
</PropertyGroup> | ||
</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,14 +1,13 @@ | ||
<Project DefaultTarget="Default"> | ||
<PropertyGroup> | ||
<UseLegacyLifecycle Condition="'$(UseLegacyLifecycle)'==''">true</UseLegacyLifecycle> | ||
<UseStandardLifecycle Condition="'$(UseLegacyLifecycle)'!='true' AND '$(UseStandardLifecycle)'==''">true</UseStandardLifecycle> | ||
<LifecycleType Condition="'$(LifecycleType)'==''">Legacy</LifecycleType> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)\common.props" /> | ||
<Import Project="$(RepositoryRoot)build\repo.props" Condition="Exists('$(RepositoryRoot)build\repo.props')" /> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)\legacy-lifecycle.targets" Condition="'$(UseLegacyLifecycle)'=='true'" /> | ||
<Import Project="$(MSBuildThisFileDirectory)\standard-lifecycle.targets" Condition="'$(UseStandardLifecycle)'=='true'" /> | ||
<Import Project="$(MSBuildThisFileDirectory)\legacy-lifecycle.targets" Condition="'$(LifecycleType)'=='Legacy'" /> | ||
<Import Project="$(MSBuildThisFileDirectory)\standard-lifecycle.targets" Condition="'$(LifecycleType)'=='Standard'" /> | ||
|
||
<Import Project="$(RepositoryRoot)build\repo.targets" Condition="Exists('$(RepositoryRoot)build\repo.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 |
---|---|---|
@@ -1,17 +1,53 @@ | ||
<Project> | ||
<Target Name="Default" DependsOnTargets="Build" /> | ||
|
||
<Target Name="Build" DependsOnTargets="Clean;Initialize;Compile;Test;Verify;Publish" /> | ||
<PropertyGroup> | ||
<Configuration>Debug</Configuration> | ||
</PropertyGroup> | ||
|
||
<Target Name="Clean" /> | ||
<ItemGroup> | ||
<SolutionsToBuild Include="$(RepositoryRoot)\*.sln" /> | ||
<ProjectsToPack Include="$(RepositoryRoot)\src\*\*.*proj" /> | ||
</ItemGroup> | ||
|
||
<Target Name="Initialize" /> | ||
<!-- default targets --> | ||
|
||
<Target Name="Compile" /> | ||
<Target Name="Default" DependsOnTargets="Clean;Restore;Rebuild;Pack;Test;Verify;Publish" /> | ||
|
||
<Target Name="Test" /> | ||
<Target Name="Clean"> | ||
<RemoveDir Directories="$(ArtifactsDir)" /> | ||
</Target> | ||
|
||
<Target Name="Restore"> | ||
<MSBuild Targets="Restore" | ||
Projects="@(SolutionsToBuild)" | ||
Properties="Configuration=$(Configuration)" /> | ||
</Target> | ||
|
||
<Target Name="Rebuild"> | ||
<MSBuild Targets="Rebuild" | ||
Projects="@(SolutionsToBuild)" | ||
Properties="Configuration=$(Configuration)" /> | ||
</Target> | ||
|
||
<Target Name="Pack"> | ||
<!-- TODO consider using GeneratePackageOnBuild. Requires setting IsPackable=false on test and samples --> | ||
<MSBuild Targets="Pack" | ||
Projects="@(ProjectsToPack)" | ||
Properties="Configuration=$(Configuration);PackageOutputPath=$(BuildDir)" /> | ||
</Target> | ||
|
||
<Target Name="Test" /> | ||
<Target Name="Verify" /> | ||
|
||
<Target Name="Publish" /> | ||
|
||
<!-- convenience targets --> | ||
|
||
<!-- build without cleaning --> | ||
<Target Name="Build"> | ||
<MSBuild Targets="Build" | ||
Projects="@(SolutionsToBuild)" | ||
Properties="Configuration=$(Configuration)" /> | ||
</Target> | ||
|
||
</Project> |