Skip to content

Commit

Permalink
Inline pkg descriptions for installer
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorHofer committed Dec 22, 2020
1 parent 5a09488 commit 2076d7b
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 53 deletions.
1 change: 0 additions & 1 deletion src/installer/pkg/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<PackageLicenseFile>$(RepoRoot)LICENSE.TXT</PackageLicenseFile>
<PackageThirdPartyNoticesFile>$(RepoRoot)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageDescriptionFile>$(InstallerProjectRoot)pkg/projects/descriptions.json</PackageDescriptionFile>
<!-- This link should be updated for each release milestone, currently this points to 1.0.0 -->
<ReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=799417</ReleaseNotes>
<ProjectUrl>https://dot.net</ProjectUrl>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<VersionProp>AppHostVersion</VersionProp>
<PackageDescription>Provides the .NET app bootstrapper intended for use in the application directory</PackageDescription>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<VersionProp>HostVersion</VersionProp>

<InstallerName>dotnet-host</InstallerName>
<PackageDescription>Provides an executable implementation of the Microsoft DotNet Framework and SDK launcher module</PackageDescription>
</PropertyGroup>

<ItemGroup Condition="'$(PackageTargetRuntime)' != ''">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<VersionProp>HostPolicyVersion</VersionProp>
<PackageDescription>Provides a CoreCLR hosting policy implementation -- configuration settings, assembly paths and assembly servicing</PackageDescription>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<VersionProp>HostResolverVersion</VersionProp>

<InstallerName>dotnet-hostfxr</InstallerName>
<PackageDescription>Provides an implementation of framework resolution strategy used by Microsoft.NETCore.DotNetHost</PackageDescription>
</PropertyGroup>

<ItemGroup>
Expand Down
32 changes: 0 additions & 32 deletions src/installer/pkg/projects/descriptions.json

This file was deleted.

4 changes: 3 additions & 1 deletion src/installer/pkg/sfx/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>
<PropertyGroup>
<EnsureRuntimeIdentifierSet>true</EnsureRuntimeIdentifierSet>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
</PropertyGroup>

<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props, $(MSBuildThisFileDirectory)..))" />

<PropertyGroup>
Expand All @@ -20,5 +20,7 @@
<ProductBrandPrefix>Microsoft .NET</ProductBrandPrefix>
<GenerateInstallers>true</GenerateInstallers>
<GenerateVSInsertionPackages>true</GenerateVSInsertionPackages>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<UseRuntimePackageDisclaimer>true</UseRuntimePackageDisclaimer>
</PropertyGroup>
</Project>
16 changes: 0 additions & 16 deletions src/installer/pkg/sfx/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets, $(MSBuildThisFileDirectory)..))" />

<PropertyGroup>
<Title>$(PackageId)</Title>
<RuntimeDisclaimer>Internal implementation package not meant for direct consumption. Please do not reference directly.</RuntimeDisclaimer>
<MinimumNuGet3VersionDescription>When using NuGet 3.x, this package requires at least version 3.4.</MinimumNuGet3VersionDescription>
</PropertyGroup>

<Target Name="GeneratePackageDescription"
BeforeTargets="GenerateNuspec"
DependsOnTargets="InitializeSourceControlInformationFromSourceControlManager">
<PropertyGroup>
<PackageDescription Condition="'$(Description)' == ''">$(RuntimeDisclaimer) %0A$(SourceRevisionId) %0A$(MinimumNuGet3VersionDescription)</PackageDescription>
<PackageDescription Condition="'$(Description)' != ''">$(RuntimeDisclaimer) %0A$(Description) %0A$(SourceRevisionId) %0A$(MinimumNuGet3VersionDescription)</PackageDescription>
</PropertyGroup>
</Target>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ArchiveName>dotnet-targeting-pack</ArchiveName>
<InstallerName>dotnet-targeting-pack</InstallerName>
<VSInsertionShortComponentName>NetCore.TargetingPack</VSInsertionShortComponentName>
<Description>A set of .NET APIs that are included in the default .NET application model. Contains reference assemblies, documentation, and other design-time assets.</Description>
<PackageDescription>A set of .NET APIs that are included in the default .NET application model. Contains reference assemblies, documentation, and other design-time assets.</PackageDescription>
</PropertyGroup>

<Target Name="AddFrameworkFilesToPackage" DependsOnTargets="ResolveLibrariesFromLocalBuild" BeforeTargets="GetFilesToPackage">
Expand Down

0 comments on commit 2076d7b

Please sign in to comment.