2017-03-22 02:02:20 +00:00
<Project>
2018-03-19 19:31:16 +00:00
2017-03-24 00:25:40 +00:00
<Target Name="GenerateMSBuildExtensions"
2018-06-26 05:38:01 +00:00
DependsOnTargets="GenerateBundledVersionsProps;GenerateBundledCliToolsProps" />
2017-06-08 00:27:34 +00:00
2018-01-17 18:13:41 +00:00
<Target Name="GenerateBundledVersionsProps" DependsOnTargets="RunResolvePackageDependencies">
2017-03-24 00:25:40 +00:00
<PropertyGroup>
<BundledVersionsPropsFileName>Microsoft.NETCoreSdk.BundledVersions.props</BundledVersionsPropsFileName>
</PropertyGroup>
2017-03-22 02:02:20 +00:00
2018-03-19 19:31:16 +00:00
<!--
2017-03-22 02:02:20 +00:00
The bundled version of Microsoft.NETCore.App is determined statically from DependencyVersions.props whereas the bundled version
of NETStandard.Library is defined by what Microsoft.NETCore.App pulls in. This digs in to the package resolution items of
of our build against Microsoft.NETCore.App to find the correct NETStandard.Library version
-->
<ItemGroup>
2018-02-07 22:28:13 +00:00
<_NETStandardLibraryPackageVersions Include="@(PackageDefinitions->'%(Version)')"
2017-03-22 02:02:20 +00:00
Condition="%(PackageDefinitions.Name) == 'NetStandard.Library'" />
2018-02-07 22:28:13 +00:00
<_NETCorePlatformsPackageVersions Include="@(PackageDefinitions->'%(Version)')"
2018-01-20 01:15:34 +00:00
Condition="%(PackageDefinitions.Name) == 'Microsoft.NETCore.Platforms'" />
2017-03-22 02:02:20 +00:00
</ItemGroup>
2018-02-07 22:28:13 +00:00
<Error Condition="@(_NETStandardLibraryPackageVersions->Distinct()->Count()) != 1"
2017-03-22 02:02:20 +00:00
Text="Failed to determine the NETStandard.Library version pulled in Microsoft.NETCore.App" />
2018-02-07 22:28:13 +00:00
<Error Condition="@(_NETCorePlatformsPackageVersions->Distinct()->Count()) != 1"
Text="Failed to determine the Microsoft.NETCore.Platforms version pulled in Microsoft.NETCore.App" />
2017-03-22 02:02:20 +00:00
<PropertyGroup>
2017-12-02 04:07:48 +00:00
<_NETCoreAppPackageVersion>$(MicrosoftNETCoreAppPackageVersion)</_NETCoreAppPackageVersion>
2018-02-07 22:28:13 +00:00
<_NETStandardLibraryPackageVersion>@(_NETStandardLibraryPackageVersions->Distinct())</_NETStandardLibraryPackageVersion>
<_NETCorePlatformsPackageVersion>@(_NETCorePlatformsPackageVersions->Distinct())</_NETCorePlatformsPackageVersion>
2018-04-18 07:31:15 +00:00
<_AspNetCoreAllPackageVersion>$(MicrosoftAspNetCoreAllPackageVersion)</_AspNetCoreAllPackageVersion>
<_AspNetCoreAppPackageVersion>$(MicrosoftAspNetCoreAppPackageVersion)</_AspNetCoreAppPackageVersion>
2017-03-22 02:02:20 +00:00
2018-05-31 00:45:17 +00:00
<!-- Default aspnetcore patch versions, specified as a stabilized version -->
<_DefaultPatchVersionForAspNetCoreAll2_1>2.1.1</_DefaultPatchVersionForAspNetCoreAll2_1>
<_DefaultPatchVersionForAspNetCoreApp2_1>$(_DefaultPatchVersionForAspNetCoreAll2_1)</_DefaultPatchVersionForAspNetCoreApp2_1>
2018-06-01 19:01:42 +00:00
<!-- If we are currently building a prerelease of the version that we intend to lock to, set the default version to the ingested version instead of the stabilized version. -->
<_DefaultPatchVersionForAspNetCoreAll2_1 Condition="$(_AspNetCoreAllPackageVersion.StartsWith('$(_DefaultPatchVersionForAspNetCoreAll2_1)-'))">$(_AspNetCoreAllPackageVersion)</_DefaultPatchVersionForAspNetCoreAll2_1>
<_DefaultPatchVersionForAspNetCoreApp2_1 Condition="$(_AspNetCoreAppPackageVersion.StartsWith('$(_DefaultPatchVersionForAspNetCoreApp2_1)-'))">$(_AspNetCoreAppPackageVersion)</_DefaultPatchVersionForAspNetCoreApp2_1>
2018-05-31 00:45:17 +00:00
2017-03-22 02:02:20 +00:00
<!-- Use only major and minor in target framework version -->
<_NETCoreAppTargetFrameworkVersion>$(_NETCoreAppPackageVersion.Split('.')[0]).$(_NETCoreAppPackageVersion.Split('.')[1])</_NETCoreAppTargetFrameworkVersion>
2018-02-07 22:28:13 +00:00
<_NETStandardTargetFrameworkVersion>$(_NETStandardLibraryPackageVersion.Split('.')[0]).$(_NETStandardLibraryPackageVersion.Split('.')[1])</_NETStandardTargetFrameworkVersion>
2018-04-18 07:31:15 +00:00
<_AspNetCoreAllTargetFrameworkVersion>$(_NETCoreAppTargetFrameworkVersion)</_AspNetCoreAllTargetFrameworkVersion>
<_AspNetCoreAppTargetFrameworkVersion>$(_AspNetCoreAllTargetFrameworkVersion)</_AspNetCoreAppTargetFrameworkVersion>
2017-03-22 02:02:20 +00:00
2018-05-14 20:43:09 +00:00
<_NETCoreSdkIsPreview Condition=" '$(DropSuffix)' != 'true' ">true</_NETCoreSdkIsPreview>
2018-05-01 00:49:09 +00:00
</PropertyGroup>
2018-06-21 17:40:44 +00:00
<!--
Setting the property to true if patch == 0 and preview == true. SDK will set DefaultNetCorePatchVersion according to this flag.
So that we don't need to manually update the version selection logic between when we ship a final release and when we ship the first patch
-->
<GetUseBundledNETCoreAppPackageVersionAsDefaultNetCorePatchVersion
2018-07-19 04:18:27 +00:00
BundledNETCoreAppPackageVersion="$(_NETCoreAppPackageVersion)">
2018-06-21 17:40:44 +00:00
<Output TaskParameter="UseBundledNETCoreAppPackageVersionAsDefaultNetCorePatchVersion"
PropertyName="_UseBundledNETCoreAppPackageVersionAsDefaultNetCorePatchVersion" />
</GetUseBundledNETCoreAppPackageVersionAsDefaultNetCorePatchVersion>
2018-05-01 00:49:09 +00:00
<ItemGroup>
<BundledVersionsVariable Include="BundledAspNetCoreAllTargetFrameworkVersion" Value="$(_AspNetCoreAllTargetFrameworkVersion)" />
<BundledVersionsVariable Include="BundledAspNetCoreAllPackageVersion" Value="$(_AspNetCoreAllPackageVersion)" />
<BundledVersionsVariable Include="BundledAspNetCoreAppTargetFrameworkVersion" Value="$(_AspNetCoreAppTargetFrameworkVersion)" />
<BundledVersionsVariable Include="BundledAspNetCoreAppPackageVersion" Value="$(_AspNetCoreAppPackageVersion)" />
</ItemGroup>
2018-02-17 05:56:03 +00:00
2018-05-01 00:49:09 +00:00
<ItemGroup Condition=" '$(IncludeAspNetCoreRuntime)' == 'false' ">
<!--
These properties indicate that the ASP.NET Core shared runtime is not bundled on this platform, so the SDK should not
treat these packages as the 'platform' base.
The bundled aspnet packages versions should still be set, however, so the default, version-less PackageReference
still works.
See also https://github.com/aspnet/Universe/pull/1130.
-->
<BundledVersionsVariable Include="_AspNetCoreAppSharedFxIsEnabled" Value="false" />
<BundledVersionsVariable Include="_AspNetCoreAllSharedFxIsEnabled" Value="false" />
</ItemGroup>
<PropertyGroup>
2017-03-22 02:02:20 +00:00
<BundledVersionsPropsContent>
<![CDATA[
<!--
***********************************************************************************************
$(BundledVersionsPropsFileName)
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project>
<PropertyGroup>
2018-07-07 00:57:16 +00:00
<NETCoreAppMaximumVersion>$(_NETCoreAppTargetFrameworkVersion)</NETCoreAppMaximumVersion>
2017-03-22 02:02:20 +00:00
<BundledNETCoreAppTargetFrameworkVersion>$(_NETCoreAppTargetFrameworkVersion)</BundledNETCoreAppTargetFrameworkVersion>
<BundledNETCoreAppPackageVersion>$(_NETCoreAppPackageVersion)</BundledNETCoreAppPackageVersion>
2018-06-21 17:40:44 +00:00
<UseBundledNETCoreAppPackageVersionAsDefaultNetCorePatchVersion>$(_UseBundledNETCoreAppPackageVersionAsDefaultNetCorePatchVersion)</UseBundledNETCoreAppPackageVersionAsDefaultNetCorePatchVersion>
2017-03-22 02:02:20 +00:00
<BundledNETStandardTargetFrameworkVersion>$(_NETStandardTargetFrameworkVersion)</BundledNETStandardTargetFrameworkVersion>
2018-02-07 22:28:13 +00:00
<BundledNETStandardPackageVersion>$(_NETStandardLibraryPackageVersion)</BundledNETStandardPackageVersion>
<BundledNETCorePlatformsPackageVersion>$(_NETCorePlatformsPackageVersion)</BundledNETCorePlatformsPackageVersion>
2018-05-01 00:49:09 +00:00
@(BundledVersionsVariable->'<%(Identity)>%(Value)</%(Identity)>', '%0A ')
2018-02-17 05:56:03 +00:00
<NETCoreSdkVersion>$(SdkVersion)</NETCoreSdkVersion>
<_NETCoreSdkIsPreview>$(_NETCoreSdkIsPreview)</_NETCoreSdkIsPreview>
2018-04-18 07:31:15 +00:00
2018-08-22 23:08:10 +00:00
<AddDotnetfeedProjectSource Condition="'%24(AddDotnetfeedProjectSource)' == ''">%24(_NETCoreSdkIsPreview)</AddDotnetfeedProjectSource>
<RestoreAdditionalProjectSources Condition="'%24(AddDotnetfeedProjectSource)' == 'true'">%24(RestoreAdditionalProjectSources);https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json</RestoreAdditionalProjectSources>
2018-05-31 00:45:17 +00:00
<!-- Default patch versions for each minor version of ASP.NET Core -->
<DefaultPatchVersionForAspNetCoreAll2_1>$(_DefaultPatchVersionForAspNetCoreAll2_1)</DefaultPatchVersionForAspNetCoreAll2_1>
<DefaultPatchVersionForAspNetCoreApp2_1>$(_DefaultPatchVersionForAspNetCoreApp2_1)</DefaultPatchVersionForAspNetCoreApp2_1>
2018-03-28 03:26:00 +00:00
<!-- Latest patch versions for each minor version of .NET Core -->
2018-06-21 17:40:44 +00:00
<LatestPatchVersionForNetCore1_0 Condition="'%24(LatestPatchVersionForNetCore1_0)' == ''">1.0.12</LatestPatchVersionForNetCore1_0>
<LatestPatchVersionForNetCore1_1 Condition="'%24(LatestPatchVersionForNetCore1_1)' == ''">1.1.9</LatestPatchVersionForNetCore1_1>
<LatestPatchVersionForNetCore2_0 Condition="'%24(LatestPatchVersionForNetCore2_0)' == ''">2.0.9</LatestPatchVersionForNetCore2_0>
2018-07-27 22:01:22 +00:00
<LatestPatchVersionForNetCore2_1 Condition="'%24(LatestPatchVersionForNetCore2_1)' == ''">2.1.2</LatestPatchVersionForNetCore2_1>
2017-03-22 02:02:20 +00:00
</PropertyGroup>
2018-08-22 23:08:29 +00:00
<ItemGroup>
<KnownFrameworkReference Include="Microsoft.Windows.UI"
RuntimeFrameworkName="Microsoft.Private.WPF"
2018-08-28 21:58:20 +00:00
DefaultRuntimeFrameworkVersion="$(MicrosoftPrivateWpfPackageVersion)"
LatestRuntimeFrameworkVersion="$(MicrosoftPrivateWpfPackageVersion)"
2018-08-22 23:08:29 +00:00
TargetingPackName="Microsoft.Private.WPF"
2018-08-28 21:58:20 +00:00
TargetingPackVersion="$(MicrosoftPrivateWpfPackageVersion)"
2018-08-22 23:08:29 +00:00
/>
<KnownFrameworkReference Include="Microsoft.AspNetCore"
RuntimeFrameworkName="Microsoft.AspNetCore.App"
DefaultRuntimeFrameworkVersion="$(MicrosoftAspNetCoreAppPackageVersion)"
LatestRuntimeFrameworkVersion="$(MicrosoftAspNetCoreAppPackageVersion)"
TargetingPackName="Microsoft.AspNetCore.App"
TargetingPackVersion="$(MicrosoftAspNetCoreAppPackageVersion)"
/>
</ItemGroup>
2017-03-22 02:02:20 +00:00
</Project>
]]>
</BundledVersionsPropsContent>
</PropertyGroup>
2018-06-26 05:38:01 +00:00
<WriteLinesToFile File="$(SdkOutputDirectory)/$(BundledVersionsPropsFileName)"
2017-03-22 02:02:20 +00:00
Lines="$(BundledVersionsPropsContent)"
Overwrite="true" />
</Target>
2018-03-19 19:31:16 +00:00
<Target Name="GenerateBundledCliToolsProps">
<PropertyGroup>
<BundledBundledCliToolsPropsFileName>Microsoft.NETCoreSdk.BundledCliTools.props</BundledBundledCliToolsPropsFileName>
</PropertyGroup>
<PropertyGroup>
<BundledBundledCliToolsPropsContent>
<![CDATA[
<!--
***********************************************************************************************
$(BundledBundledCliToolsPropsFileName)
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project>
<ItemGroup>
@(BundledDotnetTools->HasMetadata('ObsoletesCliTool')->' %3CBundledDotNetCliToolReference Include="%(ObsoletesCliTool)" /%3E','%0A')
</ItemGroup>
</Project>
]]>
</BundledBundledCliToolsPropsContent>
</PropertyGroup>
2018-06-26 05:38:01 +00:00
<WriteLinesToFile File="$(SdkOutputDirectory)/$(BundledBundledCliToolsPropsFileName)"
2018-03-19 19:31:16 +00:00
Lines="$(BundledBundledCliToolsPropsContent)"
Overwrite="true" />
</Target>
2017-03-22 02:02:20 +00:00
</Project>