From 875c0d90e5cd42470d2552bc1e1e33609f22a808 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 22 Feb 2021 20:38:21 +0100 Subject: [PATCH] Minor msbuild code cleanup in installer partition (#48603) * Minor code clean-up in installer partition * Move prepare-artifacts.proj into installer root --- eng/Subsets.props | 2 +- src/installer/Directory.Build.props | 72 ++------- src/installer/managed/CommonManaged.props | 20 --- .../Microsoft.NET.HostModel.csproj | 19 ++- src/installer/pkg/Directory.Build.targets | 116 +------------ src/installer/{publish => }/prepare-artifacts.proj | 179 +++++++++++++++++---- src/installer/publish/Directory.Build.props | 35 ---- src/installer/publish/Directory.Build.targets | 131 --------------- 8 files changed, 176 insertions(+), 398 deletions(-) delete mode 100644 src/installer/managed/CommonManaged.props rename src/installer/{publish => }/prepare-artifacts.proj (51%) delete mode 100644 src/installer/publish/Directory.Build.props delete mode 100644 src/installer/publish/Directory.Build.targets diff --git a/eng/Subsets.props b/eng/Subsets.props index 42dbe9a..5493669 100644 --- a/eng/Subsets.props +++ b/eng/Subsets.props @@ -306,7 +306,7 @@ - + diff --git a/src/installer/Directory.Build.props b/src/installer/Directory.Build.props index 0ab6a6e..c8f8577 100644 --- a/src/installer/Directory.Build.props +++ b/src/installer/Directory.Build.props @@ -1,81 +1,31 @@ - - - $(BaseIntermediateOutputPath) - - - - - - $(InstallerProjectRoot)signing\ - - - - - true $(TargetArchitecture) - - - - - $(DefineConstants),DEBUG,TRACE - - - - $(DefineConstants),TRACE - - - - $(OutputRid) - - - + $(DefineConstants),DEBUG,TRACE + $(DefineConstants),TRACE + $(OutputRid) $(OutputRid) - - - - - $(DotNetOutputBlobFeedDir)assets/ + + true $(OutputRid).$(Configuration) - $(ArtifactsBinDir)$(OSPlatformConfig)\ - $(BaseOutputRootPath)crossgen\ - - $(ArtifactsObjDir)$(OSPlatformConfig)\ - - $(ArtifactsBinDir)$(OSPlatformConfig)/ - $(PackagesBasePath)symbols/ + $(ArtifactsObjDir)$(OSPlatformConfig)\ + + $(DotNetOutputBlobFeedDir)assets/ $(ArtifactsShippingPackagesDir) - $(ArtifactsShippingPackagesDir) - - - - false - true - - true - $(AssetOutputPath)sharedfx_$(OutputRid)_$(Configuration)_version_badge.svg - - - - true + $(ArtifactsShippingPackagesDir) diff --git a/src/installer/managed/CommonManaged.props b/src/installer/managed/CommonManaged.props deleted file mode 100644 index 573218c..0000000 --- a/src/installer/managed/CommonManaged.props +++ /dev/null @@ -1,20 +0,0 @@ - - - true - true - $(MajorVersion).$(MinorVersion).$(PatchVersion) - $(VersionPrefix) - true - true - true - true - - $(NoWarn);CS1591 - - - - - MicrosoftAspNetCore - true - - diff --git a/src/installer/managed/Microsoft.NET.HostModel/Microsoft.NET.HostModel.csproj b/src/installer/managed/Microsoft.NET.HostModel/Microsoft.NET.HostModel.csproj index 4e461a1..923e75d 100644 --- a/src/installer/managed/Microsoft.NET.HostModel/Microsoft.NET.HostModel.csproj +++ b/src/installer/managed/Microsoft.NET.HostModel/Microsoft.NET.HostModel.csproj @@ -4,18 +4,21 @@ netstandard2.0 Abstractions for modifying .NET host binaries false - - - + true + true + true + true + true + + $(NoWarn);CS1591 true + + MicrosoftAspNetCore + true - - - - 1.8.0 - + diff --git a/src/installer/pkg/Directory.Build.targets b/src/installer/pkg/Directory.Build.targets index f98063d..9a502b2 100644 --- a/src/installer/pkg/Directory.Build.targets +++ b/src/installer/pkg/Directory.Build.targets @@ -1,5 +1,5 @@ - + - - - - - $(PreReleaseVersionLabel.Substring(0,1).ToUpperInvariant()) - $(ReleaseBrandSuffix)$(PreReleaseVersionLabel.Substring(1)) - $(ReleaseBrandSuffix) $(PreReleaseVersionIteration) - - - - Microsoft .NET - $(ProductionVersion) - $(ProductionVersion) $(ReleaseBrandSuffix) - - $(ProductBrandPrefix) Host - $(ProductBrandSuffix) - $(ProductBrandPrefix) Host FX Resolver - $(ProductBrandSuffix) - $(ProductBrandPrefix) Targeting Pack - $(ProductBrandSuffix) - $(ProductBrandPrefix) AppHost Pack - $(ProductBrandSuffix) - $(ProductBrandPrefix) Crossgen2 Pack - $(ProductBrandSuffix) - $(ProductBrandPrefix) Runtime - $(ProductBrandSuffix) - - com.microsoft.dotnet.sharedhost.component.osx.$(TargetArchitecture) - com.microsoft.dotnet.hostfxr.$(HostResolverVersion).component.osx.$(TargetArchitecture) - com.microsoft.dotnet.sharedframework.$(SharedFrameworkName).$(SharedFrameworkNugetVersion).component.osx.$(TargetArchitecture) - com.microsoft.dotnet.$(SharedFrameworkName).$(SharedFrameworkNugetVersion).osx.$(TargetArchitecture) - - - - - - - - - - - - - false - true - - - - - - - - - - - - - - - false - true - - - - - - - - 5 - - 1996-04-01 - - - - - - - - - - - - diff --git a/src/installer/publish/prepare-artifacts.proj b/src/installer/prepare-artifacts.proj similarity index 51% rename from src/installer/publish/prepare-artifacts.proj rename to src/installer/prepare-artifacts.proj index 39200d4..a5a6720 100644 --- a/src/installer/publish/prepare-artifacts.proj +++ b/src/installer/prepare-artifacts.proj @@ -1,5 +1,19 @@ - - + + + $(NetCoreAppCurrent) + + + false + true + + .sha512 + $(ArtifactsDir)PackageDownload/ + + + + + + - - + AfterTargets="Build" + DependsOnTargets="GetProductVersions;FindDownloadedArtifacts;CreateChecksums"> Manifest.xml $(ArtifactsLogDir)AssetManifest/$(AssetManifestFilename) @@ -144,20 +149,140 @@ - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/installer/publish/Directory.Build.props b/src/installer/publish/Directory.Build.props deleted file mode 100644 index 982caf6..0000000 --- a/src/installer/publish/Directory.Build.props +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - $(NetCoreAppCurrent) - - - - - false - true - - - - - dotnet - $(ContainerName) - - https://dotnetcli.blob.core.windows.net/ - - .sha512 - $(ArtifactsDir)PackageDownload/ - - - $(PublishBlobFeedUrl) - https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json - - - - - - - - diff --git a/src/installer/publish/Directory.Build.targets b/src/installer/publish/Directory.Build.targets deleted file mode 100644 index 24576c8..0000000 --- a/src/installer/publish/Directory.Build.targets +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- 2.7.4