Skip to content

Commit 1133531

Browse files
authored
Add VS.Redist project for ANCM (#44459)
1 parent 96dcb67 commit 1133531

File tree

8 files changed

+95
-5
lines changed

8 files changed

+95
-5
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<id>VS.Redist.Common.AspNetCore.AspNetCoreModuleV2IISExpress.$MAJOR$.$MINOR$</id>
5+
<version>1.0.0</version>
6+
<title>VS.Redist.Common.AspNetCore.AspNetCoreModuleV2IISExpress.$MAJOR$.$MINOR$</title>
7+
<authors>Microsoft</authors>
8+
<owners>Microsoft</owners>
9+
<license type="expression">$PackageLicenseExpression$</license>
10+
<projectUrl>https://github.com/dotnet/aspnetcore</projectUrl>
11+
<icon>$PackageIcon$</icon>
12+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
13+
<description>$MAJOR$.$MINOR$ ASP.NET Core Module IIS Express Windows Installer MSI as a .nupkg for internal Visual Studio build consumption</description>
14+
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
15+
<serviceable>true</serviceable>
16+
</metadata>
17+
<files>
18+
<file src="$ASPNETCORE_RUNTIME_MSI$" />
19+
<file src="$ASPNETCORE_CAB_FILE$" />
20+
<file src="$PackageIconFullPath$" target="$PackageIcon$" />
21+
</files>
22+
</package>

src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV2/AncmIISExpressV2.wixproj

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<SchemaVersion>2.0</SchemaVersion>
1414
<TempPlatform Condition="'$(Platform)' == 'x64'">x64</TempPlatform>
1515
<TempPlatform Condition="'$(Platform)' == 'x86'">Win32</TempPlatform>
16+
<ToolsetInstallerNuspecFile>$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuspec</ToolsetInstallerNuspecFile>
1617
</PropertyGroup>
1718

1819
<ItemGroup>
@@ -68,5 +69,27 @@
6869

6970
<PropertyGroup>
7071
<PackageFileName>ancm_iis_express_$(Platform)_en_v2_$(PackageVersion)$(TargetExt)</PackageFileName>
72+
<ProductNameShort>ASP.NET Core Module IIS Express V2</ProductNameShort>
7173
</PropertyGroup>
74+
75+
<Target Name="CreateANCMIISExpressNugetPackage" DependsOnTargets="CopyToArtifactsDirectory" BeforeTargets="Build">
76+
<PropertyGroup>
77+
<MsiFullPath>$(InstallersOutputPath)$(PackageFileName)</MsiFullPath>
78+
</PropertyGroup>
79+
80+
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
81+
'$(ProductNameShort)' ^
82+
'$(MsiFullPath)' ^
83+
'$(CabFullPath)' ^
84+
'$(ToolsetInstallerNuspecFile)' ^
85+
'$(ArtifactsNonShippingPackagesDir)' ^
86+
'$(Platform)' ^
87+
'$(_GeneratedPackageVersion)' ^
88+
'$(RepoRoot)' ^
89+
'$(AspNetCoreMajorVersion)' ^
90+
'$(AspNetCoreMinorVersion)' ^
91+
'$(PackageIcon)' ^
92+
'$(PackageIconFullPath)' ^
93+
'$(PackageLicenseExpression)' " />
94+
</Target>
7295
</Project>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<id>VS.Redist.Common.AspNetCore.AspNetCoreModuleV2.$MAJOR$.$MINOR$</id>
5+
<version>1.0.0</version>
6+
<title>VS.Redist.Common.AspNetCore.AspNetCoreModuleV2.$MAJOR$.$MINOR$</title>
7+
<authors>Microsoft</authors>
8+
<owners>Microsoft</owners>
9+
<license type="expression">$PackageLicenseExpression$</license>
10+
<projectUrl>https://github.com/dotnet/aspnetcore</projectUrl>
11+
<icon>$PackageIcon$</icon>
12+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
13+
<description>$MAJOR$.$MINOR$ ASP.NET Core Module Windows Installer MSI as a .nupkg for internal Visual Studio build consumption</description>
14+
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
15+
<serviceable>true</serviceable>
16+
</metadata>
17+
<files>
18+
<file src="$ASPNETCORE_RUNTIME_MSI$" />
19+
<file src="$ASPNETCORE_CAB_FILE$" />
20+
<file src="$PackageIconFullPath$" target="$PackageIcon$" />
21+
</files>
22+
</package>

src/Installers/Windows/AspNetCoreModule-Setup/ANCMV2/AncmV2.wixproj

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<GenerateRandomNamespaceGuid>true</GenerateRandomNamespaceGuid>
1212
<SchemaVersion>2.0</SchemaVersion>
1313
<DisableGuidGeneration>true</DisableGuidGeneration>
14+
<ToolsetInstallerNuspecFile>$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuspec</ToolsetInstallerNuspecFile>
1415
</PropertyGroup>
1516

1617
<ItemGroup>
@@ -56,5 +57,27 @@
5657

5758
<PropertyGroup>
5859
<PackageFileName>aspnetcoremodule_$(Platform)_en_v2_$(PackageVersion)$(TargetExt)</PackageFileName>
60+
<ProductNameShort>ASP.NET Core Module V2</ProductNameShort>
5961
</PropertyGroup>
62+
63+
<Target Name="CreateANCMNugetPackage" DependsOnTargets="CopyToArtifactsDirectory" BeforeTargets="Build">
64+
<PropertyGroup>
65+
<MsiFullPath>$(InstallersOutputPath)$(PackageFileName)</MsiFullPath>
66+
</PropertyGroup>
67+
68+
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
69+
'$(ProductNameShort)' ^
70+
'$(MsiFullPath)' ^
71+
'$(CabFullPath)' ^
72+
'$(ToolsetInstallerNuspecFile)' ^
73+
'$(ArtifactsNonShippingPackagesDir)' ^
74+
'$(Platform)' ^
75+
'$(_GeneratedPackageVersion)' ^
76+
'$(RepoRoot)' ^
77+
'$(AspNetCoreMajorVersion)' ^
78+
'$(AspNetCoreMinorVersion)' ^
79+
'$(PackageIcon)' ^
80+
'$(PackageIconFullPath)' ^
81+
'$(PackageLicenseExpression)' " />
82+
</Target>
6083
</Project>

src/Installers/Windows/SharedFramework/SharedFrameworkPackage.nuspec renamed to src/Installers/Windows/SharedFramework/SharedFramework.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<projectUrl>https://github.com/dotnet/aspnetcore</projectUrl>
1111
<icon>$PackageIcon$</icon>
1212
<requireLicenseAcceptance>true</requireLicenseAcceptance>
13-
<description>$MAJOR$.$MINOR$ ASP.NET Core TargetingPack ($ARCH$) Windows Installer MSI as a .nupkg for internal Visual Studio build consumption</description>
13+
<description>$MAJOR$.$MINOR$ ASP.NET Core Shared Framework ($ARCH$) Windows Installer MSI as a .nupkg for internal Visual Studio build consumption</description>
1414
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
1515
<serviceable>true</serviceable>
1616
</metadata>

src/Installers/Windows/SharedFramework/SharedFramework.wixproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<DefineConstants>$(DefineConstants);AspNetCoreSharedFrameworkSource=$(HarvestSource)</DefineConstants>
2222
<NamespaceGuid>$(SharedFrameworkNamespaceGuid)</NamespaceGuid>
2323
<SchemaVersion>2.0</SchemaVersion>
24-
<ToolsetInstallerNuspecFile>$(RepoRoot)\src\Installers\Windows\SharedFramework\SharedFrameworkPackage.nuspec</ToolsetInstallerNuspecFile>
24+
<ToolsetInstallerNuspecFile>$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuspec</ToolsetInstallerNuspecFile>
2525
</PropertyGroup>
2626

2727
<ItemGroup>
@@ -86,7 +86,7 @@
8686
<DefineConstants>$(DefineConstants);ProductName=$(ProductName)</DefineConstants>
8787
</PropertyGroup>
8888

89-
<Target Name="CreateSharedFrameworkNugetPackage" AfterTargets="CopyToArtifactsDirectory;Build">
89+
<Target Name="CreateSharedFrameworkNugetPackage" DependsOnTargets="CopyToArtifactsDirectory" BeforeTargets="Build">
9090
<PropertyGroup>
9191
<MsiFullPath>$(InstallersOutputPath)$(PackageFileName)</MsiFullPath>
9292
</PropertyGroup>

src/Installers/Windows/TargetingPack/TargetingPack.wixproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<DefineConstants>$(DefineConstants);AspNetCoreTargetingPackSource=$(HarvestSource)</DefineConstants>
2121
<NamespaceGuid>DDBB771F-963F-47D3-8510-9ABD04DBE1D1</NamespaceGuid>
2222
<SchemaVersion>2.0</SchemaVersion>
23-
<ToolsetInstallerNuspecFile>$(RepoRoot)\src\Installers\Windows\TargetingPack\TargetingPackPackage.nuspec</ToolsetInstallerNuspecFile>
23+
<ToolsetInstallerNuspecFile>$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuspec</ToolsetInstallerNuspecFile>
2424
<PackageVersion>$(TargetingPackVersionPrefix)</PackageVersion>
2525
<BundleVersion>$(TargetingPackVersionPrefix)</BundleVersion>
2626
</PropertyGroup>
@@ -80,7 +80,7 @@
8080
<DefineConstants>$(DefineConstants);ProductName=$(ProductName)</DefineConstants>
8181
</PropertyGroup>
8282

83-
<Target Name="CreateTargetingPackNugetPackage" AfterTargets="CopyToArtifactsDirectory;Build">
83+
<Target Name="CreateTargetingPackNugetPackage" DependsOnTargets="CopyToArtifactsDirectory" BeforeTargets="Build">
8484
<PropertyGroup>
8585
<MsiFullPath>$(InstallersOutputPath)$(PackageFileName)</MsiFullPath>
8686
</PropertyGroup>

0 commit comments

Comments
 (0)