Skip to content

Commit

Permalink
Cleanup workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate McMaster committed Dec 13, 2016
1 parent 2cb4f74 commit ae8fc23
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 32 deletions.
9 changes: 9 additions & 0 deletions build/common.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project>
<Import Project="..\version.props" />
<Import Project="..\.build\common.props" Condition="Exists('..\.build\common.props')" />
<PropertyGroup>
<CustomAfterMicrosoftCommonTargets>$(MSBuildThisFileDirectory)common.targets</CustomAfterMicrosoftCommonTargets>
<RepositoryUrl>https://github.com/aspnet/BuildTools</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
</Project>
11 changes: 11 additions & 0 deletions build/common.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project>
<PropertyGroup>
<BuildDependsOn>$(BuildDependsOn);EnsureInitialized</BuildDependsOn>
</PropertyGroup>
<Target Name="EnsureInitialized"
Condition="!Exists('$(MSBuildThisFileDirectory)..\.build\common.props')">
<!--TODO automagically execute build initialize. Will require changes to KoreBuild to avoid race conditions if invoked multiple times-->
<Error File="$(MSBuildProjectFile)"
Text="Project has not been initialized. Run 'build initialize' in the solution directory '$(MSBuildThisFileDirectory)'" />
</Target>
</Project>
9 changes: 0 additions & 9 deletions dir.props

This file was deleted.

6 changes: 0 additions & 6 deletions makefile.shade
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ k-standard-goals
#xml-docs-test .clean .build-compile description='Check generated XML documentation files for errors' target='test'
k-xml-docs-test

@{/* Workaround https://github.com/dotnet/sdk/issues/423 */}
#re-restore target='initialize'
dotnet command='msbuild src/SplitPackages/SplitPackages.csproj /t:Restore /p:TargetFramework=net451'
dotnet command='msbuild test/ApiCheck.Test/ApiCheck.Test.csproj /t:Restore /p:TargetFramework=net452'
dotnet command='msbuild src/Microsoft.AspNetCore.BuildTools.ApiCheck/Microsoft.AspNetCore.BuildTools.ApiCheck.csproj /t:Restore /p:TargetFramework=net451'

#nuget-pack target='package'
@{
var configuration = E("Configuration");
Expand Down
2 changes: 1 addition & 1 deletion src/DependenciesPackager/DependenciesPackager.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />

<PropertyGroup>
<Description>Creates a zip package with the expanded version of our nuget packages that can be used as a local cache</Description>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />
<PropertyGroup>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>netcoreapp1.0;net451</TargetFrameworks>
<RuntimeIdentifier Condition="'$(TargetFramework)'=='net451'">win7-x64</RuntimeIdentifier>
<RuntimeIdentifier Condition=" '$(TargetFramework)'!='netcoreapp1.0' ">win7-x64</RuntimeIdentifier>
<OutputType>exe</OutputType>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />

<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetPackageVerifier/NuGetPackageVerifier.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />

<PropertyGroup>
<Description>Verifies Asp.Net Core NuGet packages.</Description>
Expand Down
2 changes: 1 addition & 1 deletion src/PackageCacheUploader/PackageCacheUploader.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />

<PropertyGroup>
<Description>Creates a zip package with the expanded version of our nuget packages that can be used as a local cache</Description>
Expand Down
4 changes: 2 additions & 2 deletions src/PackageClassifier/PackageClassifier.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />

<PropertyGroup>
<Description>Classifies a set of packages from several directories based on information from a csv file</Description>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>netstandard1.6;net451</TargetFrameworks>
<RuntimeIdentifier Condition="'$(TargetFramework)'=='net451'">win7-x64</RuntimeIdentifier>
<OutputType>library</OutputType>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/SplitPackages/SplitPackages.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />
<PropertyGroup>
<Description>Copies NuGet packages form a given source folder into a specific set of folders based on a CSV file.</Description>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>netcoreapp1.0;net451</TargetFrameworks>
<RuntimeIdentifier Condition="'$(TargetFramework)'=='net451'">win7-x64</RuntimeIdentifier>
<RuntimeIdentifier Condition=" '$(TargetFramework)'!='netcoreapp1.0' ">win7-x64</RuntimeIdentifier>
<DebugType>portable</DebugType>
<OutputType>exe</OutputType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/VersionTool/VersionTool.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />

<PropertyGroup>
<TargetFramework>netcoreapp1.0</TargetFramework>
Expand Down
4 changes: 2 additions & 2 deletions test/ApiCheck.Test/ApiCheck.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />
<PropertyGroup>
<TargetFrameworks>netcoreapp1.0;net452</TargetFrameworks>
<RuntimeIdentifier Condition="'$(TargetFramework)'=='net452'">win7-x64</RuntimeIdentifier>
<RuntimeIdentifier Condition=" '$(TargetFramework)'!='netcoreapp1.0' ">win7-x64</RuntimeIdentifier>
<OutputType>exe</OutputType>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions test/ApiCheckBaseline.V1/ApiCheckBaseline.V1.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />

<PropertyGroup>
<TargetFrameworks>netstandard1.6;net452</TargetFrameworks>
<RuntimeIdentifier Condition="'$(TargetFramework)' == 'net452'">win7-x64</RuntimeIdentifier>
<RuntimeIdentifier Condition=" '$(TargetFramework)'!='netcoreapp1.0' ">win7-x64</RuntimeIdentifier>
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netstandard1.6' ">$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions test/ApiCheckBaseline.V2/ApiCheckBaseline.V2.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\..\build\common.props" />

<PropertyGroup>
<TargetFrameworks>netstandard1.6;net452</TargetFrameworks>
<RuntimeIdentifier Condition=" '$(TargetFramework)' == 'net452' ">win7-x64</RuntimeIdentifier>
<RuntimeIdentifier Condition=" '$(TargetFramework)'!='netcoreapp1.0' ">win7-x64</RuntimeIdentifier>
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netstandard1.6' ">$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
</PropertyGroup>

Expand Down

0 comments on commit ae8fc23

Please sign in to comment.