|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | + <PropertyGroup> |
| 4 | + <SourceDirectory>AspNetCore</SourceDirectory> |
| 5 | + </PropertyGroup> |
| 6 | + |
| 7 | + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))/dir.props" /> |
| 8 | + |
| 9 | + <PropertyGroup> |
| 10 | + <BuildCommandArgs>$(BuildCommandArgs) --restore --build --pack</BuildCommandArgs> |
| 11 | + <BuildCommandArgs>$(BuildCommandArgs) --configuration $(Configuration)</BuildCommandArgs> |
| 12 | + <BuildCommandArgs>$(BuildCommandArgs) --ci</BuildCommandArgs> |
| 13 | + <BuildCommandArgs>$(BuildCommandArgs) -bl</BuildCommandArgs> |
| 14 | + |
| 15 | + <LogVerbosityOptOut>true</LogVerbosityOptOut> |
| 16 | + <BuildCommandArgs>$(BuildCommandArgs) -v $(LogVerbosity)</BuildCommandArgs> |
| 17 | + |
| 18 | + <BuildCommand>$(ProjectDirectory)build$(ShellExtension) $(BuildCommandArgs)</BuildCommand> |
| 19 | + |
| 20 | + <TarballOutputDir>$(ProjectDirectory)artifacts/installers/$(Configuration)/</TarballOutputDir> |
| 21 | + <ShippingPackagesOutput>$(ProjectDirectory)artifacts/packages/$(Configuration)/Shipping/</ShippingPackagesOutput> |
| 22 | + <NonShippingPackagesOutput>$(ProjectDirectory)artifacts/packages/$(Configuration)/NonShipping/</NonShippingPackagesOutput> |
| 23 | + <RepoApiImplemented>false</RepoApiImplemented> |
| 24 | + <DependencyVersionInputRepoApiImplemented>true</DependencyVersionInputRepoApiImplemented> |
| 25 | + |
| 26 | + <GlobalJsonFile>$(ProjectDirectory)global.json</GlobalJsonFile> |
| 27 | + <NuGetConfigFile>$(ProjectDirectory)NuGet.config</NuGetConfigFile> |
| 28 | + |
| 29 | + <EnvironmentRestoreSources>$(SourceBuiltPackagesPath)</EnvironmentRestoreSources> |
| 30 | + <EnvironmentRestoreSources Condition="'$(OfflineBuild)' == 'true'">$(EnvironmentRestoreSources)%3B$(ReferencePackagesDir)%3B$(PrebuiltPackagesPath)</EnvironmentRestoreSources> |
| 31 | + <EnvironmentRestoreSources Condition="'$(OfflineBuild)' != 'true'">$(EnvironmentRestoreSources)%3Bhttps://api.nuget.org/v3/index.json</EnvironmentRestoreSources> |
| 32 | + <EnvironmentRestoreSources Condition="'$(OfflineBuild)' != 'true'">$(EnvironmentRestoreSources)%3Bhttps://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore/index.json</EnvironmentRestoreSources> |
| 33 | + <EnvironmentRestoreSources Condition="'$(OfflineBuild)' != 'true'">$(EnvironmentRestoreSources)%3Bhttps://dotnetfeed.blob.core.windows.net/aspnet-blazor/index.json</EnvironmentRestoreSources> |
| 34 | + <EnvironmentRestoreSources Condition="'$(OfflineBuild)' != 'true'">$(EnvironmentRestoreSources)%3Bhttps://dotnetfeed.blob.core.windows.net/dotnet-core/index.json</EnvironmentRestoreSources> |
| 35 | + <EnvironmentRestoreSources Condition="'$(OfflineBuild)' != 'true'">$(EnvironmentRestoreSources)%3Bhttps://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json</EnvironmentRestoreSources> |
| 36 | + <EnvironmentRestoreSources Condition="'$(OfflineBuild)' != 'true'">$(EnvironmentRestoreSources)%3Bhttps://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json</EnvironmentRestoreSources> |
| 37 | + </PropertyGroup> |
| 38 | + |
| 39 | + <ItemGroup> |
| 40 | + <RepositoryReference Include="arcade" /> |
| 41 | + <RepositoryReference Include="aspnetcore-tooling" /> |
| 42 | + <RepositoryReference Include="core-setup" /> |
| 43 | + <RepositoryReference Include="msbuild" /> |
| 44 | + <RepositoryReference Include="roslyn" /> |
| 45 | + </ItemGroup> |
| 46 | + |
| 47 | + <ItemGroup> |
| 48 | + <UseSourceBuiltSdkOverride Include="@(ArcadeSdkOverride)" /> |
| 49 | + </ItemGroup> |
| 50 | + |
| 51 | + <ItemGroup> |
| 52 | + <EnvironmentVariables Include="RestoreSources=$(EnvironmentRestoreSources)" /> |
| 53 | + </ItemGroup> |
| 54 | + |
| 55 | + <Target Name="SetOutputList" AfterTargets="Package" BeforeTargets="GatherBuiltPackages"> |
| 56 | + <ItemGroup> |
| 57 | + <PackagesOutputList Include="$(ShippingPackagesOutput)" /> |
| 58 | + <PackagesOutputList Include="$(NonShippingPackagesOutput)" /> |
| 59 | + </ItemGroup> |
| 60 | + </Target> |
| 61 | + |
| 62 | + <UsingTask AssemblyFile="$(XPlatSourceBuildTasksAssembly)" TaskName="PublishToolsetBinaries" /> |
| 63 | + |
| 64 | + <Target Name="PublishBinaries" AfterTargets="Build"> |
| 65 | + <ItemGroup> |
| 66 | + <AspNetTarballs Include="$(TarballOutputDir)aspnetcore-*.tar.gz" /> |
| 67 | + <ExtraAspNetFiles Include="$(TarballOutputDir)*.version" /> |
| 68 | + </ItemGroup> |
| 69 | + <Message Importance="High" Text="Publishing @(AspNetTarballs) from $(TarballOutputDir) to $(SourceBuiltAspNetCoreRuntime){version}/" /> |
| 70 | + <PublishToolsetBinaries Binaries="@(AspNetTarballs)" |
| 71 | + DestinationFolderTemplate="$(SourceBuiltAspNetCoreRuntime){version}/"> |
| 72 | + <Output TaskParameter="PublishedVersion" PropertyName="PublishedVersion" /> |
| 73 | + </PublishToolsetBinaries> |
| 74 | + <Message Text="Published ASP.NET runtime version $(PublishedVersion)" Importance="High" /> |
| 75 | + <Copy SourceFiles="@(ExtraAspNetFiles)" DestinationFolder="$(SourceBuiltAspNetCoreRuntime)$(PublishedVersion)" Condition="'@(ExtraAspNetFiles)' != ''" /> |
| 76 | + <Message Text="Published extra ASP.NET files @(ExtraAspNetFiles) to $(SourceBuiltAspNetCoreRuntime)$(PublishedVersion)" Importance="High" /> |
| 77 | + </Target> |
| 78 | + |
| 79 | + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))/dir.targets" /> |
| 80 | +</Project> |
0 commit comments