diff --git a/.azure/pipelines/ci.yml b/.azure/pipelines/ci.yml index 114fd3f1576d..726ae1444fbd 100644 --- a/.azure/pipelines/ci.yml +++ b/.azure/pipelines/ci.yml @@ -75,6 +75,7 @@ jobs: -NoRestore -BuildNative /t:BuildSharedFx + /p:OnlyPackPlatformSpecificPackages=true /p:DisableCodeSigning=true /bl:artifacts/log/build.x86.binlog $(_BuildArgs) @@ -151,15 +152,12 @@ jobs: buildArgs: -arch arm -NoBuildNodeJS -NoBuildJava + /p:OnlyPackPlatformSpecificPackages=true /p:SignType=$(_SignType) /bl:artifacts/log/build.win-arm.binlog $(_BuildArgs) installNodeJs: false installJdk: false - afterBuild: - # Remove packages that are not rid-specific. - # TODO add a flag so builds only produce runtime packages - - powershell: gci artifacts/packages/ -recurse -exclude 'runtime.*', 'Microsoft.AspNetCore.App.Runtime.*' -file | rm -ea ignore artifacts: - name: Windows_arm_Packages path: artifacts/packages/ @@ -180,14 +178,10 @@ jobs: buildScript: ./eng/scripts/cibuild.sh buildArgs: --no-build-nodejs --no-build-java - /bl:artifacts/log/build.macos.binlog + -p:OnlyPackPlatformSpecificPackages=true + -bl:artifacts/log/build.macos.binlog $(_BuildArgs) installNodeJs: false - afterBuild: - # Remove packages that are not rid-specific. - # TODO add a flag so macOS/Linux builds only produce runtime packages - - script: if [ -d 'artifacts/packages' ]; then find artifacts/packages/ -type f -not -name 'runtime.*' -not -name 'Microsoft.AspNetCore.App.Runtime.*' -delete; fi - condition: always() artifacts: - name: MacOS_x64_Packages path: artifacts/packages/ @@ -214,7 +208,8 @@ jobs: --arch x64 --no-build-nodejs --no-build-java - /bl:artifacts/log/build.linux-x64.binlog + -p:OnlyPackPlatformSpecificPackages=true + -bl:artifacts/log/build.linux-x64.binlog $(_BuildArgs) displayName: Run cibuild.sh - script: | @@ -226,10 +221,11 @@ jobs: -e KOREBUILD_SKIP_INSTALL_NETFX=0 \ --no-restore \ --no-build-deps \ - /t:BuildSharedFx \ - /p:BuildRuntimeArchive=false \ - /p:LinuxInstallerType=deb \ - /bl:artifacts/log/build.deb.binlog \ + -t:BuildSharedFx \ + -p:OnlyPackPlatformSpecificPackages=true \ + -p:BuildRuntimeArchive=false \ + -p:LinuxInstallerType=deb \ + -bl:artifacts/log/build.deb.binlog \ $(_BuildArgs) displayName: Build Debian installers - script: | @@ -241,17 +237,13 @@ jobs: -e KOREBUILD_SKIP_INSTALL_NETFX=0 \ --no-restore \ --no-build-deps \ - /t:BuildSharedFx \ - /p:BuildRuntimeArchive=false \ - /p:LinuxInstallerType=rpm \ - /bl:artifacts/log/build.rpm.binlog \ + -t:BuildSharedFx \ + -p:OnlyPackPlatformSpecificPackages=true \ + -p:BuildRuntimeArchive=false \ + -p:LinuxInstallerType=rpm \ + -bl:artifacts/log/build.rpm.binlog \ $(_BuildArgs) displayName: Build RPM installers - afterBuild: - # Remove packages that are not rid-specific. - # TODO add a flag so macOS/Linux builds only produce runtime packages - - script: if [ -d 'artifacts/packages' ]; then find artifacts/packages/ -type f -not -name 'runtime.*' -not -name 'Microsoft.AspNetCore.App.Runtime.*' -delete; fi - condition: always() artifacts: - name: Linux_x64_Packages path: artifacts/packages/ @@ -276,14 +268,10 @@ jobs: buildArgs: --arch arm --no-build-nodejs --no-build-java - /bl:artifacts/log/build.linux-arm.binlog + -p:OnlyPackPlatformSpecificPackages=true + -bl:artifacts/log/build.linux-arm.binlog $(_BuildArgs) installNodeJs: false - afterBuild: - # Remove packages that are not rid-specific. - # TODO add a flag so macOS/Linux builds only produce runtime packages - - script: if [ -d 'artifacts/packages' ]; then find artifacts/packages/ -type f -not -name 'runtime.*' -not -name 'Microsoft.AspNetCore.App.Runtime.*' -delete; fi - condition: always() artifacts: - name: Linux_arm_Packages path: artifacts/packages/ @@ -308,14 +296,10 @@ jobs: buildArgs: --arch arm64 --no-build-nodejs --no-build-java - /bl:artifacts/log/build.arm64.binlog + -p:OnlyPackPlatformSpecificPackages=true + -bl:artifacts/log/build.arm64.binlog $(_BuildArgs) installNodeJs: false - afterBuild: - # Remove packages that are not rid-specific. - # TODO add a flag so macOS/Linux builds only produce runtime packages - - script: if [ -d 'artifacts/packages' ]; then find artifacts/packages/ -type f -not -name 'runtime.*' -not -name 'Microsoft.AspNetCore.App.Runtime.*' -delete; fi - condition: always() artifacts: - name: Linux_arm64_Packages path: artifacts/packages/ @@ -345,14 +329,10 @@ jobs: --os-name linux-musl --no-build-nodejs --no-build-java - /bl:artifacts/log/build.musl.binlog + -p:OnlyPackPlatformSpecificPackages=true + -bl:artifacts/log/build.musl.binlog $(_BuildArgs) installNodeJs: false - afterBuild: - # Remove packages that are not rid-specific. - # TODO add a flag so macOS/Linux builds only produce runtime packages - - script: if [ -d 'artifacts/packages' ]; then find artifacts/packages/ -type f -not -name 'runtime.*' -not -name 'Microsoft.AspNetCore.App.Runtime.*' -delete; fi - condition: always() artifacts: - name: Linux_musl_x64_Packages path: artifacts/packages/ @@ -382,14 +362,10 @@ jobs: --os-name linux-musl --no-build-nodejs --no-build-java - /bl:artifacts/log/build.musl.binlog + -p:OnlyPackPlatformSpecificPackages=true + -bl:artifacts/log/build.musl.binlog $(_BuildArgs) installNodeJs: false - afterBuild: - # Remove packages that are not rid-specific. - # TODO add a flag so macOS/Linux builds only produce runtime packages - - script: if [ -d 'artifacts/packages' ]; then find artifacts/packages/ -type f -not -name 'runtime.*' -not -name 'Microsoft.AspNetCore.App.Runtime.*' -delete; fi - condition: always() artifacts: - name: Linux_musl_arm64_Packages path: artifacts/packages/ diff --git a/Directory.Build.targets b/Directory.Build.targets index 925f9c404d37..6e6d343eb7c3 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,6 +1,9 @@ + + false + + + diff --git a/src/Components/Directory.Build.targets b/src/Components/Directory.Build.targets index 2e138a537297..bd6e40582964 100644 --- a/src/Components/Directory.Build.targets +++ b/src/Components/Directory.Build.targets @@ -1,5 +1,5 @@  - + true diff --git a/src/Framework/ref/Microsoft.AspNetCore.App.Ref.csproj b/src/Framework/ref/Microsoft.AspNetCore.App.Ref.csproj index 1ce85ef59fb7..c5343e1c56b0 100644 --- a/src/Framework/ref/Microsoft.AspNetCore.App.Ref.csproj +++ b/src/Framework/ref/Microsoft.AspNetCore.App.Ref.csproj @@ -63,7 +63,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant - + $(BuildDependsOn); GeneratePackageConflictManifest; _ResolveTargetingPackContent; @@ -161,7 +161,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant + Outputs="$(ArchiveOutputPath)" + Condition="'$(IsPackable)' == 'true'"> + + netcoreapp3.0 + $(MSBuildProjectName).$(TargetRuntimeIdentifier) true $(PackNativeAssets) false runtimes/$(TargetRuntimeIdentifier)/native/ + $(TargetRuntimeIdentifier) + none + false + false + false + false $(TargetsForTfmSpecificBuildOutput); AddPackNativeComponents - $(MSBuildProjectName).$(TargetRuntimeIdentifier) @@ -22,16 +29,17 @@ - - - + + - - + + + + diff --git a/src/Servers/IIS/AspNetCoreModuleV2/ref/Microsoft.AspNetCore.ANCMSymbols.csproj b/src/Servers/IIS/AspNetCoreModuleV2/ref/Microsoft.AspNetCore.ANCMSymbols.csproj deleted file mode 100644 index 36c3a47a9afd..000000000000 --- a/src/Servers/IIS/AspNetCoreModuleV2/ref/Microsoft.AspNetCore.ANCMSymbols.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - netcoreapp3.0 - - - - - - diff --git a/src/Servers/IIS/AspNetCoreModuleV2/ref/Microsoft.AspNetCore.ANCMSymbols.netcoreapp3.0.cs b/src/Servers/IIS/AspNetCoreModuleV2/ref/Microsoft.AspNetCore.ANCMSymbols.netcoreapp3.0.cs deleted file mode 100644 index 618082bc4a8a..000000000000 --- a/src/Servers/IIS/AspNetCoreModuleV2/ref/Microsoft.AspNetCore.ANCMSymbols.netcoreapp3.0.cs +++ /dev/null @@ -1,3 +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. - diff --git a/src/SiteExtensions/LoggingBranch/LoggingBranch.csproj b/src/SiteExtensions/LoggingBranch/LoggingBranch.csproj index 37795d0ee4cb..b78675722623 100644 --- a/src/SiteExtensions/LoggingBranch/LoggingBranch.csproj +++ b/src/SiteExtensions/LoggingBranch/LoggingBranch.csproj @@ -1,14 +1,14 @@  - $(VersionPrefix.Substring(0, $(VersionPrefix.LastIndexOf('.')))) ASP.NET Core Extensions This extension enables additional functionality for ASP.NET Core on Azure WebSites, such as enabling Azure logging. net461 false aspnet;logging;aspnetcore;AzureSiteExtension;keyvault;configuration;dataprotection content - Microsoft.AspNetCore.AzureAppServices.SiteExtension.$(TrimmedVersion).$(TargetArchitecture) + Microsoft.AspNetCore.AzureAppServices.SiteExtension.$(AspNetCoreMajorMinorVersion).$(TargetArchitecture) + $(TargetRuntimeIdentifier) $(MicrosoftNETCoreAppPackageVersion) net461 diff --git a/src/SiteExtensions/Runtime/Microsoft.AspNetCore.Runtime.SiteExtension.pkgproj b/src/SiteExtensions/Runtime/Microsoft.AspNetCore.Runtime.SiteExtension.pkgproj index 6a640ad70c30..aaa8507d7f48 100644 --- a/src/SiteExtensions/Runtime/Microsoft.AspNetCore.Runtime.SiteExtension.pkgproj +++ b/src/SiteExtensions/Runtime/Microsoft.AspNetCore.Runtime.SiteExtension.pkgproj @@ -5,11 +5,11 @@ AzureSiteExtension content - $(VersionPrefix.Substring(0, $(VersionPrefix.LastIndexOf('.')))) - ASP.NET Core $(TrimmedVersion) ($(TargetArchitecture)) Runtime + ASP.NET Core $(AspNetCoreMajorMinorVersion) ($(TargetArchitecture)) Runtime This site extension installs Microsoft.AspNetCore.App and Microsoft.NetCore.App shared runtimes. aspnetcore;AzureSiteExtension - AspNetCoreRuntime.$(TrimmedVersion).$(TargetArchitecture) + AspNetCoreRuntime.$(AspNetCoreMajorMinorVersion).$(TargetArchitecture) + $(TargetRuntimeIdentifier) true $(RedistSharedFrameworkLayoutRoot) true