Remove All metapackage and runtime store infrastructure (#244)

This commit is contained in:
Nate McMaster 2017-10-25 17:39:32 -07:00 committed by GitHub
parent fcdd25635c
commit b49ffc9e9e
34 changed files with 15 additions and 1899 deletions

View File

@ -9,8 +9,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{ED834E68-51C
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore", "src\Microsoft.AspNetCore\Microsoft.AspNetCore.csproj", "{6F3D43F7-9546-4B41-AF04-CF4708B62051}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.All", "src\Microsoft.AspNetCore.All\Microsoft.AspNetCore.All.csproj", "{CC8F551E-213A-45E8-AECA-507C4DB4F164}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{97D53BEB-A511-4FBE-B784-AB407D9A219F}"
ProjectSection(SolutionItems) = preProject
Directory.Build.props = Directory.Build.props
@ -43,8 +41,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StartRequestDelegateUrlApp"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CreateDefaultBuilderApp", "test\TestSites\CreateDefaultBuilderApp\CreateDefaultBuilderApp.csproj", "{79CF58CE-B020-45D8-BDB5-2D8036BEAD14}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TrimDeps", "tools\TrimDeps\TrimDeps.csproj", "{67E4C92F-6D12-4C52-BB79-B8D11BFC6B82}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DependencyInjectionApp", "test\TestSites\DependencyInjectionApp\DependencyInjectionApp.csproj", "{65FE2E38-4529-4C93-A7B0-CF12DD7A70C3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CreateDefaultBuilderOfTApp", "test\TestSites\CreateDefaultBuilderOfTApp\CreateDefaultBuilderOfTApp.csproj", "{A922B5AC-836B-44F4-83F1-3CB9EB08A3F8}"
@ -61,10 +57,6 @@ Global
{6F3D43F7-9546-4B41-AF04-CF4708B62051}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6F3D43F7-9546-4B41-AF04-CF4708B62051}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F3D43F7-9546-4B41-AF04-CF4708B62051}.Release|Any CPU.Build.0 = Release|Any CPU
{CC8F551E-213A-45E8-AECA-507C4DB4F164}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CC8F551E-213A-45E8-AECA-507C4DB4F164}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CC8F551E-213A-45E8-AECA-507C4DB4F164}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CC8F551E-213A-45E8-AECA-507C4DB4F164}.Release|Any CPU.Build.0 = Release|Any CPU
{AF5BB04E-92F7-4737-8B98-F86F6244FAB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AF5BB04E-92F7-4737-8B98-F86F6244FAB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AF5BB04E-92F7-4737-8B98-F86F6244FAB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -89,10 +81,6 @@ Global
{79CF58CE-B020-45D8-BDB5-2D8036BEAD14}.Debug|Any CPU.Build.0 = Debug|Any CPU
{79CF58CE-B020-45D8-BDB5-2D8036BEAD14}.Release|Any CPU.ActiveCfg = Release|Any CPU
{79CF58CE-B020-45D8-BDB5-2D8036BEAD14}.Release|Any CPU.Build.0 = Release|Any CPU
{67E4C92F-6D12-4C52-BB79-B8D11BFC6B82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{67E4C92F-6D12-4C52-BB79-B8D11BFC6B82}.Debug|Any CPU.Build.0 = Debug|Any CPU
{67E4C92F-6D12-4C52-BB79-B8D11BFC6B82}.Release|Any CPU.ActiveCfg = Release|Any CPU
{67E4C92F-6D12-4C52-BB79-B8D11BFC6B82}.Release|Any CPU.Build.0 = Release|Any CPU
{65FE2E38-4529-4C93-A7B0-CF12DD7A70C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{65FE2E38-4529-4C93-A7B0-CF12DD7A70C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{65FE2E38-4529-4C93-A7B0-CF12DD7A70C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -111,8 +99,6 @@ Global
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{6F3D43F7-9546-4B41-AF04-CF4708B62051} = {ED834E68-51C3-4ADE-ACC8-6BA6D4207C09}
{CC8F551E-213A-45E8-AECA-507C4DB4F164} = {ED834E68-51C3-4ADE-ACC8-6BA6D4207C09}
{F92CB7A1-C38E-408C-A7EC-A5C040D041E1} = {97D53BEB-A511-4FBE-B784-AB407D9A219F}
{AF5BB04E-92F7-4737-8B98-F86F6244FAB2} = {192F583C-C4CA-43E5-B31C-D21B7806E274}
{C72A756A-D29D-44C7-83D4-821DBE82DBCA} = {9E49B5B9-9E72-42FB-B684-90CA1B1BCF9C}
{EC22261D-0DE1-47DE-8F7C-072675D6F5B4} = {9E49B5B9-9E72-42FB-B684-90CA1B1BCF9C}
@ -120,7 +106,6 @@ Global
{3A85FA52-F601-422E-A42E-9F187DB28492} = {EC22261D-0DE1-47DE-8F7C-072675D6F5B4}
{401C741B-6C7C-4E08-9F09-C3D43D22C0DE} = {EC22261D-0DE1-47DE-8F7C-072675D6F5B4}
{79CF58CE-B020-45D8-BDB5-2D8036BEAD14} = {EC22261D-0DE1-47DE-8F7C-072675D6F5B4}
{67E4C92F-6D12-4C52-BB79-B8D11BFC6B82} = {ED834E68-51C3-4ADE-ACC8-6BA6D4207C09}
{65FE2E38-4529-4C93-A7B0-CF12DD7A70C3} = {EC22261D-0DE1-47DE-8F7C-072675D6F5B4}
{A922B5AC-836B-44F4-83F1-3CB9EB08A3F8} = {EC22261D-0DE1-47DE-8F7C-072675D6F5B4}
{BD08F027-3BB9-427B-9367-19534B7376B3} = {9E49B5B9-9E72-42FB-B684-90CA1B1BCF9C}

View File

@ -1,13 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="@(FullMetaPackagePackageReference)" />
<ProjectReference Include="@(FullMetaPackageProjectReference)" />
</ItemGroup>
<ItemGroup>
<Content Include="build\**\*.xml" PackagePath="%(Identity)" />
<Content Include="build\**\*.targets" PackagePath="%(Identity)" />
</ItemGroup>
</Project>

View File

@ -5,7 +5,6 @@
<AspNetCoreIntegrationTestingVersion>0.5.0-*</AspNetCoreIntegrationTestingVersion>
<AspNetCoreVersion>2.1.0-*</AspNetCoreVersion>
<!-- Pin versions to work around CLI bug -->
<AspNetCoreVersion Condition="'$(BUILD_PACKAGE_CACHE)' == 'true'">$(VersionPrefix)-$(VersionSuffix)</AspNetCoreVersion>
<CoreFxVersion>4.4.0-*</CoreFxVersion>
<DotnetDebToolVersion>2.0.0-preview2-*</DotnetDebToolVersion>
<InternalAspNetCoreSdkVersion>2.1.1-*</InternalAspNetCoreSdkVersion>
@ -17,192 +16,4 @@
<XunitVersion>2.3.0</XunitVersion>
</PropertyGroup>
<!-- defines the default values for each item type -->
<ItemDefinitionGroup>
<!-- set PrivateAssets=None to ensure that all assets, including Build and Analyzer, are included in the nuspec -->
<MetaPackagePackageReference>
<Version>$(AspNetCoreVersion)</Version>
<PrivateAssets>None</PrivateAssets>
</MetaPackagePackageReference>
<FullMetaPackagePackageReference>
<Version>$(AspNetCoreVersion)</Version>
<PrivateAssets>None</PrivateAssets>
</FullMetaPackagePackageReference>
<HostingStartupPackageReference>
<Version>$(AspNetCoreVersion)</Version>
<PrivateAssets>Compile</PrivateAssets>
</HostingStartupPackageReference>
<RuntimeStorePackageReference>
<Version>$(AspNetCoreVersion)</Version>
<PrivateAssets>None</PrivateAssets>
</RuntimeStorePackageReference>
<FullMetaPackageProjectReference>
<PrivateAssets>None</PrivateAssets>
</FullMetaPackageProjectReference>
</ItemDefinitionGroup>
<ItemGroup>
<MetaPackagePackageReference Include="Microsoft.AspNetCore.Diagnostics" />
<MetaPackagePackageReference Include="Microsoft.AspNetCore.Hosting" />
<MetaPackagePackageReference Include="Microsoft.AspNetCore.Routing" />
<MetaPackagePackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" />
<MetaPackagePackageReference Include="Microsoft.AspNetCore.Server.Kestrel" />
<MetaPackagePackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Https" />
<MetaPackagePackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" />
<MetaPackagePackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" />
<MetaPackagePackageReference Include="Microsoft.Extensions.Configuration.Json" />
<MetaPackagePackageReference Include="Microsoft.Extensions.Configuration.CommandLine" />
<MetaPackagePackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" />
<MetaPackagePackageReference Include="Microsoft.Extensions.Logging" />
<MetaPackagePackageReference Include="Microsoft.Extensions.Logging.Configuration" />
<MetaPackagePackageReference Include="Microsoft.Extensions.Logging.Console" />
<MetaPackagePackageReference Include="Microsoft.Extensions.Logging.Debug" />
</ItemGroup>
<ItemGroup>
<HostingStartupPackageReference Include="Microsoft.AspNetCore.AzureAppServices.HostingStartup" />
<HostingStartupPackageReference Include="Microsoft.AspNetCore.ApplicationInsights.HostingStartup" />
</ItemGroup>
<ItemGroup>
<FullMetaPackagePackageReference Include="@(MetaPackagePackageReference)" />
<FullMetaPackagePackageReference Include="@(HostingStartupPackageReference)" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Antiforgery" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication.Core" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication.Facebook" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication.Google" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication.OAuth" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authorization" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Authorization.Policy" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.AzureAppServicesIntegration" PrivateAssets="Compile" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.CookiePolicy" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Cors" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Cryptography.Internal" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.DataProtection" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.DataProtection.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.DataProtection.AzureKeyVault" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.DataProtection.AzureStorage" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.DataProtection.Extensions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Diagnostics.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Diagnostics.Identity.Service" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Hosting.Server.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Html.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Http" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Http.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Http.Extensions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Http.Features" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.HttpOverrides" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Identity" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Identity.Service" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Identity.Service.Core" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Identity.Service.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Identity.Service.AzureKeyVault" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Identity.Service.EntityFrameworkCore" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Identity.Service.IntegratedWebClient" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Identity.Service.Mvc" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.JsonPatch" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Localization" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Localization.Routing" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.MiddlewareAnalysis" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.ApiExplorer" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.Core" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.Cors" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.DataAnnotations" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.Formatters.Json" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.Formatters.Xml" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.Localization" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.Razor" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.Razor.Extensions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.Razor.ViewCompilation" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.RazorPages" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.TagHelpers" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Mvc.ViewFeatures" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.NodeServices" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Owin" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Razor" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Razor.Language" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Razor.Runtime" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.ResponseCaching" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.ResponseCaching.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.ResponseCompression" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Rewrite" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Routing.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Server.HttpSys" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Core" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.Session" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.SpaServices" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.StaticFiles" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.WebSockets" />
<FullMetaPackagePackageReference Include="Microsoft.AspNetCore.WebUtilities" />
<FullMetaPackagePackageReference Include="Microsoft.CodeAnalysis.Razor" />
<FullMetaPackagePackageReference Include="Microsoft.Data.Sqlite" PrivateAssets="Build" />
<FullMetaPackagePackageReference Include="Microsoft.Data.Sqlite.Core" />
<FullMetaPackagePackageReference Include="Microsoft.EntityFrameworkCore" />
<FullMetaPackagePackageReference Include="Microsoft.EntityFrameworkCore.Design" />
<FullMetaPackagePackageReference Include="Microsoft.EntityFrameworkCore.InMemory" />
<FullMetaPackagePackageReference Include="Microsoft.EntityFrameworkCore.Relational" />
<FullMetaPackagePackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" PrivateAssets="Build" />
<FullMetaPackagePackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" />
<FullMetaPackagePackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" />
<FullMetaPackagePackageReference Include="Microsoft.EntityFrameworkCore.Tools" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Caching.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Caching.Memory" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Caching.Redis" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Caching.SqlServer" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Configuration" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Configuration.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Configuration.Binder" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Configuration.Ini" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Configuration.Xml" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.DependencyInjection" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.DiagnosticAdapter" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.FileProviders.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.FileProviders.Composite" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.FileProviders.Embedded" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.FileProviders.Physical" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.FileSystemGlobbing" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Hosting" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Hosting.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Identity.Core" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Identity.Stores" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Localization" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Localization.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" PrivateAssets="Compile" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Logging.EventSource" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Logging.TraceSource" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.ObjectPool" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Options" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.Primitives" />
<FullMetaPackagePackageReference Include="Microsoft.Extensions.WebEncoders" />
<FullMetaPackagePackageReference Include="Microsoft.Net.Http.Headers" />
<FullMetaPackagePackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" />
</ItemGroup>
<ItemGroup>
<FullMetaPackageProjectReference Include="../Microsoft.AspNetCore/Microsoft.AspNetCore.csproj" />
</ItemGroup>
<ItemGroup>
<RuntimeStorePackageReference Include="@(FullMetaPackagePackageReference)" />
<RuntimeStorePackageReference Include="Microsoft.AspNetCore" />
</ItemGroup>
</Project>

View File

@ -1,8 +1,3 @@
<Project>
<Import Project="dependencies.props" />
<ItemGroup>
<ExcludeFromPack Include="$(RepositoryRoot)src\Microsoft.AspNetCore.RuntimeStore\Microsoft.AspNetCore.RuntimeStore.csproj" />
<ExcludeFromPack Include="$(RepositoryRoot)src\Archive.AspNetCore.All\Archive.AspNetCore.All.csproj" />
</ItemGroup>
</Project>

View File

@ -1,970 +0,0 @@
<Project>
<PropertyGroup>
<!-- Project for building the Runtime Store -->
<MetaPackagePath>$(RepositoryRoot)src\Microsoft.AspNetCore.RuntimeStore\</MetaPackagePath>
<MetaPackageFile>$(MetaPackagePath)Microsoft.AspNetCore.RuntimeStore.csproj</MetaPackageFile>
<HostingStartupTemplatePath>$(RepositoryRoot)tools\Microsoft.AspNetCore.HostingStartup.Template\</HostingStartupTemplatePath>
<HostingStartupTemplateFile>$(HostingStartupTemplatePath)Microsoft.AspNetCore.HostingStartup.Template.csproj</HostingStartupTemplateFile>
<!-- Project for building the NuGet Fallback Archive (LZMA for CLI) -->
<FallbackArchiveDir>$(RepositoryRoot)src\Archive.AspNetCore.All\</FallbackArchiveDir>
<FallbackArchiveProj>$(FallbackArchiveDir)Archive.AspNetCore.All.csproj</FallbackArchiveProj>
<!-- Determine ASP.NET Package Version -->
<NoTimestampSuffix Condition="'$(TIMESTAMP_FREE_VERSION)' != ''">$(TIMESTAMP_FREE_VERSION)</NoTimestampSuffix>
<NoTimestampSuffix Condition="'$(NoTimestampSuffix)' == ''">final</NoTimestampSuffix>
<NoTimestampVersion>$(VersionPrefix)-$(OriginalVersionSuffix)-$(NoTimestampSuffix)</NoTimestampVersion>
<NoTimestampVersion Condition="'$(OriginalVersionSuffix)' == 'rtm'">$(VersionPrefix)</NoTimestampVersion>
<TimestampVersion>$(VersionPrefix)-$(OriginalVersionSuffix)-$(BuildNumber)</TimestampVersion>
<RuntimeStoreTimestampInstallerPackageName>aspnetcore-store-$(TimestampVersion)</RuntimeStoreTimestampInstallerPackageName>
<RuntimeStoreNoTimestampInstallerPackageName>aspnetcore-store-$(NoTimestampVersion)</RuntimeStoreNoTimestampInstallerPackageName>
<HostingBundleTimestampInstallerPackageName>dotnet-hosting-$(TimestampVersion)</HostingBundleTimestampInstallerPackageName>
<HostingBundleNoTimestampInstallerPackageName>dotnet-hosting-$(NoTimestampVersion)</HostingBundleNoTimestampInstallerPackageName>
<RuntimeStoreWorkingDirectory>$(RepositoryRoot).rw\</RuntimeStoreWorkingDirectory>
<RuntimeStoreOutputPath>$(RepositoryRoot).ro\</RuntimeStoreOutputPath>
<ArtifactsDir>$(RepositoryRoot)artifacts\</ArtifactsDir>
<DotnetInstallersDir>$(ArtifactsDir)dotnetInstallers\</DotnetInstallersDir>
<ArtifactsZipDir>$(ArtifactsDir)zip\</ArtifactsZipDir>
<DepsOutputPath>$(ArtifactsDir)deps\</DepsOutputPath>
<RuntimeStoreZipTimestampDir>$(ArtifactsZipDir)t\</RuntimeStoreZipTimestampDir>
<RuntimeStoreZipNoTimestampDir>$(ArtifactsZipDir)n\</RuntimeStoreZipNoTimestampDir>
<RuntimeStoreSymbolsZipTimestampDir>$(ArtifactsZipDir)st\</RuntimeStoreSymbolsZipTimestampDir>
<RuntimeStoreSymbolsZipNoTimestampDir>$(ArtifactsZipDir)sn\</RuntimeStoreSymbolsZipNoTimestampDir>
<RuntimeStoreInstallerDirectory>$(ArtifactsDir)installers\</RuntimeStoreInstallerDirectory>
<RuntimeStoreArchiveDirectory>$(ArtifactsDir)rsArchive\</RuntimeStoreArchiveDirectory>
<RuntimeStoreInstallerLayoutTimestampDirectory>$(ArtifactsDir)StoreTimestampLayout\</RuntimeStoreInstallerLayoutTimestampDirectory>
<RuntimeStoreInstallerLayoutPackageRootTimestampDirectory>$(RuntimeStoreInstallerLayoutTimestampDirectory)package_root\</RuntimeStoreInstallerLayoutPackageRootTimestampDirectory>
<RuntimeStoreInstallerOutputTimeStampDirectory>$(ArtifactsDir)StoreTimestampOutput\</RuntimeStoreInstallerOutputTimeStampDirectory>
<RuntimeStoreInstallerLayoutNoTimestampDirectory>$(ArtifactsDir)StoreNoTimestampLayout\</RuntimeStoreInstallerLayoutNoTimestampDirectory>
<RuntimeStoreInstallerLayoutPackageRootNoTimestampDirectory>$(RuntimeStoreInstallerLayoutNoTimestampDirectory)package_root\</RuntimeStoreInstallerLayoutPackageRootNoTimestampDirectory>
<RuntimeStoreInstallerOutputNoTimeStampDirectory>$(ArtifactsDir)StoreNoTimestampOutput\</RuntimeStoreInstallerOutputNoTimeStampDirectory>
<HostingBundleInstallerLayoutTimestampDirectory>$(ArtifactsDir)HostingTimestampLayout\</HostingBundleInstallerLayoutTimestampDirectory>
<HostingBundleInstallerLayoutPackageRootTimestampDirectory>$(HostingBundleInstallerLayoutTimestampDirectory)package_root\</HostingBundleInstallerLayoutPackageRootTimestampDirectory>
<HostingBundleInstallerOutputTimeStampDirectory>$(ArtifactsDir)HostingTimestampOutput\</HostingBundleInstallerOutputTimeStampDirectory>
<HostingBundleInstallerLayoutNoTimestampDirectory>$(ArtifactsDir)HostingNoTimestampLayout\</HostingBundleInstallerLayoutNoTimestampDirectory>
<HostingBundleInstallerLayoutPackageRootNoTimestampDirectory>$(HostingBundleInstallerLayoutNoTimestampDirectory)package_root\</HostingBundleInstallerLayoutPackageRootNoTimestampDirectory>
<HostingBundleInstallerOutputNoTimeStampDirectory>$(ArtifactsDir)HostingNoTimestampOutput\</HostingBundleInstallerOutputNoTimeStampDirectory>
<TempDir>$(ArtifactsDir)temp\</TempDir>
<ToolsDir>$(RepositoryRoot)tools\</ToolsDir>
<PackagingDir>$(ToolsDir)packaging\</PackagingDir>
<ScriptsDir>$(ToolsDir)scripts\</ScriptsDir>
<DockerDir>$(ToolsDir)docker\</DockerDir>
<DependencyBuildDirectory>$(RepositoryRoot).deps\build\</DependencyBuildDirectory>
<RuntimeStoreReferenceDirectory>$(ToolsDir)Build.RuntimeStore.References\</RuntimeStoreReferenceDirectory>
<RuntimeStoreReferencePackageDirectory>$(RuntimeStoreReferenceDirectory)bin\Release\</RuntimeStoreReferencePackageDirectory>
<StoreDebianConfigTemplateFile>$(PackagingDir)store_debian_config.json</StoreDebianConfigTemplateFile>
<HostingDebianConfigTemplateFile>$(PackagingDir)hosting_debian_config.json</HostingDebianConfigTemplateFile>
<RPMChangelogTemplateFile>$(PackagingDir)changelog</RPMChangelogTemplateFile>
<DotnetDebToolDirectory>$(ToolsDir)dotnet-deb-tool-consumer\</DotnetDebToolDirectory>
<DockerRootDirectory>/opt/code/</DockerRootDirectory>
</PropertyGroup>
<Target Name="UpdateNuGetConfig">
<UpdatePackageSource
NuGetConfigPath="$(RepositoryRoot)NuGet.config"
SourceName="Dependencies"
SourceUri="$(DependencyBuildDirectory)"
Condition="Exists('$(DependencyBuildDirectory)')" />
</Target>
<Target Name="BuildPackageCache" DependsOnTargets="UpdateNuGetConfig;AddDiaSymReaderToPath;_ResolveCurrentSharedFrameworkVersion">
<GetOSPlatform>
<!-- Returns {Linux, macOS, Windows} -->
<Output TaskParameter="PlatformName" PropertyName="OSPlatform" />
</GetOSPlatform>
<Error Text="Please specify the platform for the runtime package store via PACKAGE_CACHE_PLATFORM: {x64|x86}." Condition="'$(PACKAGE_CACHE_PLATFORM)' == ''"/>
<!-- Display dotnet info -->
<Exec Command="dotnet --info" />
<PropertyGroup>
<RID Condition="'$(OSPlatform)' == 'Windows'">win7-$(PACKAGE_CACHE_PLATFORM)</RID>
<RID Condition="'$(OSPlatform)' == 'Linux'">linux-$(PACKAGE_CACHE_PLATFORM)</RID>
<RID Condition="'$(OSPlatform)' == 'macOS'">osx-$(PACKAGE_CACHE_PLATFORM)</RID>
<OutputZip>$(ArtifactsDir)aspnetcore-store-$(TimestampVersion)-$(RID).zip</OutputZip>
<OutputZipNoTimestamp>$(ArtifactsDir)aspnetcore-store-$(NoTimestampVersion)-$(RID).zip</OutputZipNoTimestamp>
<OutputSymbolZip>$(ArtifactsDir)aspnetcore-symbols-$(TimestampVersion)-$(RID).zip</OutputSymbolZip>
<OutputSymbolZipNoTimestamp>$(ArtifactsDir)aspnetcore-symbols-$(NoTimestampVersion)-$(RID).zip</OutputSymbolZipNoTimestamp>
<OutputSymbolTGZ>$(ArtifactsDir)aspnetcore-symbols-$(TimestampVersion)-$(RID).tar.gz</OutputSymbolTGZ>
<OutputSymbolTGZNoTimeStamp>$(ArtifactsDir)aspnetcore-symbols-$(NoTimestampVersion)-$(RID).tar.gz</OutputSymbolTGZNoTimeStamp>
</PropertyGroup>
<!-- Build reference package -->
<Exec Command="dotnet restore" WorkingDirectory="$(RuntimeStoreReferenceDirectory)" />
<MSBuild Projects="$(RuntimeStoreReferenceDirectory)\Build.RuntimeStore.References.csproj"
Targets="Pack"
Properties="Configuration=Release" />
<UpdatePackageSource
NuGetConfigPath="$(RepositoryRoot)NuGet.config"
SourceName="RuntimeStoreReference"
SourceUri="$(RuntimeStoreReferencePackageDirectory)"
Condition="Exists('$(RuntimeStoreReferencePackageDirectory)')" />
<!-- Build runtime store -->
<RemoveDir Directories="$(RuntimeStoreOutputPath)" />
<RemoveDir Directories="$(RuntimeStoreWorkingDirectory)" />
<Exec Command="dotnet store -m $(MetaPackageFile) -f netcoreapp2.0 -r $(RID) -o $(RuntimeStoreOutputPath) --framework-version 2.0.0-* -w $(RuntimeStoreWorkingDirectory) $(RUNTIME_STORE_ADDITIONAL_ARGUMENTS)" />
<!-- Create deps files for hosting startup -->
<Exec Command="dotnet restore" WorkingDirectory="$(RepositoryRoot)tools\TrimDeps" />
<Exec Command="dotnet restore" WorkingDirectory="$(HostingStartupTemplatePath)" />
<!--- MSBuild caches things if you run inproc so have to use Exec -->
<Exec Command="dotnet msbuild /t:&quot;Restore;Rebuild;CollectDeps&quot; $(HostingStartupTemplateFile) /p:&quot;DepsOutputPath=$(DepsOutputPath);HostingStartupPackageName=%(HostingStartupPackageReference.Identity);HostingStartupPackageVersion=%(Version);RuntimeFrameworkVersion=$(SharedFrameworkVersion)&quot;"/>
<ItemGroup>
<PackageStoreManifestFiles Include="$(RuntimeStoreOutputPath)**\artifact.xml">
<TimestampDestinationFile>aspnetcore-store-$(TimestampVersion)-$(RID).xml</TimestampDestinationFile>
</PackageStoreManifestFiles>
<_RuntimeStoreFiles Include="$(RuntimeStoreOutputPath)**\*" Exclude="$(RuntimeStoreOutputPath)**\artifact.xml;$(RuntimeStoreOutputPath)symbols\**\*" />
<RuntimeStoreFiles Include="@(_RuntimeStoreFiles)" >
<NoTimestampRecursiveDir>$([System.String]::new('%(RecursiveDir)').Replace('$(TimestampVersion)', '$(NoTimestampVersion)'))</NoTimestampRecursiveDir>
</RuntimeStoreFiles>
<_RuntimeStoreSymbolFiles Include="$(RuntimeStoreOutputPath)symbols\**\*" />
<RuntimeStoreSymbolFiles Include="@(_RuntimeStoreSymbolFiles )" >
<NoTimestampRecursiveDir>$([System.String]::new('%(RecursiveDir)').Replace('$(TimestampVersion)', '$(NoTimestampVersion)'))</NoTimestampRecursiveDir>
</RuntimeStoreSymbolFiles>
<DepsFiles Include="$(DepsOutputPath)**\*" />
</ItemGroup>
<Move SourceFiles="%(PackageStoreManifestFiles.FullPath)" DestinationFiles="$(ArtifactsDir)%(PackageStoreManifestFiles.TimestampDestinationFile)" />
<Copy SourceFiles="@(DepsFiles)" DestinationFolder="$(RuntimeStoreZipTimestampDir)additionalDeps\%(RecursiveDir)" />
<Copy SourceFiles="@(DepsFiles)" DestinationFolder="$(RuntimeStoreZipNoTimestampDir)additionalDeps\%(RecursiveDir)" />
<Copy SourceFiles="@(RuntimeStoreFiles)" DestinationFolder="$(RuntimeStoreZipTimestampDir)store\%(RecursiveDir)" />
<Copy SourceFiles="@(RuntimeStoreFiles)" DestinationFiles="$(RuntimeStoreZipNoTimestampDir)store\%(RuntimeStoreFiles.NoTimestampRecursiveDir)%(RuntimeStoreFiles.FileName)%(RuntimeStoreFiles.Extension)" />
<Copy SourceFiles="@(RuntimeStoreSymbolFiles)" DestinationFolder="$(RuntimeStoreSymbolsZipTimestampDir)%(RecursiveDir)" />
<Copy SourceFiles="@(RuntimeStoreSymbolFiles)" DestinationFiles="$(RuntimeStoreSymbolsZipNoTimestampDir)%(RuntimeStoreSymbolFiles.NoTimestampRecursiveDir)%(RuntimeStoreSymbolFiles.FileName)%(RuntimeStoreSymbolFiles.Extension)" />
<ItemGroup>
<NoTimestampDepsFiles Include="$(RuntimeStoreZipNoTimestampDir)additionalDeps\**\*"/>
</ItemGroup>
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="_RemoveTimestampFromDepsFile" Properties="DepsFile=%(NoTimestampDepsFiles.FullPath)" />
<ItemGroup>
<OutputZipFiles Include="$(RuntimeStoreZipTimestampDir)**\*" />
<OutputZipFilesNoTimestamp Include="$(RuntimeStoreZipNoTimestampDir)**\*" />
<OutputSymbolZipFiles Include="$(RuntimeStoreSymbolsZipTimestampDir)**\*" />
<OutputSymbolZipFilesNoTimestamp Include="$(RuntimeStoreSymbolsZipNoTimestampDir)**\*" />
</ItemGroup>
<ZipArchive File="$(OutputZip)" SourceFiles="@(OutputZipFiles)" WorkingDirectory="$(RuntimeStoreZipTimestampDir)" Overwrite="true"/>
<ZipArchive File="$(OutputZipNoTimeStamp)" SourceFiles="@(OutputZipFilesNoTimestamp)" WorkingDirectory="$(RuntimeStoreZipNoTimestampDir)" Overwrite="true"/>
<ZipArchive File="$(OutputSymbolZip)" SourceFiles="@(OutputSymbolZipFiles)" WorkingDirectory="$(RuntimeStoreSymbolsZipTimestampDir)" Overwrite="true" Condition="'@(OutputSymbolZipFiles)' != ''"/>
<ZipArchive File="$(OutputSymbolZipNoTimeStamp)" SourceFiles="@(OutputSymbolZipFilesNoTimestamp)" WorkingDirectory="$(RuntimeStoreSymbolsZipNoTimestampDir)" Overwrite="true" Condition="'@(OutputSymbolZipFilesNoTimestamp)' != ''"/>
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="ConvertZipToTGZ" Properties="ZipFileName=$(OutputSymbolZip);TGZFileName=$(OutputSymbolTGZ)" Condition="'$(OSPlatform)' == 'Linux'"/>
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="ConvertZipToTGZ" Properties="ZipFileName=$(OutputSymbolZipNoTimeStamp);TGZFileName=$(OutputSymbolTGZNoTimeStamp)" Condition="'$(OSPlatform)' == 'Linux'"/>
<!-- Add a common manifest for package trimming -->
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="CreateCommonManifest" Condition="'$(OSPlatform)' == 'Windows' AND '$(PACKAGE_CACHE_PLATFORM)' == 'x64'"/>
</Target>
<Target Name="CreateCommonManifest">
<PropertyGroup>
<CommonManifestFileName>aspnetcore-store-$(TimestampVersion)-common.xml</CommonManifestFileName>
</PropertyGroup>
<ItemGroup>
<PackageToTrim Include="runtime.win-arm64.runtime.native.system.data.sqlclient.sni" />
</ItemGroup>
<MSBuild Projects="$(RuntimeStoreReferenceDirectory)\Build.RuntimeStore.References.csproj" Targets="GetPackageDefinitions" >
<Output TaskParameter="TargetOutputs" ItemName="_PackageDefinitions" />
</MSBuild>
<RepoTasks.CreateCommonManifest DestinationFilePath="$(ArtifactsDir)$(CommonManifestFileName)" PackageDefinitions="@(_PackageDefinitions)" Packages="@(PackageToTrim)"/>
</Target>
<Target Name="ConvertZipToTGZ">
<Exec Command="&quot;$(ScriptsDir)zip2tgz.sh&quot; &quot;$(ZipFileName)&quot; &quot;$(TGZFileName)&quot;" />
<Delete Files="$(ZipFileName)" />
</Target>
<Target Name="_ResolveCurrentSharedFrameworkVersion">
<!-- Parse framework version -->
<Exec Command="powershell.exe $(ScriptsDir)GetSharedFrameworkVersion.ps1" ConsoleToMSBuild="true" Condition="'$(OS)' == 'Windows_NT'">
<Output TaskParameter="ConsoleOutput" PropertyName="SharedFrameworkVersion" />
</Exec>
<Exec Command="bash $(ScriptsDir)GetSharedFrameworkVersion.sh" ConsoleToMSBuild="true" Condition="'$(OS)' != 'Windows_NT'">
<Output TaskParameter="ConsoleOutput" PropertyName="SharedFrameworkVersion" />
</Exec>
</Target>
<Target Name="AddDiaSymReaderToPath" Condition="'$(OS)' == 'Windows_NT'" DependsOnTargets="_ResolveCurrentSharedFrameworkVersion">
<GetDotNetHost>
<Output TaskParameter="DotNetDirectory" PropertyName="DotnetHomeDirectory" />
</GetDotNetHost>
<PropertyGroup>
<DiaSymReaderDirectory>$(DotnetHomeDirectory)shared\Microsoft.NETCore.App\$(SharedFrameworkVersion)</DiaSymReaderDirectory>
</PropertyGroup>
<Message Text="Adding DiaSymReader to PATH by appending: $(DiaSymReaderDirectory)" Importance="high" />
<SetEnvironmentVariable Variable="PATH" Value="$(PATH);$(DiaSymReaderDirectory)" />
</Target>
<Target Name="_RemoveTimestampFromDepsFile">
<Exec Command="powershell.exe -command &quot;(Get-Content $(DepsFile)).replace('$(TimestampVersion)', '$(NoTimestampVersion)') | Set-Content $(DepsFile)&quot;" Condition="'$(OS)' == 'Windows_NT'"/>
<Exec Command="sed -i -e &quot;s/$(TimestampVersion)/$(NoTimestampVersion)/g&quot; $(DepsFile)" Condition="'$(OS)' != 'Windows_NT'"/>
</Target>
<Target Name="_BuildFallbackArchive">
<Error Text="AspNetPackageVersion must be specified" Condition=" '$(AspNetPackageVersion)' == '' " />
<Error Text="PackageSource must be specified" Condition=" '$(PackageSource)' == '' " />
<Error Text="OutputPackageName must be specified" Condition=" '$(OutputPackageName)' == '' " />
<Error Text="ArchiverPath must be specified" Condition=" '$(ArchiverPath)' == '' " />
<Error Text="Archiver not found at $(ArchiverPath)" Condition="!Exists('$(ArchiverPath)')" />
<!-- Clear the directories -->
<RemoveDir Directories="$(FallbackArchiveDir)bin" />
<RemoveDir Directories="$(FallbackArchiveDir)obj" />
<PropertyGroup>
<FallbackStagingDir>$(FallbackArchiveDir)obj/$(OutputPackageName)</FallbackStagingDir>
<FallbackOutputArchive>$(RepositoryRoot)artifacts\$(OutputPackageName).lzma</FallbackOutputArchive>
<FallbackRestoreConfigFile>$(FallbackArchiveDir)\obj\$(OutputPackageName).NuGet.config</FallbackRestoreConfigFile>
</PropertyGroup>
<!-- Create the Staging Dir -->
<MakeDir Directories="$(FallbackStagingDir)" />
<!-- Copy the NuGet.config from this repo and update it with the Package Source -->
<Copy SourceFiles="$(RepositoryRoot)NuGet.config" DestinationFiles="$(FallbackRestoreConfigFile)" />
<UpdatePackageSource
NuGetConfigPath="$(FallbackRestoreConfigFile)"
SourceName="Dependencies"
SourceUri="$(PackageSource)" />
<!-- Restore the target project -->
<MSBuild Projects="$(FallbackArchiveProj)" Targets="Restore" Properties="RestorePackagesPath=$(FallbackStagingDir);AspNetPackageVersion=$(AspNetPackageVersion);RestoreConfigFile=$(FallbackRestoreConfigFile)" />
<!-- Create the archive -->
<Message Text="Producing LZMA Archive, this may take a while..." Importance="high" />
<Exec Command="$(ArchiverPath) -a $(FallbackOutputArchive) $(FallbackStagingDir)" />
</Target>
<Target Name="BuildFallbackArchive">
<!-- Validate Arguments -->
<Error Text="COHERENCE_SIGNED_DROP_LOCATION is not specified. This requires a path like \\aspnetci\drops\Coherence-Signed\{branch}\{build-number}"
Condition=" '$(COHERENCE_SIGNED_DROP_LOCATION)' == '' " />
<Error Text="Required Property 'BuildNumber' not provided" Condition="'$(BuildNumber)' == ''" />
<!-- Determine ASP.NET Package Version -->
<PropertyGroup>
<NoTimestampSource>$(COHERENCE_SIGNED_DROP_LOCATION)\Signed\Packages-NoTimeStamp</NoTimestampSource>
<TimestampSource>$(COHERENCE_SIGNED_DROP_LOCATION)\Signed\Packages</TimestampSource>
<NoTimestampOutputPackageName>nuGetPackagesArchive-$(NoTimestampVersion)</NoTimestampOutputPackageName>
<TimestampOutputPackageName>nuGetPackagesArchive-$(TimestampVersion)</TimestampOutputPackageName>
</PropertyGroup>
<!-- Run the actual target twice, once for timestamped packages, once for non-timestamped packages -->
<!-- Here, we're re-invoking KoreBuild, but limiting it to a specific target. -->
<!-- This won't rerun the whole build, but it ensures that the necessary MSBuild Tasks and Properties are initialized -->
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="_BuildFallbackArchive" Properties="AspNetPackageVersion=$(TimestampVersion);PackageSource=$(TimestampSource);OutputPackageName=$(TimestampOutputPackageName);ArchiverPath=$(ArchiverPath)" />
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="_BuildFallbackArchive" Properties="AspNetPackageVersion=$(NoTimestampVersion);PackageSource=$(NoTimestampSource);OutputPackageName=$(NoTimestampOutputPackageName);ArchiverPath=$(ArchiverPath)" />
<!-- Copy LZMA archives to Coherence-Signed drop location -->
<PropertyGroup>
<PublishDir Condition="'$(PublishShare)' != ''">$(PublishShare)\fallbackArchives</PublishDir>
</PropertyGroup>
<Copy SourceFiles="$(RepositoryRoot)artifacts\$(TimestampOutputPackageName).lzma;$(RepositoryRoot)artifacts\$(NoTimestampOutputPackageName).lzma" DestinationFolder="$(PublishDir)" Condition="'$(PublishDir)' != ''" />
</Target>
<Target Name="AddManifestsToNupkg">
<Error Text="COHERENCE_DROP_LOCATION is not specified. This requires a path like \\aspnetci\drops\Coherence\{branch}\{build-number}"
Condition=" '$(COHERENCE_DROP_LOCATION)' == '' " />
<ItemGroup>
<MetaPackageNupkg Include="$(COHERENCE_DROP_LOCATION)\ship\Microsoft.AspNetCore.All.*.nupkg" />
<ManifestFiles Include="$(ArtifactsDir)*.xml"/>
</ItemGroup>
<RemoveDir Directories="@(MetaPackageNupkg->'$(TempDir)%(Filename)')" />
<Copy SourceFiles="@(MetaPackageNupkg)" DestinationFolder="$(ArtifactsDir)" />
<UnzipArchive File="$(ArtifactsDir)%(MetaPackageNupkg.FileName)%(MetaPackageNupkg.Extension)" Destination="@(MetaPackageNupkg->'$(TempDir)%(Filename)')" />
<Copy SourceFiles="@(ManifestFiles)" DestinationFolder="@(MetaPackageNupkg->'$(TempDir)%(Filename)\build\')" />
<ItemGroup>
<ArchiveFiles Include="$(TempDir)%(MetaPackageNupkg.Filename)\**\*" />
</ItemGroup>
<ZipArchive File="%(MetaPackageNupkg.FullPath)" SourceFiles="@(ArchiveFiles)" WorkingDirectory="@(MetaPackageNupkg->'$(TempDir)%(Filename)')" Overwrite="true" />
</Target>
<Target Name="BuildInstallers" DependsOnTargets="GenerateDebs;GenerateRpms;GenerateTargzs" />
<Target Name="EnsureInstallerPrerequisites" DependsOnTargets="_ResolveCurrentSharedFrameworkVersion">
<!-- Check Docker server OS -->
<Exec Command="docker version -f &quot;{{.Server.Os}}&quot;" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="DockerHostOS" />
</Exec>
<Error Text="Docker host must be using Linux containers." Condition="'$(DockerHostOS)' != 'linux'"/>
<Error Text="RUNTIMESTORE_SIGNED_ARTIFACTS_PATH is not specified. The path containing the linux archives files must be must not be empty." Condition="'$(RUNTIMESTORE_SIGNED_ARTIFACTS_PATH)' == ''" />
<ItemGroup>
<RuntimeStoreTimestampArchive Include="$(RUNTIMESTORE_SIGNED_ARTIFACTS_PATH)**\aspnetcore-store-$(TimestampVersion)-linux-x64.tar.gz"/>
<RuntimeStoreNoTimestampArchive Include="$(RUNTIMESTORE_SIGNED_ARTIFACTS_PATH)**\aspnetcore-store-$(NoTimestampVersion)-linux-x64.tar.gz"/>
</ItemGroup>
<Error Text="@(RuntimeStoreTimestampArchive->Count()) timestamp linux archives found at $(RUNTIMESTORE_SIGNED_ARTIFACTS_PATH)." Condition="'@(RuntimeStoreTimestampArchive->Count())' != 1" />
<Error Text="@(RuntimeStoreNoTimestampArchive->Count()) no timestamp linux archives found at $(RUNTIMESTORE_SIGNED_ARTIFACTS_PATH)." Condition="'@(RuntimeStoreNoTimestampArchive->Count())' != 1" />
<!-- Download dotnet installers -->
<PropertyGroup>
<HostLink>http://dotnetcli.azureedge.net/dotnet/Runtime/$(SharedFrameworkVersion)/dotnet-host-$(SharedFrameworkVersion)</HostLink>
<HostfxrLink>http://dotnetcli.azureedge.net/dotnet/Runtime/$(SharedFrameworkVersion)/dotnet-hostfxr-$(SharedFrameworkVersion)</HostfxrLink>
<RuntimeLink>http://dotnetcli.azureedge.net/dotnet/Runtime/$(SharedFrameworkVersion)/dotnet-runtime-$(SharedFrameworkVersion)</RuntimeLink>
<RuntimeTargzLink>http://dotnetcli.azureedge.net/dotnet/Runtime/$(SharedFrameworkVersion)/dotnet-runtime-$(SharedFrameworkVersion)-linux-x64.tar.gz</RuntimeTargzLink>
</PropertyGroup>
<ItemGroup>
<DotnetInstallerSuffixes Include="rhel.7-x64.rpm;debian.8-x64.deb;ubuntu.14.04-x64.deb;ubuntu.16.04-x64.deb;ubuntu.16.10-x64.deb"/>
</ItemGroup>
<RemoveDir Directories="$(DotnetInstallersDir)" />
<MakeDir Directories="$(DotnetInstallersDir)" />
<Exec Command="curl $(HostLink)-%(DotnetInstallerSuffixes.Identity) -o $(DotnetInstallersDir)dotnet-host-$(SharedFrameworkVersion)-%(DotnetInstallerSuffixes.Identity)" />
<Exec Command="curl $(HostfxrLink)-%(DotnetInstallerSuffixes.Identity) -o $(DotnetInstallersDir)dotnet-hostfxr-$(SharedFrameworkVersion)-%(DotnetInstallerSuffixes.Identity)" />
<Exec Command="curl $(RuntimeLink)-%(DotnetInstallerSuffixes.Identity) -o $(DotnetInstallersDir)dotnet-runtime-$(SharedFrameworkVersion)-%(DotnetInstallerSuffixes.Identity)" />
<Exec Command="curl $(RuntimeTargzLink) -o $(DotnetInstallersDir)dotnet-runtime-$(SharedFrameworkVersion)-linux-x64.tar.gz" />
</Target>
<Target Name="GenerateTargzs" DependsOnTargets="EnsureInstallerPrerequisites">
<!-- Create layout: Clear layout directories -->
<RemoveDir Directories="$(HostingBundleInstallerLayoutTimestampDirectory);$(HostingBundleInstallerLayoutNoTimestampDirectory)" />
<MakeDir Directories="$(HostingBundleInstallerLayoutTimestampDirectory);$(HostingBundleInstallerLayoutNoTimestampDirectory)" />
<MakeDir Directories="$(RuntimeStoreInstallerDirectory)" Condition="!Exists($(RuntimeStoreInstallerDirectory))" />
<!-- Create layout: Download dotnet runtime -->
<PropertyGroup>
<HostingBundleTimestampTARGZFileName>$(HostingBundleTimestampInstallerPackageName)-linux-$(PACKAGE_CACHE_PLATFORM).tar.gz</HostingBundleTimestampTARGZFileName>
<HostingBundleNoTimestampTARGZFileName>$(HostingBundleNoTimestampInstallerPackageName)-linux-$(PACKAGE_CACHE_PLATFORM).tar.gz</HostingBundleNoTimestampTARGZFileName>
</PropertyGroup>
<!-- Create layout: Aspnet Hosting Bundle -->
<Exec Command="tar -xzf @(RuntimeStoreTimestampArchive) -C $(HostingBundleInstallerLayoutTimestampDirectory)" />
<Exec Command="tar -xzf @(RuntimeStoreNoTimestampArchive) -C $(HostingBundleInstallerLayoutNoTimestampDirectory)" />
<Exec Command="tar -xzf $(DotnetInstallersDir)dotnet-runtime-$(SharedFrameworkVersion)-linux-x64.tar.gz -C $(HostingBundleInstallerLayoutTimestampDirectory)" />
<Exec Command="tar -xzf $(DotnetInstallersDir)dotnet-runtime-$(SharedFrameworkVersion)-linux-x64.tar.gz -C $(HostingBundleInstallerLayoutNoTimestampDirectory)" />
<!-- Create Aspnet Hosting Bundle tar.gz -->
<Exec Command="tar -czf $(RuntimeStoreInstallerDirectory)$(HostingBundleTimestampTARGZFileName) $(HostingBundleInstallerLayoutTimestampDirectory)" />
<Exec Command="tar -czf $(RuntimeStoreInstallerDirectory)$(HostingBundleNoTimestampTARGZFileName) $(HostingBundleInstallerLayoutNoTimestampDirectory)" />
</Target>
<Target Name="GenerateRpms" DependsOnTargets="EnsureInstallerPrerequisites">
<!-- Create layout: Aspnet runtime store -->
<RemoveDir Directories="$(RuntimeStoreInstallerLayoutTimestampDirectory);$(RuntimeStoreInstallerLayoutNoTimestampDirectory);$(HostingBundleInstallerLayoutTimestampDirectory);$(HostingBundleInstallerLayoutNoTimestampDirectory)" />
<MakeDir Directories="$(RuntimeStoreInstallerLayoutPackageRootTimestampDirectory);$(RuntimeStoreInstallerLayoutPackageRootNoTimestampDirectory);$(HostingBundleInstallerLayoutPackageRootTimestampDirectory);$(HostingBundleInstallerLayoutPackageRootNoTimestampDirectory)" />
<Exec Command="tar -xzf @(RuntimeStoreTimestampArchive) -C $(RuntimeStoreInstallerLayoutPackageRootTimestampDirectory)" />
<Exec Command="tar -xzf @(RuntimeStoreNoTimestampArchive) -C $(RuntimeStoreInstallerLayoutPackageRootNoTimestampDirectory)" />
<!-- Create layout: Place changelog -->
<Copy
SourceFiles="$(RPMChangelogTemplateFile)"
DestinationFiles="$(RuntimeStoreInstallerLayoutTimestampDirectory)templates/changelog"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<Copy
SourceFiles="$(RPMChangelogTemplateFile)"
DestinationFiles="$(RuntimeStoreInstallerLayoutNoTimestampDirectory)templates/changelog"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<Copy
SourceFiles="$(RPMChangelogTemplateFile)"
DestinationFiles="$(HostingBundleInstallerLayoutTimestampDirectory)templates/changelog"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<Copy
SourceFiles="$(RPMChangelogTemplateFile)"
DestinationFiles="$(HostingBundleInstallerLayoutNoTimestampDirectory)templates/changelog"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<!-- Common installer parameters -->
<JsonPeek Query="$.short_description" JsonInputPath="$(StoreDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_StoreInstallerSummary" />
</JsonPeek>
<JsonPeek Query="$.long_description" JsonInputPath="$(StoreDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_StoreInstallerDescription" />
</JsonPeek>
<JsonPeek Query="$.license.type" JsonInputPath="$(StoreDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_StoreInstallerLicense" />
</JsonPeek>
<JsonPeek Query="$.release.package_revision" JsonInputPath="$(StoreDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_StoreInstallerPackageRevision" />
</JsonPeek>
<JsonPeek Query="$.homepage" JsonInputPath="$(StoreDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_StoreInstallerHomepage" />
</JsonPeek>
<JsonPeek Query="$.maintainer_name" JsonInputPath="$(StoreDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_StoreInstallerMaintainerName" />
</JsonPeek>
<JsonPeek Query="$.maintainer_email" JsonInputPath="$(StoreDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_StoreInstallerMaintainerEmail" />
</JsonPeek>
<JsonPeek Query="$.short_description" JsonInputPath="$(HostingDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_HostingInstallerSummary" />
</JsonPeek>
<JsonPeek Query="$.long_description" JsonInputPath="$(HostingDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_HostingInstallerDescription" />
</JsonPeek>
<JsonPeek Query="$.license.type" JsonInputPath="$(HostingDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_HostingInstallerLicense" />
</JsonPeek>
<JsonPeek Query="$.release.package_revision" JsonInputPath="$(HostingDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_HostingInstallerPackageRevision" />
</JsonPeek>
<JsonPeek Query="$.homepage" JsonInputPath="$(HostingDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_HostingInstallerHomepage" />
</JsonPeek>
<JsonPeek Query="$.maintainer_name" JsonInputPath="$(HostingDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_HostingInstallerMaintainerName" />
</JsonPeek>
<JsonPeek Query="$.maintainer_email" JsonInputPath="$(HostingDebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_HostingInstallerMaintainerEmail" />
</JsonPeek>
<ItemGroup>
<RHStoreDirectories Include="/opt/rh/rh-dotnet20/root/usr/lib64/dotnet/additionalDeps" />
<RHStoreDirectories Include="/opt/rh/rh-dotnet20/root/usr/lib64/dotnet/store" />
<GeneralStoreDirectories Include="/usr/share/dotnet/additionalDeps" />
<GeneralStoreDirectories Include="/usr/share/dotnet/store" />
</ItemGroup>
<PropertyGroup>
<StoreInstallerSummary>@(_StoreInstallerSummary)</StoreInstallerSummary>
<StoreInstallerDescription>@(_StoreInstallerDescription)</StoreInstallerDescription>
<StoreInstallerLicense>@(_StoreInstallerLicense)</StoreInstallerLicense>
<StoreInstallerPackageRevision>@(_StoreInstallerPackageRevision)</StoreInstallerPackageRevision>
<StoreInstallerHomepage>@(_StoreInstallerHomepage)</StoreInstallerHomepage>
<StoreInstallerMaintainerName>@(_StoreInstallerMaintainerName)</StoreInstallerMaintainerName>
<StoreInstallerMaintainerEmail>@(_StoreInstallerMaintainerEmail)</StoreInstallerMaintainerEmail>
<HostingInstallerSummary>@(_HostingInstallerSummary)</HostingInstallerSummary>
<HostingInstallerDescription>@(_HostingInstallerDescription)</HostingInstallerDescription>
<HostingInstallerLicense>@(_HostingInstallerLicense)</HostingInstallerLicense>
<HostingInstallerPackageRevision>@(_HostingInstallerPackageRevision)</HostingInstallerPackageRevision>
<HostingInstallerHomepage>@(_HostingInstallerHomepage)</HostingInstallerHomepage>
<HostingInstallerMaintainerName>@(_HostingInstallerMaintainerName)</HostingInstallerMaintainerName>
<HostingInstallerMaintainerEmail>@(_HostingInstallerMaintainerEmail)</HostingInstallerMaintainerEmail>
<RHInstallerInstallRoot>/opt/rh/rh-dotnet20/root/usr/lib64/dotnet/</RHInstallerInstallRoot>
<RHStoreDirectoriesArguments>@(RHStoreDirectories->' --directories &quot;%(FullPath)&quot;', ' ')</RHStoreDirectoriesArguments>
<GeneralInstallerInstallRoot>/usr/share/dotnet/</GeneralInstallerInstallRoot>
<GeneralStoreDirectoriesArguments>@(GeneralStoreDirectories->' --directories &quot;%(FullPath)&quot;', ' ')</GeneralStoreDirectoriesArguments>
</PropertyGroup>
<!-- Update Date, Maintainer, Version, Revision and Changelog Message -->
<Exec Command="sed -i
-e 's/DATE/$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))/'
-e 's/MAINTAINER_NAME/$(StoreInstallerMaintainerName)/'
-e 's/MAINTAINER_EMAIL/$(StoreInstallerMaintainerEmail)/'
-e 's/PACKAGE_VERSION/$(TimestampVersion)/'
-e 's/PACKAGE_REVISION/$(StoreInstallerPackageRevision)/'
$(RuntimeStoreInstallerLayoutTimestampDirectory)templates/changelog" />
<Exec Command="sed -i
-e 's/DATE/$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))/'
-e 's/MAINTAINER_NAME/$(StoreInstallerMaintainerName)/'
-e 's/MAINTAINER_EMAIL/$(StoreInstallerMaintainerEmail)/'
-e 's/PACKAGE_VERSION/$(NoTimestampVersion)/'
-e 's/PACKAGE_REVISION/$(StoreInstallerPackageRevision)/'
$(RuntimeStoreInstallerLayoutNoTimestampDirectory)templates/changelog" />
<Exec Command="sed -i
-e 's/DATE/$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))/'
-e 's/MAINTAINER_NAME/$(HostingInstallerMaintainerName)/'
-e 's/MAINTAINER_EMAIL/$(HostingInstallerMaintainerEmail)/'
-e 's/PACKAGE_VERSION/$(TimestampVersion)/'
-e 's/PACKAGE_REVISION/$(HostingInstallerPackageRevision)/'
$(HostingBundleInstallerLayoutTimestampDirectory)templates/changelog" />
<Exec Command="sed -i
-e 's/DATE/$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))/'
-e 's/MAINTAINER_NAME/$(HostingInstallerMaintainerName)/'
-e 's/MAINTAINER_EMAIL/$(HostingInstallerMaintainerEmail)/'
-e 's/PACKAGE_VERSION/$(NoTimestampVersion)/'
-e 's/PACKAGE_REVISION/$(HostingInstallerPackageRevision)/'
$(HostingBundleInstallerLayoutNoTimestampDirectory)templates/changelog" />
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Targets="BuildStoreAndHostingRPM"
Properties="DockerImage=rhel.7;
InstallerPlatform=rh.rhel.7;
InstallerInstallRoot=$(RHInstallerInstallRoot);
BuildNumber=$(BuildNumber);
SharedFrameworkVersion=$(SharedFrameworkVersion);
StoreDirectoriesArguments=$(RHStoreDirectoriesArguments);
StoreInstallerSummary=$(StoreInstallerSummary);
StoreInstallerDescription=$(StoreInstallerDescription);
StoreInstallerLicense=$(StoreInstallerLicense);
StoreInstallerPackageRevision=$(StoreInstallerPackageRevision);
StoreInstallerHomepage=$(StoreInstallerHomepage);
StoreInstallerMaintainerName=$(StoreInstallerMaintainerName);
StoreInstallerMaintainerEmail=$(StoreInstallerMaintainerEmail);
HostingInstallerSummary=$(HostingInstallerSummary);
HostingInstallerDescription=$(HostingInstallerDescription);
HostingInstallerLicense=$(HostingInstallerLicense);
HostingInstallerPackageRevision=$(HostingInstallerPackageRevision);
HostingInstallerHomepage=$(HostingInstallerHomepage);
HostingInstallerMaintainerName=$(HostingInstallerMaintainerName);
HostingInstallerMaintainerEmail=$(HostingInstallerMaintainerEmail);
SkipInstallerTests=true" />
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Targets="BuildStoreAndHostingRPM"
Properties="DockerImage=rhel.7;
InstallerPlatform=rhel.7;
InstallerInstallRoot=$(GeneralInstallerInstallRoot);
BuildNumber=$(BuildNumber);
SharedFrameworkVersion=$(SharedFrameworkVersion);
StoreDirectoriesArguments=$(GeneralStoreDirectoriesArguments);
StoreInstallerSummary=$(StoreInstallerSummary);
StoreInstallerDescription=$(StoreInstallerDescription);
StoreInstallerLicense=$(StoreInstallerLicense);
StoreInstallerPackageRevision=$(StoreInstallerPackageRevision);
StoreInstallerHomepage=$(StoreInstallerHomepage);
StoreInstallerMaintainerName=$(StoreInstallerMaintainerName);
StoreInstallerMaintainerEmail=$(StoreInstallerMaintainerEmail);
HostingInstallerSummary=$(HostingInstallerSummary);
HostingInstallerDescription=$(HostingInstallerDescription);
HostingInstallerLicense=$(HostingInstallerLicense);
HostingInstallerPackageRevision=$(HostingInstallerPackageRevision);
HostingInstallerHomepage=$(HostingInstallerHomepage);
HostingInstallerMaintainerName=$(HostingInstallerMaintainerName);
HostingInstallerMaintainerEmail=$(HostingInstallerMaintainerEmail)" />
</Target>
<Target Name="BuildStoreAndHostingRPM">
<PropertyGroup>
<!-- rpm unique installer parameters -->
<RuntimeStoreTimestampRPMFileName>$(RuntimeStoreTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).rpm</RuntimeStoreTimestampRPMFileName>
<RuntimeStoreNoTimestampRPMFileName>$(RuntimeStoreNoTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).rpm</RuntimeStoreNoTimestampRPMFileName>
<HostingBundleTimestampRPMFileName>$(HostingBundleTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).rpm</HostingBundleTimestampRPMFileName>
<HostingBundleNoTimestampRPMFileName>$(HostingBundleNoTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).rpm</HostingBundleNoTimestampRPMFileName>
<StoreInstallerMaintainer>$(StoreInstallerMaintainerName) &lt;$(StoreInstallerMaintainerEmail)&gt;</StoreInstallerMaintainer>
<HostingInstallerMaintainer>$(HostingInstallerMaintainerName) &lt;$(HostingInstallerMaintainerEmail)&gt;</HostingInstallerMaintainer>
<InstallerVendor>.NET Foundation</InstallerVendor>
</PropertyGroup>
<!-- Clear the output dir -->
<RemoveDir Directories="$(RuntimeStoreInstallerOutputTimeStampDirectory);$(RuntimeStoreInstallerOutputNoTimeStampDirectory);$(HostingBundleInstallerOutputTimeStampDirectory);$(HostingBundleInstallerOutputNoTimeStampDirectory)" />
<MakeDir Directories="$(RuntimeStoreInstallerOutputTimeStampDirectory);$(RuntimeStoreInstallerOutputNoTimeStampDirectory);$(HostingBundleInstallerOutputTimeStampDirectory);$(HostingBundleInstallerOutputNoTimeStampDirectory)" />
<!-- Build Docker Image -->
<Exec
Command="docker build --build-arg USER_ID=%24(id -u) -t docker-image-$(DockerImage) $(DockerImage)"
WorkingDirectory="$(DockerDir)" />
<!-- Build Runtime Store RPM package -->
<Exec Command="docker run
--rm
-v $(RepositoryRoot):$(DockerRootDirectory)
docker-image-$(DockerImage)
fpm
--verbose
-s dir
-t rpm
-n $(RuntimeStoreTimestampInstallerPackageName)
-v $(TimestampVersion)
-a amd64
$(StoreDirectoriesArguments)
--rpm-changelog $(DockerRootDirectory)artifacts/StoreTimestampLayout/templates/changelog
--rpm-summary &quot;$(StoreInstallerSummary)&quot;
--description &quot;$(StoreInstallerDescription)&quot;
--maintainer &quot;$(StoreInstallerMaintainer)&quot;
--vendor &quot;$(InstallerVendor)&quot;
-p $(DockerRootDirectory)artifacts/StoreTimestampOutput/$(RuntimeStoreTimestampRPMFileName)
--license &quot;$(StoreInstallerLicense)&quot;
--iteration $(StoreInstallerPackageRevision)
--url &quot;$(StoreInstallerHomepage)&quot;
$(DockerRootDirectory)artifacts/StoreTimestampLayout/package_root/=&quot;$(InstallerInstallRoot)&quot;" />
<Exec Command="docker run
--rm
-v $(RepositoryRoot):$(DockerRootDirectory)
docker-image-$(DockerImage)
fpm
--verbose
-s dir
-t rpm
-n $(RuntimeStoreNoTimestampInstallerPackageName)
-v $(NoTimestampVersion)
-a amd64
$(StoreDirectoriesArguments)
--rpm-changelog $(DockerRootDirectory)artifacts/StoreNoTimestampLayout/templates/changelog
--rpm-summary &quot;$(StoreInstallerSummary)&quot;
--description &quot;$(StoreInstallerDescription)&quot;
--maintainer &quot;$(StoreInstallerMaintainer)&quot;
--vendor &quot;$(InstallerVendor)&quot;
-p $(DockerRootDirectory)artifacts/StoreNoTimestampOutput/$(RuntimeStoreNoTimestampRPMFileName)
--license &quot;$(StoreInstallerLicense)&quot;
--iteration $(StoreInstallerPackageRevision)
--url &quot;$(StoreInstallerHomepage)&quot;
$(DockerRootDirectory)artifacts/StoreNoTimestampLayout/package_root/=&quot;$(InstallerInstallRoot)&quot;" />
<!-- Build Hosting Bundle RPM package -->
<ItemGroup>
<HostingBundleTimestampDependencies Include="$(RuntimeStoreTimestampInstallerPackageName)">
<Version>$(TimestampVersion)</Version>
</HostingBundleTimestampDependencies>
<HostingBundleTimestampDependencies Include="dotnet-runtime-$(SharedFrameworkVersion)">
<Version>$(SharedFrameworkVersion)</Version>
</HostingBundleTimestampDependencies>
<HostingBundleNoTimestampDependencies Include="$(RuntimeStoreNoTimestampInstallerPackageName)">
<Version>$(NoTimestampVersion)</Version>
</HostingBundleNoTimestampDependencies>
<HostingBundleNoTimestampDependencies Include="dotnet-runtime-$(SharedFrameworkVersion)">
<Version>$(SharedFrameworkVersion)</Version>
</HostingBundleNoTimestampDependencies>
</ItemGroup>
<PropertyGroup>
<HostingBundleTimestampDependenciesArguments>@(HostingBundleTimestampDependencies->' -d &quot;%(Identity) &gt;= %(Version)&quot;', ' ')</HostingBundleTimestampDependenciesArguments>
<HostingBundleNoTimestampDependenciesArguments>@(HostingBundleNoTimestampDependencies->' -d &quot;%(Identity) &gt;= %(Version)&quot;', ' ')</HostingBundleNoTimestampDependenciesArguments>
</PropertyGroup>
<Exec Command="docker run
--rm
-v $(RepositoryRoot):$(DockerRootDirectory)
docker-image-$(DockerImage)
fpm
--verbose
-s dir
-t rpm
-n $(HostingBundleTimestampInstallerPackageName)
-v $(TimestampVersion)
-a amd64
$(HostingBundleTimestampDependenciesArguments)
--rpm-changelog $(DockerRootDirectory)artifacts/HostingTimestampLayout/templates/changelog
--rpm-summary &quot;$(HostingInstallerSummary)&quot;
--description &quot;$(HostingInstallerDescription)&quot;
--maintainer &quot;$(HostingInstallerMaintainer)&quot;
--vendor &quot;$(InstallerVendor)&quot;
-p $(DockerRootDirectory)artifacts/HostingTimestampOutput/$(HostingBundleTimestampRPMFileName)
--license &quot;$(HostingInstallerLicense)&quot;
--iteration $(HostingInstallerPackageRevision)
--url &quot;$(HostingInstallerHomepage)&quot;
$(DockerRootDirectory)artifacts/HostingTimestampLayout/package_root/=&quot;$(InstallerInstallRoot)&quot;" />
<Exec Command="docker run
--rm
-v $(RepositoryRoot):$(DockerRootDirectory)
docker-image-$(DockerImage)
fpm
--verbose
-s dir
-t rpm
-n $(HostingBundleNoTimestampInstallerPackageName)
-v $(NoTimestampVersion)
-a amd64
$(HostingBundleNoTimestampDependenciesArguments)
--rpm-changelog $(DockerRootDirectory)artifacts/HostingNoTimestampLayout/templates/changelog
--rpm-summary &quot;$(HostingInstallerSummary)&quot;
--description &quot;$(HostingInstallerDescription)&quot;
--maintainer &quot;$(HostingInstallerMaintainer)&quot;
--vendor &quot;$(InstallerVendor)&quot;
-p $(DockerRootDirectory)artifacts/HostingNoTimestampOutput/$(HostingBundleNoTimestampRPMFileName)
--license &quot;$(HostingInstallerLicense)&quot;
--iteration $(HostingInstallerPackageRevision)
--url &quot;$(HostingInstallerHomepage)&quot;
$(DockerRootDirectory)artifacts/HostingNoTimestampLayout/package_root/=&quot;$(InstallerInstallRoot)&quot;" />
<!-- Copy Runtime Store package to output -->
<ItemGroup>
<GeneratedStoreTimestampRPMFiles Include="$(RuntimeStoreInstallerOutputTimeStampDirectory)/*.rpm" />
<GeneratedStoreNoTimestampRPMFiles Include="$(RuntimeStoreInstallerOutputNoTimeStampDirectory)/*.rpm" />
<GeneratedHostingTimestampRPMFiles Include="$(HostingBundleInstallerOutputTimeStampDirectory)/*.rpm" />
<GeneratedHostingNoTimestampRPMFiles Include="$(HostingBundleInstallerOutputNoTimeStampDirectory)/*.rpm" />
</ItemGroup>
<Error Text="@(GeneratedStoreTimestampRPMFiles->Count()) timestamp store rpm installer files generated." Condition="'@(GeneratedStoreTimestampRPMFiles->Count())' != 1" />
<Error Text="@(GeneratedStoreNoTimestampRPMFiles->Count()) no timestamp store rpm installer files generated." Condition="'@(GeneratedStoreNoTimestampRPMFiles->Count())' != 1" />
<Error Text="@(GeneratedHostingTimestampRPMFiles->Count()) timestamp hosting rpm instaler files generated." Condition="'@(GeneratedHostingTimestampRPMFiles->Count())' != 1" />
<Error Text="@(GeneratedHostingNoTimestampRPMFiles->Count()) no timestamp hosting rpm installer files generated." Condition="'@(GeneratedHostingNoTimestampRPMFiles->Count())' != 1" />
<Copy
DestinationFiles="$(RuntimeStoreInstallerDirectory)$(RuntimeStoreTimestampRPMFileName)"
SourceFiles="@(GeneratedStoreTimestampRPMFiles)"
OverwriteReadOnlyFiles="true"
SkipUnchangedFiles="false" />
<Copy
DestinationFiles="$(RuntimeStoreInstallerDirectory)$(RuntimeStoreNoTimestampRPMFileName)"
SourceFiles="@(GeneratedStoreNoTimestampRPMFiles)"
OverwriteReadOnlyFiles="true"
SkipUnchangedFiles="false" />
<Copy
DestinationFiles="$(RuntimeStoreInstallerDirectory)$(HostingBundleTimestampRPMFileName)"
SourceFiles="@(GeneratedHostingTimestampRPMFiles)"
OverwriteReadOnlyFiles="true"
SkipUnchangedFiles="false" />
<Copy
DestinationFiles="$(RuntimeStoreInstallerDirectory)$(HostingBundleNoTimestampRPMFileName)"
SourceFiles="@(GeneratedHostingNoTimestampRPMFiles)"
OverwriteReadOnlyFiles="true"
SkipUnchangedFiles="false" />
<!-- Run installer tests -->
<Exec Command="docker run
--rm
-v $(RepositoryRoot):$(DockerRootDirectory)
-e DotnetInstallerSuffix=-$(SharedFrameworkVersion)-$(DockerImage)-x64.rpm
-e InstallerExtension=.rpm
-e StoreInstallerFile=@(GeneratedStoreTimestampRPMFiles->'%(Filename)%(Extension)')
-e StoreInstallerPackageName=$(RuntimeStoreTimestampInstallerPackageName)
-e HostingInstallerFile=@(GeneratedHostingTimestampRPMFiles->'%(Filename)%(Extension)')
-e HostingInstallerPackageName=$(HostingBundleTimestampInstallerPackageName)
-e InstallRoot=$(InstallerInstallRoot)
-e InstallCommand=&quot;sudo rpm -i&quot;
-e UninstallCommand=&quot;sudo rpm -e&quot;
docker-image-$(DockerImage)
./tools/scripts/TestInstallers.sh"
Condition="'$(SkipInstallerTests)' != 'true'"/>
<Exec Command="docker run
--rm
-v $(RepositoryRoot):$(DockerRootDirectory)
-e DotnetInstallerSuffix=-$(SharedFrameworkVersion)-$(DockerImage)-x64.rpm
-e InstallerExtension=.rpm
-e StoreInstallerFile=@(GeneratedStoreNoTimestampRPMFiles->'%(Filename)%(Extension)')
-e StoreInstallerPackageName=$(RuntimeStoreNoTimestampInstallerPackageName)
-e HostingInstallerFile=@(GeneratedHostingNoTimestampRPMFiles->'%(Filename)%(Extension)')
-e HostingInstallerPackageName=$(HostingBundleNoTimestampInstallerPackageName)
-e InstallRoot=$(InstallerInstallRoot)
-e InstallCommand=&quot;sudo rpm -i&quot;
-e UninstallCommand=&quot;sudo rpm -e&quot;
docker-image-$(DockerImage)
./tools/scripts/TestInstallers.sh"
Condition="'$(SkipInstallerTests)' != 'true'"/>
<!-- Remove Docker Image to save disk space -->
<Exec Command="docker rmi docker-image-$(DockerImage)" />
</Target>
<Target Name="GenerateDebs" DependsOnTargets="EnsureInstallerPrerequisites">
<!-- Create layout: Aspnet runtime store -->
<RemoveDir Directories="$(RuntimeStoreInstallerLayoutTimestampDirectory);$(RuntimeStoreInstallerLayoutNoTimestampDirectory);$(HostingBundleInstallerLayoutTimestampDirectory);$(HostingBundleInstallerLayoutNoTimestampDirectory)" />
<MakeDir Directories="$(RuntimeStoreInstallerLayoutPackageRootTimestampDirectory);$(RuntimeStoreInstallerLayoutPackageRootNoTimestampDirectory);$(HostingBundleInstallerLayoutPackageRootTimestampDirectory);$(HostingBundleInstallerLayoutPackageRootNoTimestampDirectory)" />
<Exec Command="tar -xzf @(RuntimeStoreTimestampArchive) -C $(RuntimeStoreInstallerLayoutPackageRootTimestampDirectory)" />
<Exec Command="tar -xzf @(RuntimeStoreNoTimestampArchive) -C $(RuntimeStoreInstallerLayoutPackageRootNoTimestampDirectory)" />
<!-- Create layout: Generate and Place debian_config.json -->
<Copy
SourceFiles="$(StoreDebianConfigTemplateFile)"
DestinationFiles="$(RuntimeStoreInstallerLayoutTimestampDirectory)debian_config.json"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<Copy
SourceFiles="$(StoreDebianConfigTemplateFile)"
DestinationFiles="$(RuntimeStoreInstallerLayoutNoTimestampDirectory)debian_config.json"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<Copy
SourceFiles="$(HostingDebianConfigTemplateFile)"
DestinationFiles="$(HostingBundleInstallerLayoutTimestampDirectory)debian_config.json"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<Copy
SourceFiles="$(HostingDebianConfigTemplateFile)"
DestinationFiles="$(HostingBundleInstallerLayoutNoTimestampDirectory)debian_config.json"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<!-- Create layout: Update debian_config.json -->
<Exec Command="sed -i
-e 's/DOTNET_RUNTIME_VERSION/$(SharedFrameworkVersion)/'
-e 's/ASPNETCORE_STORE_VERSION/$(TimestampVersion)/'
$(HostingBundleInstallerLayoutTimestampDirectory)debian_config.json" />
<Exec Command="sed -i
-e 's/DOTNET_RUNTIME_VERSION/$(SharedFrameworkVersion)/'
-e 's/ASPNETCORE_STORE_VERSION/$(NoTimestampVersion)/'
$(HostingBundleInstallerLayoutNoTimestampDirectory)debian_config.json" />
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Targets="BuildStoreAndHostingDeb"
Properties="InstallerPlatform=debian.8;
SharedFrameworkVersion=$(SharedFrameworkVersion);
BuildNumber=$(BuildNumber)" />
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Targets="BuildStoreAndHostingDeb"
Properties="InstallerPlatform=ubuntu.14.04;
SharedFrameworkVersion=$(SharedFrameworkVersion);
BuildNumber=$(BuildNumber)" />
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Targets="BuildStoreAndHostingDeb"
Properties="InstallerPlatform=ubuntu.16.04;
SharedFrameworkVersion=$(SharedFrameworkVersion);
BuildNumber=$(BuildNumber)" />
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Targets="BuildStoreAndHostingDeb"
Properties="InstallerPlatform=ubuntu.16.10;
SharedFrameworkVersion=$(SharedFrameworkVersion);
BuildNumber=$(BuildNumber)" />
</Target>
<Target Name="BuildStoreAndHostingDeb">
<PropertyGroup>
<RuntimeStoreTimestampDebianFileName>$(RuntimeStoreTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).deb</RuntimeStoreTimestampDebianFileName>
<RuntimeStoreNoTimestampDebianFileName>$(RuntimeStoreNoTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).deb</RuntimeStoreNoTimestampDebianFileName>
<HostingBundleTimestampDebianFileName>$(HostingBundleTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).deb</HostingBundleTimestampDebianFileName>
<HostingBundleNoTimestampDebianFileName>$(HostingBundleNoTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).deb</HostingBundleNoTimestampDebianFileName>
</PropertyGroup>
<!-- Clear the output dir -->
<RemoveDir Directories="$(RuntimeStoreInstallerOutputTimeStampDirectory);$(RuntimeStoreInstallerOutputNoTimeStampDirectory);$(HostingBundleInstallerOutputTimeStampDirectory);$(HostingBundleInstallerOutputNoTimeStampDirectory)" />
<MakeDir Directories="$(RuntimeStoreInstallerOutputTimeStampDirectory);$(RuntimeStoreInstallerOutputNoTimeStampDirectory);$(HostingBundleInstallerOutputTimeStampDirectory);$(HostingBundleInstallerOutputNoTimeStampDirectory)" />
<!-- Build Docker Image -->
<Exec
Command="docker build --build-arg USER_ID=%24(id -u) -t docker-image-$(InstallerPlatform) $(InstallerPlatform)"
WorkingDirectory="$(DockerDir)" />
<!-- Build Runtime Store and Hosting Bundle Deb package -->
<Exec Command="docker run
--rm
-v $(RepositoryRoot):$(DockerRootDirectory)
-e DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
-e KOREBUILD_SKIP_OLD_RUNTIME_INSTALL=true
-e BuildNumber=$(BuildNumber)
-e RUNTIMESTORE_TIMESTAMP_INSTALLERNAME=$(RuntimeStoreTimestampInstallerPackageName)
-e RUNTIMESTORE_NOTIMESTAMP_INSTALLERNAME=$(RuntimeStoreNoTimestampInstallerPackageName)
-e HOSTINGBUNDLE_TIMESTAMP_INSTALLERNAME=$(HostingBundleTimestampInstallerPackageName)
-e HOSTINGBUNDLE_NOTIMESTAMP_INSTALLERNAME=$(HostingBundleNoTimestampInstallerPackageName)
docker-image-$(InstallerPlatform)
./build.sh /t:RunDebTool"
ContinueOnError="WarnAndContinue" />
<!-- Copy Runtime Store and Hosting Bundle packages to output -->
<ItemGroup>
<GeneratedStoreTimestampDebFiles Include="$(RuntimeStoreInstallerOutputTimeStampDirectory)/*.deb" />
<GeneratedStoreNoTimestampDebFiles Include="$(RuntimeStoreInstallerOutputNoTimeStampDirectory)/*.deb" />
<GeneratedHostingTimestampDebFiles Include="$(HostingBundleInstallerOutputTimeStampDirectory)/*.deb" />
<GeneratedHostingNoTimestampDebFiles Include="$(HostingBundleInstallerOutputNoTimeStampDirectory)/*.deb" />
</ItemGroup>
<Error Text="@(GeneratedTimestampDebFiles->Count()) timestamp store deb installer files generated." Condition="'@(GeneratedStoreTimestampDebFiles->Count())' != 1" />
<Error Text="@(GeneratedNoTimestampDebFiles->Count()) no timestamp store deb installer files generated." Condition="'@(GeneratedStoreNoTimestampDebFiles->Count())' != 1" />
<Error Text="@(GeneratedHostingTimestampDebFiles->Count()) timestamp hosting deb installer files generated." Condition="'@(GeneratedHostingTimestampDebFiles->Count())' != 1" />
<Error Text="@(GeneratedHostingNoTimestampDebFiles->Count()) no timestamp hosting deb installer files generated." Condition="'@(GeneratedHostingNoTimestampDebFiles->Count())' != 1" />
<Copy
DestinationFiles="$(RuntimeStoreInstallerDirectory)$(RuntimeStoreTimestampDebianFileName)"
SourceFiles="@(GeneratedStoreTimestampDebFiles)"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<Copy
DestinationFiles="$(RuntimeStoreInstallerDirectory)$(RuntimeStoreNoTimestampDebianFileName)"
SourceFiles="@(GeneratedStoreNoTimestampDebFiles)"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<Copy
DestinationFiles="$(RuntimeStoreInstallerDirectory)$(HostingBundleTimestampDebianFileName)"
SourceFiles="@(GeneratedHostingTimestampDebFiles)"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<Copy
DestinationFiles="$(RuntimeStoreInstallerDirectory)$(HostingBundleNoTimestampDebianFileName)"
SourceFiles="@(GeneratedHostingNoTimestampDebFiles)"
OverwriteReadOnlyFiles="True"
SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" />
<!-- Run installer tests -->
<Exec Command="docker run
--rm
-v $(RepositoryRoot):$(DockerRootDirectory)
-e DotnetInstallerSuffix=-$(SharedFrameworkVersion)-$(InstallerPlatform)-x64.deb
-e InstallerExtension=.deb
-e StoreInstallerFile=$(RuntimeStoreTimestampDebianFileName)
-e StoreInstallerPackageName=$(RuntimeStoreTimestampInstallerPackageName)
-e HostingInstallerFile=$(HostingBundleTimestampDebianFileName)
-e HostingInstallerPackageName=$(HostingBundleTimestampInstallerPackageName)
-e InstallRoot=/usr/share/dotnet/
-e InstallCommand=&quot;sudo dpkg -i&quot;
-e UninstallCommand=&quot;sudo dpkg -r&quot;
docker-image-$(InstallerPlatform)
./tools/scripts/TestInstallers.sh" />
<Exec Command="docker run
--rm
-v $(RepositoryRoot):$(DockerRootDirectory)
-e DotnetInstallerSuffix=-$(SharedFrameworkVersion)-$(InstallerPlatform)-x64.deb
-e InstallerExtension=.deb
-e StoreInstallerFile=$(RuntimeStoreNoTimestampDebianFileName)
-e StoreInstallerPackageName=$(RuntimeStoreNoTimestampInstallerPackageName)
-e HostingInstallerFile=$(HostingBundleNoTimestampDebianFileName)
-e HostingInstallerPackageName=$(HostingBundleNoTimestampInstallerPackageName)
-e InstallRoot=/usr/share/dotnet/
-e InstallCommand=&quot;sudo dpkg -i&quot;
-e UninstallCommand=&quot;sudo dpkg -r&quot;
docker-image-$(InstallerPlatform)
./tools/scripts/TestInstallers.sh" />
<!-- Remove Docker Image to save disk space -->
<Exec Command="docker rmi docker-image-$(InstallerPlatform)" />
</Target>
<Target Name="RunDebTool">
<!-- Install dotnet-deb tool -->
<Exec Command="dotnet restore" WorkingDirectory="$(DotnetDebToolDirectory)" />
<!-- Build Runtime Store Timestamp Deb package -->
<Exec Command="
dotnet deb-tool
-i $(RuntimeStoreInstallerLayoutTimestampDirectory)
-o $(RuntimeStoreInstallerOutputTimeStampDirectory)
-n $(RUNTIMESTORE_TIMESTAMP_INSTALLERNAME)
-v $(TimestampVersion)"
WorkingDirectory="$(DotnetDebToolDirectory)" />
<!-- Build Runtime Store NoTimestamp Deb package -->
<Exec Command="
dotnet deb-tool
-i $(RuntimeStoreInstallerLayoutNoTimestampDirectory)
-o $(RuntimeStoreInstallerOutputNoTimeStampDirectory)
-n $(RUNTIMESTORE_NOTIMESTAMP_INSTALLERNAME)
-v $(NoTimestampVersion)"
WorkingDirectory="$(DotnetDebToolDirectory)" />
<!-- Build Hosting Bundle Timestamp Deb package -->
<Exec Command="
dotnet deb-tool
-i $(HostingBundleInstallerLayoutTimestampDirectory)
-o $(HostingBundleInstallerOutputTimeStampDirectory)
-n $(HOSTINGBUNDLE_TIMESTAMP_INSTALLERNAME)
-v $(TimestampVersion)"
WorkingDirectory="$(DotnetDebToolDirectory)" />
<!-- Build Hosting Bundle NoTimestamp Deb package -->
<Exec Command="
dotnet deb-tool
-i $(HostingBundleInstallerLayoutNoTimestampDirectory)
-o $(HostingBundleInstallerOutputNoTimeStampDirectory)
-n $(HOSTINGBUNDLE_NOTIMESTAMP_INSTALLERNAME)
-v $(NoTimestampVersion)"
WorkingDirectory="$(DotnetDebToolDirectory)" />
</Target>
</Project>

View File

@ -1,67 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Linq;
using System.Xml;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace RepoTasks
{
/// <summary>
/// Creates a common manifest file used for trimming publish output given a list of packages and package definitions containing their versions.
/// </summary>
public class CreateCommonManifest : Task
{
/// <summary>
/// The path for the common manifest file to be created.
/// </summary>
/// <returns></returns>
[Required]
public string DestinationFilePath { get; set; }
/// <summary>
/// The packages to include in the common manifest file.
/// </summary>
/// <returns></returns>
[Required]
public ITaskItem[] Packages { get; set; }
/// <summary>
/// The package definitions used for resolving package versions.
/// </summary>
/// <returns></returns>
[Required]
public ITaskItem[] PackageDefinitions { get; set; }
public override bool Execute()
{
var xmlDoc = new XmlDocument();
var packagesElement = xmlDoc.CreateElement("StoreArtifacts");
foreach (var package in Packages)
{
var packageName = package.ItemSpec;
var packageElement = xmlDoc.CreateElement("Package");
var idAttribute = xmlDoc.CreateAttribute("Id");
idAttribute.Value = packageName;
packageElement.Attributes.Append(idAttribute);
var versionAttribute = xmlDoc.CreateAttribute("Version");
versionAttribute.Value = PackageDefinitions
.Where(p => string.Equals(p.GetMetadata("Name"), packageName, StringComparison.OrdinalIgnoreCase))
.Select(p => p.GetMetadata("Version")).Single();
packageElement.Attributes.Append(versionAttribute);
packagesElement.AppendChild(packageElement);
}
xmlDoc.AppendChild(packagesElement);
xmlDoc.Save(DestinationFilePath);
return true;
}
}
}

View File

@ -1,10 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(RepoTasksSdkPath)\Sdk.props" Condition="'$(RepoTasksSdkPath)' != '' "/>
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<RuntimeFrameworkVersion>2.0.0-*</RuntimeFrameworkVersion>
</PropertyGroup>
<Import Project="$(RepoTasksSdkPath)\Sdk.targets" Condition="'$(RepoTasksSdkPath)' != '' "/>
</Project>

View File

@ -1,3 +0,0 @@
<Project>
<UsingTask TaskName="RepoTasks.CreateCommonManifest" AssemblyFile="$(MSBuildThisFileDirectory)bin\publish\RepoTasks.dll" />
</Project>

View File

@ -1,24 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<EnableApiCheck>false</EnableApiCheck>
<DotnetCliToolTargetFramework>netcoreapp2.0</DotnetCliToolTargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="$(AspNetPackageVersion)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="$(AspNetPackageVersion)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="$(AspNetPackageVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="$(AspNetPackageVersion)" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="$(AspNetPackageVersion)" />
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="$(AspNetPackageVersion)" />
<DotNetCliToolReference Include="Microsoft.Extensions.Caching.SqlConfig.Tools" Version="$(AspNetPackageVersion)" />
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="$(AspNetPackageVersion)" />
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="$(AspNetPackageVersion)" />
</ItemGroup>
</Project>

View File

@ -1,23 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<IncludeBuildOutput>false</IncludeBuildOutput>
<TargetFramework>netcoreapp2.0</TargetFramework>
<PackageTags>aspnetcore</PackageTags>
<Description>Microsoft.AspNetCore.All</Description>
<EnableApiCheck>false</EnableApiCheck>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="@(FullMetaPackagePackageReference)" />
<PackageReference Include="@(FullMetaPackagePackageNoRuntimeStoreReference)" />
<ProjectReference Include="@(FullMetaPackageProjectReference)" PrivateAssets="None" />
</ItemGroup>
<ItemGroup>
<Content Include="build\**\*.xml" PackagePath="%(Identity)" />
<Content Include="build\**\*.targets" PackagePath="%(Identity)" />
<Content Include="lib\$(TargetFramework)\_._" PackagePath="%(Identity)" />
</ItemGroup>
</Project>

View File

@ -1,29 +0,0 @@
<Project>
<PropertyGroup>
<PublishWithAspNetCoreTargetManifest Condition="'$(PublishWithAspNetCoreTargetManifest)'=='' and '$(SelfContained)'=='false' and '$(PublishableProject)'=='true'">true</PublishWithAspNetCoreTargetManifest>
</PropertyGroup>
<!--
******************************************************************************
Target: PublishWithAspNetCoreTargetManifest
Error if PublishWithAspNetCoreTargetManifest is set to true for standalone app
******************************************************************************
-->
<Target
Name="PublishWithAspNetCoreTargetManifest"
AfterTargets="PrepareForPublish"
Condition="'$(PublishWithAspNetCoreTargetManifest)'=='true'" >
<Error
Text="PublishWithAspNetCoreTargetManifest cannot be set to true for self contained apps."
Condition="'$(SelfContained)'=='true'" />
<ItemGroup>
<AspNetCoreTargetManifestFiles Include="$(MSBuildThisFileDirectory)aspnetcore-store-*.xml"/>
</ItemGroup>
<PropertyGroup>
<TargetManifestFiles>$(TargetManifestFiles);@(AspNetCoreTargetManifestFiles)</TargetManifestFiles>
</PropertyGroup>
</Target>
</Project>

View File

@ -1,3 +0,0 @@
<Project>
<Import Project="$(MSBuildThisFileDirectory)..\PublishWithAspNetCoreTargetManifest.targets" />
</Project>

View File

@ -1,10 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Build.RuntimeStore.References" Version="$(AspNetCoreVersion)" />
</ItemGroup>
</Project>

View File

@ -9,7 +9,21 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="@(MetaPackagePackageReference)" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.AspNetCore.Routing" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Https" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.Extensions.Logging.Configuration" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="$(AspNetCoreVersion)" PrivateAssets="None" />
</ItemGroup>
</Project>

View File

@ -1,20 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<UsingTask TaskName="Microsoft.NET.Build.Tasks.ResolvePackageDependencies" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />
<PropertyGroup>
<IncludeBuildOutput>false</IncludeBuildOutput>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="@(RuntimeStorePackageReference)" />
<ProjectAssetsJson Include="$(MSBuildThisFileDirectory)**\project.assets.json" />
</ItemGroup>
<Target Name="GetPackageDefinitions" Returns="@(_PackageDefinitions)">
<ResolvePackageDependencies ProjectPath="$(MSBuildThisFileFullPath)" ProjectAssetsFile="@(ProjectAssetsJson)">
<Output TaskParameter="PackageDefinitions" ItemName="_PackageDefinitions" />
</ResolvePackageDependencies>
</Target>
</Project>

View File

@ -1,21 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="$(HostingStartupPackageName)" Version="$(HostingStartupPackageVersion)" PrivateAssets="None" />
</ItemGroup>
<Target Name="CollectDeps">
<PropertyGroup>
<DepsRuntimeFrameworkVersion Condition="'$(DepsRuntimeFrameworkVersion)' == ''">$(RuntimeFrameworkVersion)</DepsRuntimeFrameworkVersion>
<DestinationDepsFile>$(DepsOutputPath)\$(HostingStartupPackageName)\shared\Microsoft.NETCore.App\$(DepsRuntimeFrameworkVersion)\$(HostingStartupPackageName).deps.json</DestinationDepsFile>
</PropertyGroup>
<Copy SourceFiles="$(ProjectDepsFilePath)" DestinationFiles="$(DestinationDepsFile)" />
<Exec Command="dotnet run --framework netcoreapp2.0 $([System.IO.Path]::GetFullPath('$(DestinationDepsFile)'))" WorkingDirectory="../TrimDeps/" />
</Target>
</Project>

View File

@ -1,7 +0,0 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public class Program
{
public static void Main() { }
}

View File

@ -1,47 +0,0 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Trimming main library from " +args[0]);
ChangeEntryPointLibraryName(args[0]);
}
private static void ChangeEntryPointLibraryName(string depsFile)
{
JToken deps;
using (var file = File.OpenText(depsFile))
using (JsonTextReader reader = new JsonTextReader(file))
{
deps = JObject.ReadFrom(reader);
}
foreach (JProperty target in deps["targets"])
{
var targetLibrary = target.Value.Children<JProperty>().FirstOrDefault();
if (targetLibrary == null)
{
continue;
}
targetLibrary.Remove();
}
var library = deps["libraries"].Children<JProperty>().First();
library.Remove();
using (var file = File.CreateText(depsFile))
using (var writer = new JsonTextWriter(file) { Formatting = Formatting.Indented })
{
deps.WriteTo(writer);
}
}
}

View File

@ -1,12 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="$(JsonNetVersion)" />
</ItemGroup>
</Project>

View File

@ -1,51 +0,0 @@
#
# Copyright (c) .NET Foundation. All rights reserved.
# Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#
# Dockerfile that creates a container suitable to build dotnet-cli
FROM debian:jessie
# Misc Dependencies for build
RUN apt-get update && \
apt-get -qqy install \
curl \
unzip \
gettext \
sudo \
libunwind8 \
libkrb5-3 \
libicu52 \
liblttng-ust0 \
libssl1.0.0 \
zlib1g \
libuuid1 \
debhelper \
build-essential \
devscripts \
git \
cmake \
clang-3.5 \
wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Use clang as c++ compiler
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-3.5 100
RUN update-alternatives --set c++ /usr/bin/clang++-3.5
# Setup User to match Host User, and give superuser permissions
ARG USER_ID=0
RUN useradd -m code_executor -u ${USER_ID} -g sudo
RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# With the User Change, we need to change permissions on these directories
RUN chmod -R a+rwx /usr/local
RUN chmod -R a+rwx /home
RUN chmod -R 755 /usr/lib/sudo
# Set user to the one we just created
USER ${USER_ID}
# Set working directory
WORKDIR /opt/code

View File

@ -1,27 +0,0 @@
#
# Copyright (c) .NET Foundation. All rights reserved.
# Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#
# Dockerfile that creates a container suitable to build dotnet-cli
FROM microsoft/dotnet-buildtools-prereqs:rhel-7-rpmpkg-c982313-20174116044113
# Install from sudo main package TODO This package needs to be mirrored
RUN yum install -y https://www.sudo.ws/sudo/dist/packages/RHEL/7/sudo-1.8.20-3.el7.x86_64.rpm \
&& yum clean all
# Setup User to match Host User, and give superuser permissions
ARG USER_ID=0
RUN useradd -m code_executor -u ${USER_ID} -g root
RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# With the User Change, we need to change permssions on these directories
RUN chmod -R a+rwx /usr/local
RUN chmod -R a+rwx /home
RUN chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
# Set user to the one we just created
USER ${USER_ID}
# Set working directory
WORKDIR /opt/code

View File

@ -1,52 +0,0 @@
#
# Copyright (c) .NET Foundation. All rights reserved.
# Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#
# Dockerfile that creates a container suitable to build dotnet-cli
FROM ubuntu:14.04
# Misc Dependencies for build
RUN apt-get update && \
apt-get -qqy install \
curl \
unzip \
gettext \
sudo \
libunwind8 \
libkrb5-3 \
libicu52 \
liblttng-ust0 \
libssl1.0.0 \
zlib1g \
libuuid1 \
debhelper \
build-essential \
devscripts \
git \
cmake \
clang-3.5 \
lldb-3.6 \
wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Use clang as c++ compiler
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-3.5 100
RUN update-alternatives --set c++ /usr/bin/clang++-3.5
# Setup User to match Host User, and give superuser permissions
ARG USER_ID=0
RUN useradd -m code_executor -u ${USER_ID} -g sudo
RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# With the User Change, we need to change permissions on these directories
RUN chmod -R a+rwx /usr/local
RUN chmod -R a+rwx /home
RUN chmod -R 755 /usr/lib/sudo
# Set user to the one we just created
USER ${USER_ID}
# Set working directory
WORKDIR /opt/code

View File

@ -1,48 +0,0 @@
#
# Copyright (c) .NET Foundation. All rights reserved.
# Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#
FROM ubuntu:16.04
# Install the base toolchain we need to build anything (clang, cmake, make and the like)
# this does not include libraries that we need to compile different projects, we'd like
# them in a different layer.
RUN apt-get update && \
apt-get install -y cmake \
make \
llvm-3.5 \
clang-3.5 \
git \
curl \
tar \
sudo \
debhelper \
build-essential \
devscripts \
libunwind8 \
libkrb5-3 \
libicu55 \
liblttng-ust0 \
libssl1.0.0 \
zlib1g \
libuuid1 \
liblldb-3.6 \
wget && \
apt-get clean
# Setup User to match Host User, and give superuser permissions
ARG USER_ID=0
RUN useradd -m code_executor -u ${USER_ID} -g sudo
RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# With the User Change, we need to change permissions on these directories
RUN chmod -R a+rwx /usr/local
RUN chmod -R a+rwx /home
RUN chmod -R 755 /usr/lib/sudo
# Set user to the one we just created
USER ${USER_ID}
# Set working directory
WORKDIR /opt/code

View File

@ -1,52 +0,0 @@
#
# Copyright (c) .NET Foundation. All rights reserved.
# Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#
# Dockerfile that creates a container suitable to build dotnet-cli
FROM ubuntu:16.10
# Misc Dependencies for build
RUN apt-get update && \
apt-get -qqy install \
curl \
unzip \
gettext \
sudo \
libunwind8 \
libkrb5-3 \
libicu57 \
liblttng-ust0 \
libssl1.0.0 \
zlib1g \
libuuid1 \
liblldb-3.5 \
debhelper \
build-essential \
devscripts \
git \
cmake \
clang-3.5 \
wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Use clang as c++ compiler
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-3.5 100
RUN update-alternatives --set c++ /usr/bin/clang++-3.5
# Setup User to match Host User, and give superuser permissions
ARG USER_ID=0
RUN useradd -m code_executor -u ${USER_ID} -g sudo
RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# With the User Change, we need to change permissions on these directories
RUN chmod -R a+rwx /usr/local
RUN chmod -R a+rwx /home
RUN chmod -R 755 /usr/lib/sudo
# Set user to the one we just created
USER ${USER_ID}
# Set working directory
WORKDIR /opt/code

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="cli-deps" value="https://dotnet.myget.org/F/cli-deps/api/v3/index.json" />
</packageSources>
</configuration>

View File

@ -1,11 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp1.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<DotNetCliToolReference Include="dotnet-deb-tool" Version="$(DotnetDebToolVersion)" />
</ItemGroup>
</Project>

View File

@ -1,2 +0,0 @@
* DATE MAINTAINER_NAME <MAINTAINER_EMAIL> - PACKAGE_VERSION-PACKAGE_REVISION
-

View File

@ -1,35 +0,0 @@
{
"maintainer_name": "Microsoft",
"maintainer_email": "nugetaspnet@microsoft.com",
"package_name": "dotnet-hosting",
"install_root": "/usr/share/dotnet",
"short_description": "Microsoft .NET Core 2.0.0 Linux Server Hosting",
"long_description": "Microsoft .NET Core 2.0.0 Linux Server Hosting enables hosting of ASP.NET Core applications and contains the ASP.NET Core Runtime Package Store and .NET Core Runtime. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub (https://github.com/aspnet/home). We happily accept issues and PRs.",
"homepage": "https://www.asp.net/",
"release":{
"package_version":"0.0.0.0",
"package_revision":"1",
"urgency" : "low",
"changelog_message" : ""
},
"control": {
"priority":"standard",
"section":"devel",
"architecture":"any"
},
"copyright": "Microsoft",
"license": {
"type": "Apache-2.0",
"full_text": "Copyright (c) .NET Foundation. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthese files except in compliance with the License. You may obtain a copy of the\nLicense at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied. See the License for the\nspecific language governing permissions and limitations under the License."
},
"debian_dependencies": {
"dotnet-runtime-DOTNET_RUNTIME_VERSION": {},
"aspnetcore-store-ASPNETCORE_STORE_VERSION": {}
}
}

View File

@ -1,30 +0,0 @@
{
"maintainer_name": "Microsoft",
"maintainer_email": "nugetaspnet@microsoft.com",
"package_name": "aspnetcore-store",
"install_root": "/usr/share/dotnet",
"short_description": "Microsoft ASP.NET Core 2.0.0 Runtime Package Store",
"long_description": "Runtime package store for Microsoft ASP.NET Core. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub (https://github.com/aspnet/home). We happily accept issues and PRs.",
"homepage": "https://www.asp.net/",
"release":{
"package_version":"0.0.0.0",
"package_revision":"1",
"urgency" : "low",
"changelog_message" : ""
},
"control": {
"priority":"standard",
"section":"devel",
"architecture":"any"
},
"copyright": "Microsoft",
"license": {
"type": "Apache-2.0",
"full_text": "Copyright (c) .NET Foundation. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthese files except in compliance with the License. You may obtain a copy of the\nLicense at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied. See the License for the\nspecific language governing permissions and limitations under the License."
}
}

View File

@ -1,6 +0,0 @@
$infoOutput = dotnet --info
$versions = $infoOutput | Select-String -Pattern "version"
$FXVersionRaw = $versions | Select-Object -Last 1
$FXVersionString = $FXVersionRaw.ToString()
$FXVersion = $FXVersionString.SubString($FXVersionString.IndexOf(':') + 1).Trim()
Write-Host $FXVersion

View File

@ -1,2 +0,0 @@
#!/bin/bash
dotnet --info | grep -i version | tail -1 | cut -f 2 -d ":" | tr -d ' '

View File

@ -1,77 +0,0 @@
#!/usr/bin/env bash
set -e
set -o pipefail
artifactsDir="artifacts/"
installersDir=$artifactsDir"installers/"
dotnetInstallersDir=$artifactsDir"dotnetInstallers/"
installerTestDir=$artifactsDir"installerTest/"
# clean up test directory
if [ -d $installerTestDir ]; then
rm -r $installerTestDir
fi
mkdir $installerTestDir
# copy dotnet installers
cp $dotnetInstallersDir*$DotnetInstallerSuffix $installerTestDir
# copy store and hosting installers
cp $installersDir$StoreInstallerFile $installerTestDir
cp $installersDir$HostingInstallerFile $installerTestDir
# test store install
(cd $installerTestDir && $InstallCommand $StoreInstallerFile)
if [ ! -d $InstallRoot"additionalDeps" ]; then
echo $InstallRoot"additionalDeps missing after installing the runtime store."
exit 1
fi
if [ ! -d $InstallRoot"store" ]; then
echo $InstallRoot"store missing after installing the runtime store."
exit 1
fi
# test store uninstall
$UninstallCommand $StoreInstallerPackageName
if [ -d $InstallRoot"additionalDeps" ]; then
echo $InstallRoot"additionalDeps remains after uninstalling the runtime store."
exit 1
fi
if [ -d $InstallRoot"store" ]; then
echo $InstallRoot"store remains after uninstalling the runtime store."
exit 1
fi
# test hosting install
(cd $installerTestDir && $InstallCommand *$InstallerExtension)
if [ ! -d $InstallRoot"additionalDeps" ]; then
echo $InstallRoot"additionalDeps missing after installing the hosting bundle."
exit 1
fi
if [ ! -d $InstallRoot"shared" ]; then
echo $InstallRoot"shared missing after installing the hosting bundle."
exit 1
fi
if [ ! -d $InstallRoot"store" ]; then
echo $InstallRoot"store missing after installing the hosting bundle."
exit 1
fi
# test hosting uninstall
$UninstallCommand $HostingInstallerPackageName
if [ ! -d $InstallRoot"additionalDeps" ]; then
echo $InstallRoot"additionalDeps missing after installing the hosting bundle."
exit 1
fi
if [ ! -d $InstallRoot"shared" ]; then
echo $InstallRoot"shared missing after installing the hosting bundle."
exit 1
fi
if [ ! -d $InstallRoot"store" ]; then
echo $InstallRoot"store missing after installing the hosting bundle."
exit 1
fi

View File

@ -1,31 +0,0 @@
#!/usr/bin/env bash
if [[ $# < 2 ]]; then
echo "Usage: [src] [dest]"
exit 1
fi
function realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
src="$(realpath $1)"
dest="$(realpath $2)"
echo "Converting:"
echo " - $src"
echo " => $dest"
tmp="$(mktemp -d)"
echo "Using temp dir $tmp"
function cleanup() {
echo "Cleaning up"
rm -rf $tmp
echo "Done"
}
trap cleanup INT TERM EXIT
set -e
unzip -q $src -d $tmp
chmod -R +r $tmp
tar -c -z -f $dest -C $tmp .