Added symbols to XamlApplication package.
This commit is contained in:
Родитель
1bc631b12a
Коммит
af8cb88777
|
@ -32,12 +32,10 @@
|
|||
<PackagePath>runtimes\win10-x86\native</PackagePath>
|
||||
</Content>
|
||||
|
||||
<!--
|
||||
<Content Include="..\Win32\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost.pdb">
|
||||
<Content Include="..\Win32\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost_stripped.pdb">
|
||||
<Pack>true</Pack>
|
||||
<PackagePath>runtimes\win10-x86\native</PackagePath>
|
||||
<PackagePath>runtimes\win10-x86\native\Microsoft.Toolkit.Win32.UI.XamlHost.pdb</PackagePath>
|
||||
</Content>
|
||||
-->
|
||||
|
||||
<Content Include="..\Win32\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost.pri">
|
||||
<Pack>true</Pack>
|
||||
|
@ -49,12 +47,10 @@
|
|||
<PackagePath>runtimes\win10-x64\native</PackagePath>
|
||||
</Content>
|
||||
|
||||
<!--
|
||||
<Content Include="..\x64\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost.pdb">
|
||||
<Content Include="..\x64\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost_stripped.pdb">
|
||||
<Pack>true</Pack>
|
||||
<PackagePath>runtimes\win10-x64\native</PackagePath>
|
||||
<PackagePath>runtimes\win10-x64\native\Microsoft.Toolkit.Win32.UI.XamlHost.pdb</PackagePath>
|
||||
</Content>
|
||||
-->
|
||||
|
||||
<Content Include="..\x64\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost.pri">
|
||||
<Pack>true</Pack>
|
||||
|
@ -66,12 +62,10 @@
|
|||
<PackagePath>runtimes\win10-arm\native</PackagePath>
|
||||
</Content>
|
||||
|
||||
<!--
|
||||
<Content Include="..\arm\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost.pdb">
|
||||
<Content Include="..\arm\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost_stripped.pdb">
|
||||
<Pack>true</Pack>
|
||||
<PackagePath>runtimes\win10-arm\native</PackagePath>
|
||||
<PackagePath>runtimes\win10-arm\native\Microsoft.Toolkit.Win32.UI.XamlHost.pdb</PackagePath>
|
||||
</Content>
|
||||
-->
|
||||
|
||||
<Content Include="..\arm\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost.pri">
|
||||
<Pack>true</Pack>
|
||||
|
@ -83,12 +77,10 @@
|
|||
<PackagePath>runtimes\win10-arm64\native</PackagePath>
|
||||
</Content>
|
||||
|
||||
<!--
|
||||
<Content Include="..\arm64\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost.pdb">
|
||||
<Content Include="..\arm64\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost_stripped.pdb">
|
||||
<Pack>true</Pack>
|
||||
<PackagePath>runtimes\win10-arm64\native</PackagePath>
|
||||
<PackagePath>runtimes\win10-arm64\native\Microsoft.Toolkit.Win32.UI.XamlHost.pdb</PackagePath>
|
||||
</Content>
|
||||
-->
|
||||
|
||||
<Content Include="..\arm64\$(Configuration)\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlHost.pri">
|
||||
<Pack>true</Pack>
|
||||
|
|
|
@ -12,6 +12,7 @@ pool:
|
|||
variables:
|
||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
||||
BuildConfiguration: Release
|
||||
RepositoryLocalPath : $(Build.Repository.LocalPath)
|
||||
|
||||
steps:
|
||||
|
||||
|
@ -36,9 +37,6 @@ steps:
|
|||
- script: nbgv cloud
|
||||
displayName: Set Version
|
||||
|
||||
- powershell: .\build\Install-WindowsSdkISO.ps1 18362
|
||||
displayName: Insider SDK
|
||||
|
||||
- task: BatchScript@1
|
||||
inputs:
|
||||
filename: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
|
||||
|
@ -46,9 +44,6 @@ steps:
|
|||
modifyEnvironment: true
|
||||
displayName: Setup Environment Variables
|
||||
|
||||
#- powershell: .\build\build.ps1 -target=Package
|
||||
# displayName: Build
|
||||
|
||||
- task: NuGetCommand@2
|
||||
displayName: NuGet restore Native projects
|
||||
inputs:
|
||||
|
@ -76,6 +71,9 @@ steps:
|
|||
msbuildArguments: /target:Build
|
||||
restoreNugetPackages: false # Optional
|
||||
|
||||
- powershell: "& 'C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\pdbcopy.exe' $env:RepositoryLocalPath\\x64\\Release\\Microsoft.Toolkit.Win32.UI.XamlApplication\\Microsoft.Toolkit.Win32.UI.XamlHost.pdb $env:RepositoryLocalPath\\x64\\Release\\Microsoft.Toolkit.Win32.UI.XamlApplication\\Microsoft.Toolkit.Win32.UI.XamlHost_stripped.pdb -p"
|
||||
displayName: Strip x64
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Build x86 Restore
|
||||
inputs:
|
||||
|
@ -94,6 +92,9 @@ steps:
|
|||
msbuildArguments: /target:Build
|
||||
restoreNugetPackages: false # Optional
|
||||
|
||||
- powershell: "& 'C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\pdbcopy.exe' $env:RepositoryLocalPath\\Win32\\Release\\Microsoft.Toolkit.Win32.UI.XamlApplication\\Microsoft.Toolkit.Win32.UI.XamlHost.pdb $env:RepositoryLocalPath\\Win32\\Release\\Microsoft.Toolkit.Win32.UI.XamlApplication\\Microsoft.Toolkit.Win32.UI.XamlHost_stripped.pdb -p"
|
||||
displayName: Strip x86
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Build ARM Restore
|
||||
inputs:
|
||||
|
@ -112,6 +113,9 @@ steps:
|
|||
msbuildArguments: /target:Build
|
||||
restoreNugetPackages: false # Optional
|
||||
|
||||
- powershell: "& 'C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\pdbcopy.exe' $env:RepositoryLocalPath\\ARM\\Release\\Microsoft.Toolkit.Win32.UI.XamlApplication\\Microsoft.Toolkit.Win32.UI.XamlHost.pdb $env:RepositoryLocalPath\\ARM\\Release\\Microsoft.Toolkit.Win32.UI.XamlApplication\\Microsoft.Toolkit.Win32.UI.XamlHost_stripped.pdb -p"
|
||||
displayName: Strip ARM
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Build ARM64 Restore
|
||||
inputs:
|
||||
|
@ -130,6 +134,9 @@ steps:
|
|||
msbuildArguments: /target:Build
|
||||
restoreNugetPackages: false # Optional
|
||||
|
||||
- powershell: "& 'C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\pdbcopy.exe' $env:RepositoryLocalPath\\ARM64\\Release\\Microsoft.Toolkit.Win32.UI.XamlApplication\\Microsoft.Toolkit.Win32.UI.XamlHost.pdb $env:RepositoryLocalPath\\ARM64\\Release\\Microsoft.Toolkit.Win32.UI.XamlApplication\\Microsoft.Toolkit.Win32.UI.XamlHost_stripped.pdb -p"
|
||||
displayName: Strip ARM64
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Build Pack
|
||||
inputs:
|
||||
|
|
174
build/build.cake
174
build/build.cake
|
@ -41,6 +41,8 @@ string Version = null;
|
|||
var inheritDoc = toolsDir + "/InheritDoc/tools/InheritDoc.exe";
|
||||
var inheritDocExclude = "Foo.*";
|
||||
|
||||
var pdbcopyPath = Context.Environment.GetSpecialPath(SpecialPath.ProgramFilesX86).Combine(@"Windows Kits\10\Debuggers\x64").CombineWithFilePath("pdbcopy.exe");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// METHODS
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -91,6 +93,59 @@ void VerifyHeaders(bool Replace)
|
|||
}
|
||||
}
|
||||
|
||||
void Build(PlatformTarget platformTarget)
|
||||
{
|
||||
var buildSettings = new MSBuildSettings
|
||||
{
|
||||
PlatformTarget = platformTarget,
|
||||
MaxCpuCount = 1,
|
||||
}
|
||||
.SetConfiguration("Release")
|
||||
.UseToolVersion(MSBuildToolVersion.VS2019)
|
||||
.WithTarget("Restore");
|
||||
|
||||
Information($"\nRestore {platformTarget} Step");
|
||||
MSBuild(win32Solution, buildSettings);
|
||||
|
||||
// Build once with normal dependency ordering
|
||||
buildSettings = new MSBuildSettings
|
||||
{
|
||||
PlatformTarget = platformTarget,
|
||||
MaxCpuCount = 1,
|
||||
}
|
||||
.SetConfiguration("Release")
|
||||
.UseToolVersion(MSBuildToolVersion.VS2019)
|
||||
.WithTarget("Build");
|
||||
|
||||
Information($"\nBuild {platformTarget} Step");
|
||||
MSBuild(win32Solution, buildSettings);
|
||||
|
||||
Information($"\nStripping {platformTarget} PDB");
|
||||
|
||||
string arch;
|
||||
switch(platformTarget)
|
||||
{
|
||||
case PlatformTarget.x86:
|
||||
arch = "Win32";
|
||||
break;
|
||||
default:
|
||||
arch = platformTarget.ToString();
|
||||
break;
|
||||
}
|
||||
|
||||
var args = new ProcessArgumentBuilder()
|
||||
.AppendQuoted(baseDir + $"/{arch}/Release/Microsoft.Toolkit.Win32.UI.XamlApplication/Microsoft.Toolkit.Win32.UI.XamlHost.pdb")
|
||||
.AppendQuoted(baseDir + $"/{arch}/Release/Microsoft.Toolkit.Win32.UI.XamlApplication/Microsoft.Toolkit.Win32.UI.XamlHost_stripped.pdb")
|
||||
.AppendSwitch("-p", "");
|
||||
|
||||
var result = StartProcess(pdbcopyPath, new ProcessSettings { Arguments = args });
|
||||
|
||||
if (result != 0)
|
||||
{
|
||||
throw new InvalidOperationException($"PDBCopy stripping for '{arch}' failed!");
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// DEFAULT TASK
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -157,121 +212,10 @@ Task("Build")
|
|||
NuGetRestore(solution, nugetRestoreSettings);
|
||||
}
|
||||
|
||||
{
|
||||
var buildSettings = new MSBuildSettings
|
||||
{
|
||||
PlatformTarget = PlatformTarget.x64,
|
||||
MaxCpuCount = 1,
|
||||
}
|
||||
.SetConfiguration("Release")
|
||||
.UseToolVersion(MSBuildToolVersion.VS2019)
|
||||
.WithTarget("Restore");
|
||||
|
||||
Information("\nRestore x64 Step");
|
||||
MSBuild(win32Solution, buildSettings);
|
||||
}
|
||||
|
||||
{
|
||||
// Build once with normal dependency ordering
|
||||
var buildSettings = new MSBuildSettings
|
||||
{
|
||||
PlatformTarget = PlatformTarget.x64,
|
||||
MaxCpuCount = 1,
|
||||
}
|
||||
.SetConfiguration("Release")
|
||||
.UseToolVersion(MSBuildToolVersion.VS2019)
|
||||
.WithTarget("Build");
|
||||
|
||||
Information("\nBuild x64 Step");
|
||||
MSBuild(win32Solution, buildSettings);
|
||||
}
|
||||
|
||||
{
|
||||
var buildSettings = new MSBuildSettings
|
||||
{
|
||||
PlatformTarget = PlatformTarget.x86,
|
||||
MaxCpuCount = 1,
|
||||
}
|
||||
.SetConfiguration("Release")
|
||||
.UseToolVersion(MSBuildToolVersion.VS2019)
|
||||
.WithTarget("Restore");
|
||||
|
||||
Information("\nRestore x86 Step");
|
||||
MSBuild(win32Solution, buildSettings);
|
||||
}
|
||||
|
||||
{
|
||||
// Build once with normal dependency ordering
|
||||
var buildSettings = new MSBuildSettings
|
||||
{
|
||||
PlatformTarget = PlatformTarget.x86,
|
||||
MaxCpuCount = 1,
|
||||
}
|
||||
.SetConfiguration("Release")
|
||||
.UseToolVersion(MSBuildToolVersion.VS2019)
|
||||
.WithTarget("Build");
|
||||
|
||||
Information("\nBuild x86 Step");
|
||||
MSBuild(win32Solution, buildSettings);
|
||||
}
|
||||
|
||||
{
|
||||
var buildSettings = new MSBuildSettings
|
||||
{
|
||||
PlatformTarget = PlatformTarget.ARM,
|
||||
MaxCpuCount = 1,
|
||||
}
|
||||
.SetConfiguration("Release")
|
||||
.UseToolVersion(MSBuildToolVersion.VS2019)
|
||||
.WithTarget("Restore");
|
||||
|
||||
Information("\nRestore ARM Step");
|
||||
MSBuild(win32Solution, buildSettings);
|
||||
}
|
||||
|
||||
{
|
||||
// Build once with normal dependency ordering
|
||||
var buildSettings = new MSBuildSettings
|
||||
{
|
||||
PlatformTarget = PlatformTarget.ARM,
|
||||
MaxCpuCount = 1,
|
||||
}
|
||||
.SetConfiguration("Release")
|
||||
.UseToolVersion(MSBuildToolVersion.VS2019)
|
||||
.WithTarget("Build");
|
||||
|
||||
Information("\nBuild ARM Step");
|
||||
MSBuild(win32Solution, buildSettings);
|
||||
}
|
||||
|
||||
{
|
||||
var buildSettings = new MSBuildSettings
|
||||
{
|
||||
PlatformTarget = PlatformTarget.ARM64,
|
||||
MaxCpuCount = 1,
|
||||
}
|
||||
.SetConfiguration("Release")
|
||||
.UseToolVersion(MSBuildToolVersion.VS2019)
|
||||
.WithTarget("Restore");
|
||||
|
||||
Information("\nRestore ARM64 Step");
|
||||
MSBuild(win32Solution, buildSettings);
|
||||
}
|
||||
|
||||
{
|
||||
// Build once with normal dependency ordering
|
||||
var buildSettings = new MSBuildSettings
|
||||
{
|
||||
PlatformTarget = PlatformTarget.ARM64,
|
||||
MaxCpuCount = 1,
|
||||
}
|
||||
.SetConfiguration("Release")
|
||||
.UseToolVersion(MSBuildToolVersion.VS2019)
|
||||
.WithTarget("Build");
|
||||
|
||||
Information("\nBuild ARM64 Step");
|
||||
MSBuild(win32Solution, buildSettings);
|
||||
}
|
||||
Build(PlatformTarget.x64);
|
||||
Build(PlatformTarget.x86);
|
||||
Build(PlatformTarget.ARM);
|
||||
Build(PlatformTarget.ARM64);
|
||||
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче