From f867367b56162166d67e8ec636917bf0bbf5bdff Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Fri, 3 Aug 2018 13:55:25 -0700 Subject: [PATCH] Use V2 schema for V1 outputs, do not pack pdb's (#1152) --- build/repo.targets | 2 +- ...crosoft.AspNetCore.AspNetCoreModule.nuspec | 2 +- .../AspNetCore/AspNetCore.vcxproj | 8 ---- .../AspNetCore/aspnetcore_schema.xml | 39 ------------------- .../Microsoft.AspNetCore.Server.IIS.csproj | 4 +- ...tCore.Server.IntegrationTesting.IIS.csproj | 4 -- tools/update_schema.ps1 | 7 +--- 7 files changed, 5 insertions(+), 61 deletions(-) delete mode 100644 src/AspNetCoreModuleV1/AspNetCore/aspnetcore_schema.xml diff --git a/build/repo.targets b/build/repo.targets index 5a2620ec75..4415123011 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -92,7 +92,7 @@ - + diff --git a/nuget/Microsoft.AspNetCore.AspNetCoreModule.nuspec b/nuget/Microsoft.AspNetCore.AspNetCoreModule.nuspec index 80d9490328..f05fcbbdd8 100644 --- a/nuget/Microsoft.AspNetCore.AspNetCoreModule.nuspec +++ b/nuget/Microsoft.AspNetCore.AspNetCoreModule.nuspec @@ -25,7 +25,7 @@ - + diff --git a/src/AspNetCoreModuleV1/AspNetCore/AspNetCore.vcxproj b/src/AspNetCoreModuleV1/AspNetCore/AspNetCore.vcxproj index e1c11dddb6..169c79e503 100644 --- a/src/AspNetCoreModuleV1/AspNetCore/AspNetCore.vcxproj +++ b/src/AspNetCoreModuleV1/AspNetCore/AspNetCore.vcxproj @@ -213,14 +213,6 @@ - - - PreserveNewest - - - - - diff --git a/src/AspNetCoreModuleV1/AspNetCore/aspnetcore_schema.xml b/src/AspNetCoreModuleV1/AspNetCore/aspnetcore_schema.xml deleted file mode 100644 index c1590816b7..0000000000 --- a/src/AspNetCoreModuleV1/AspNetCore/aspnetcore_schema.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.Server.IIS/Microsoft.AspNetCore.Server.IIS.csproj b/src/Microsoft.AspNetCore.Server.IIS/Microsoft.AspNetCore.Server.IIS.csproj index 6025b459fb..0580c14e85 100644 --- a/src/Microsoft.AspNetCore.Server.IIS/Microsoft.AspNetCore.Server.IIS.csproj +++ b/src/Microsoft.AspNetCore.Server.IIS/Microsoft.AspNetCore.Server.IIS.csproj @@ -34,9 +34,7 @@ - + diff --git a/src/Microsoft.AspNetCore.Server.IntegrationTesting.IIS/Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj b/src/Microsoft.AspNetCore.Server.IntegrationTesting.IIS/Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj index 766b470a50..c13eb6214b 100644 --- a/src/Microsoft.AspNetCore.Server.IntegrationTesting.IIS/Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj +++ b/src/Microsoft.AspNetCore.Server.IntegrationTesting.IIS/Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj @@ -27,10 +27,6 @@ PackageCopyToOutput="true" PackagePath="contentFiles/any/any/%(ShimComponents.Platform)/%(ShimComponents.PackageSubPath)"/> - - diff --git a/tools/update_schema.ps1 b/tools/update_schema.ps1 index 64f8248af4..2a45a3152c 100644 --- a/tools/update_schema.ps1 +++ b/tools/update_schema.ps1 @@ -15,10 +15,7 @@ $ancmSchemaFiles = @( "aspnetcore_schema_v2.xml" ) -$ancmSchemaFileLocations = @( - @(Resolve-Path "$PSScriptRoot\..\src\AspNetCoreModuleV1\AspNetCore\aspnetcore_schema.xml"), - @(Resolve-Path "$PSScriptRoot\..\src\AspNetCoreModuleV2\AspNetCore\aspnetcore_schema_v2.xml") -) +$ancmSchemaFileLocation = Resolve-Path "$PSScriptRoot\..\src\AspNetCoreModuleV2\AspNetCore\aspnetcore_schema_v2.xml"; [bool]$isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") @@ -46,7 +43,7 @@ if (-not $isAdmin -and -not $WhatIfPreference) { for ($i=0; $i -lt $ancmSchemaFiles.Length; $i++) { $schemaFile = $ancmSchemaFiles[$i] - $schemaSource = $ancmSchemaFileLocations[$i] + $schemaSource = $ancmSchemaFileLocation $destinations = @( "${env:ProgramFiles(x86)}\IIS Express\config\schema\",