forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build to be more consistent no matter how you build it.
This is the initial change to switch to using common targets across the repo. This change adds a dir.props and dir.targets file that each project file will import at the top and bottom of the project to default a lot of the common properties and targets.
- Loading branch information
1 parent
34b9c0c
commit 3d95f9c
Showing
20 changed files
with
319 additions
and
523 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
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,12 @@ | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<ProjectDir>$(MSBuildThisFileDirectory)</ProjectDir> | ||
<SourceDir>$(ProjectDir)src\</SourceDir> | ||
<BinDir>$(ProjectDir)bin\</BinDir> | ||
<ToolsDir>$(BinDir)tools\</ToolsDir> | ||
|
||
<NuGetToolPath>$(ToolsDir)NuGet.exe</NuGetToolPath> | ||
<NuGetConfigFile>$(SourceDir)nuget\NuGet.Config</NuGetConfigFile> | ||
<PackagesDir>$(SourceDir)packages\</PackagesDir> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build"> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" /> | ||
|
||
<Target Name="Build"> | ||
<!-- To Serialize we use msbuild's batching functionality '%' to force it to batch all similar projects with the same identity | ||
however since the project names are unique it will essentially force each to run in its own batch --> | ||
<MSBuild Targets="Build" Projects="@(Project)" Condition="'$(SerializeProjects)'=='true'" Properties="Dummy=%(Identity)"/> | ||
<MSBuild Targets="Build" Projects="@(Project)" Condition="'$(SerializeProjects)'!='true'" BuildInParallel="true" /> | ||
</Target> | ||
|
||
<Target Name="Clean"> | ||
<!-- To Serialize we use msbuild's batching functionality '%' to force it to batch all similar projects with the same identity | ||
however since the project names are unique it will essentially force each to run in its own batch --> | ||
<MSBuild Targets="Clean" Projects="@(Project)" Condition="'$(SerializeProjects)'=='true'" Properties="Dummy=%(Identity)"/> | ||
<MSBuild Targets="Clean" Projects="@(Project)" Condition="'$(SerializeProjects)'!='true'" BuildInParallel="true" /> | ||
</Target> | ||
|
||
<Target Name="Rebuild" DependsOnTargets="Clean;Build" /> | ||
|
||
</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
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.