Remove project-targets from KoreBuild

This commit is contained in:
Nate McMaster 2017-01-10 11:52:16 -08:00
Родитель 2d237ee4b1
Коммит f20683a4d4
5 изменённых файлов: 10 добавлений и 164 удалений

Просмотреть файл

@ -1,47 +0,0 @@
<Project>
<!-- common package options -->
<PropertyGroup>
<NeutralLanguage>en-US</NeutralLanguage>
<Company>Microsoft Corporation.</Company>
<Authors>Microsoft</Authors>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<ProjectUrl>https://asp.net</ProjectUrl>
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<Serviceable Condition="'$(Configuration)' == 'Release'">true</Serviceable>
</PropertyGroup>
<!-- common build options -->
<PropertyGroup>
<WarningsAsErrors>true</WarningsAsErrors> <!-- make disabling warnings opt-out -->
<CustomAfterMicrosoftCommonTargets>$(MSBuildThisFileDirectory)targets\Internal.AspNetCore.Common.targets</CustomAfterMicrosoftCommonTargets>
<CustomAfterMicrosoftCommonCrossTargetingTargets>$(MSBuildThisFileDirectory)targets\Internal.AspNetCore.Common.targets</CustomAfterMicrosoftCommonCrossTargetingTargets>
</PropertyGroup>
<!-- version options -->
<PropertyGroup>
<!--
Create second-based build number for local builds.
635556672000000000 is Jan 1, 2015.
-->
<_SecondBasedTimeStamp>$([System.DateTime]::UtcNow.Subtract($([System.DateTime]::FromBinary(635556672000000000))).TotalSeconds.ToString("F0"))</_SecondBasedTimeStamp>
<_SecondBasedTimeStamp>t$([System.Int64]::Parse($(_SecondBasedTimeStamp)).ToString("x9"))</_SecondBasedTimeStamp>
<!-- for aspnet CI -->
<BuildNumber Condition="'$(BuildNumber)'==''">$(KOREBUILD_BUILD_NUMBER)</BuildNumber>
<!-- fallback build number if not set by KoreBuild-->
<BuildNumber Condition="'$(BuildNumber)'==''">$(_SecondBasedTimeStamp)</BuildNumber>
<VersionSuffix Condition="'$(VersionSuffix)'!='' AND '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
<VersionSuffix Condition="'$(VersionSuffix)'==''">$(BuildNumber)</VersionSuffix>
<PackWithoutBuildNumber Condition="'$(PackWithoutBuildNumber)'==''">false</PackWithoutBuildNumber>
</PropertyGroup>
<!-- PackWithoutBuildNumber only works if 'VersionPrefix' is in use. -->
<PropertyGroup Condition="$(PackWithoutBuildNumber) AND '$(VersionPrefix)' != ''">
<PackageVersion>$(VersionPrefix)</PackageVersion>
<PackageVersion Condition="'$(VersionSuffix)' != ''">$(PackageVersion)-$(VersionSuffix)-final</PackageVersion>
</PropertyGroup>
</Project>

Просмотреть файл

@ -1,16 +0,0 @@
<!--
Copyright (c) .NET Foundation. All rights reserved.
Licensed under the Apache License, Version 2.0.
WARNING: This file is meant for building Microsoft's ASP.NET Core repos, and is not intended
for use outside of Microsoft.
-->
<Project>
<PropertyGroup>
<_IsCrossTargeting Condition="'$(TargetFrameworks)'!='' AND '$(TargetFramework)'==''">true</_IsCrossTargeting>
</PropertyGroup>
<Import Project="Workarounds.CrossTargeting.targets" Condition="'$(_IsCrossTargeting)'=='true'" />
<Import Project="Workarounds.targets" Condition="'$(_IsCrossTargeting)'!='true'" />
</Project>

Просмотреть файл

@ -1,41 +0,0 @@
<!--
Copyright (c) .NET Foundation. All rights reserved.
Licensed under the Apache License, Version 2.0.
WARNING: This file is meant for building Microsoft's ASP.NET Core repos, and is not intended
for use outside of Microsoft.
-->
<Project>
<!-- workaround https://github.com/NuGet/Home/issues/4063 -->
<!-- workaround https://github.com/NuGet/Home/issues/3953 -->
<Target Name="ResolveActualPackageVersions" BeforeTargets="GenerateNuspec">
<ItemGroup>
<_TargetFramework Include="$(TargetFrameworks)" />
</ItemGroup>
<MSBuild Projects="$(MSBuildProjectFile)"
Targets="ResolvePackageDependenciesDesignTime"
Properties="TargetFramework=%(_TargetFramework.Identity)">
<Output TaskParameter="TargetOutputs" ItemName="_DependenciesDesignTime" />
</MSBuild>
<ItemGroup>
<_ProjectReferences Update="@(_ProjectReferences)" Condition="'%(PackageVersion)'==''">
<PackageVersion>$(Version)</PackageVersion>
</_ProjectReferences>
<_FloatingVersions Include="@(_PackageReferences)" Condition="$([System.String]::new('%(Version)').EndsWith('*'))" />
<_ResolvedFloatingVersion Include="@(_FloatingVersions)">
<ResolvedName>%(_DependenciesDesignTime.Name)</ResolvedName>
<Version>%(_DependenciesDesignTime.Version)</Version>
</_ResolvedFloatingVersion>
<_PackageReferences Remove="@(_PackageReferences)" Condition="$([System.String]::new('%(Version)').EndsWith('*'))" />
<_PackageReferences Include="@(_ResolvedFloatingVersion)" Condition="'%(Identity)'=='%(_ResolvedFloatingVersion.ResolvedName)'" />
</ItemGroup>
<Message Importance="Normal" Text="Proj: %(_ProjectReferences.FileName) %(_ProjectReferences.PackageVersion)" />
<Message Importance="Normal" Text="Pkg: %(_PackageReferences.Identity) %(_PackageReferences.Version)" />
</Target>
<!-- end workaround -->
</Project>

Просмотреть файл

@ -1,53 +0,0 @@
<!--
Copyright (c) .NET Foundation. All rights reserved.
Licensed under the Apache License, Version 2.0.
WARNING: This file is meant for building Microsoft's ASP.NET Core repos, and is not intended
for use outside of Microsoft.
-->
<!-- this file is dedicated to working around bugs in Microsoft.NET.Sdk RC.2 release -->
<Project>
<!-- workaround https://github.com/Microsoft/vstest/issues/191 -->
<PropertyGroup
Condition="$(MSBuildProjectName.EndsWith('Test')) OR $(MSBuildProjectName.EndsWith('Tests'))">
<OutputType Condition="$(TargetFramework.StartsWith('netcoreapp'))">exe</OutputType>
</PropertyGroup>
<!-- end workaround -->
<!-- workaround https://github.com/NuGet/Home/issues/4063 -->
<!-- workaround https://github.com/NuGet/Home/issues/3953 -->
<Target Name="ResolveActualPackageVersions"
BeforeTargets="GenerateNuSpec"
DependsOnTargets="ResolvePackageDependenciesDesignTime">
<ItemGroup>
<_Tmp Include="@(_ProjectReferences)" />
<_ProjectReferences Remove="@(_ProjectReferences)" />
<_ProjectReferences Include="@(_Tmp)">
<PackageVersion>$(Version)</PackageVersion>
</_ProjectReferences>
<_FloatingVersions Include="@(_PackageReferences)" Condition="$([System.String]::new('%(Version)').EndsWith('*'))" />
<_ResolvedFloatingVersion Include="@(_FloatingVersions)">
<ResolvedName>%(_DependenciesDesignTime.Name)</ResolvedName>
<Version>%(_DependenciesDesignTime.Version)</Version>
</_ResolvedFloatingVersion>
<_PackageReferences Remove="@(_PackageReferences)" Condition="$([System.String]::new('%(Version)').EndsWith('*'))" />
<_PackageReferences Include="@(_ResolvedFloatingVersion)" Condition="'%(Identity)'=='%(_ResolvedFloatingVersion.ResolvedName)'" />
</ItemGroup>
<Message Importance="Normal" Text="Proj: %(_ProjectReferences.FileName) %(_ProjectReferences.PackageVersion)" />
<Message Importance="Normal" Text="Pkg: %(_PackageReferences.Identity) %(_PackageReferences.Version)" />
</Target>
<!-- end workaround -->
<!-- workaround https://github.com/dotnet/sdk/issues/490 -->
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)..\contentFiles\cs\any\AssemblyInfo.Serviceable.cs"
Condition="'$(DesignTimeBuild)'!='true'"
Visible="false" />
<!-- checking DesignTimeBuild hides the file from from VS solution explorer which does not yet support 'Visible' -->
</ItemGroup>
<!-- end workaround -->
</Project>

Просмотреть файл

@ -1,12 +1,15 @@
<Project>
<Import Project="..\version.props" />
<Import Project="..\.build\common.props" Condition="Exists('..\.build\common.props')" />
<Target Name="EnsureInitialized"
BeforeTargets="Build"
Condition="!Exists('$(MSBuildThisFileDirectory)..\.build\common.props')">
<Error File="$(MSBuildProjectFile)"
Text="Project has not been initialized. Run 'build initialize' in the solution directory." />
</Target>
<ItemGroup>
<PackageReference Include="Internal.AspNetCore.Sdk" Version="1.0.0-*" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup>
<RepositoryUrl>https://github.com/aspnet/Korebuild</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Product>Microsoft ASP.NET Core</Product>
<!-- Include other common properties here, such as strong-naming settings -->
</PropertyGroup>
</Project>