-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathgetBuildPreReqs.ps1
More file actions
23 lines (19 loc) · 1.22 KB
/
getBuildPreReqs.ps1
File metadata and controls
23 lines (19 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License - see LICENSE file in this repo.
Remove-Item -force "DIA/*"
if (-not (Test-Path DIA/Dia2Lib.dll)) {
pushd "$env:TEMP"
midl.exe /x64 /I "$env:VSINSTALLDIR/DIA SDK/include" "$env:VSINSTALLDIR/DIA SDK/idl/dia2.idl" /tlb dia2.tlb
popd
tlbimp.exe "$env:TEMP/dia2.tlb" /machine:x64 /out:"DIA/Dia2Lib.dll"
}
copy "$env:VSINSTALLDIR/DIA SDK/bin/amd64/msdia140.dll" "DIA/msdia140.dll"
@(dir "DIA/msdia140.dll").VersionInfo.ToString()
& mt.exe -tlb:"DIA/msdia140.dll" -dll:"DIA/msdia140.dll" -out:"DIA/msdia140.dll.manifest"
if ((dir "DIA/*").Length -ne 3)
{ Write-Error "DIA SDK not found / typelib / manifest missing. Exiting..." -ErrorAction Stop }
# fix the file path to msdia140.dll within the manifest
$diaManifestPath = "DIA/msdia140.dll.manifest"
(Get-Content $diaManifestPath).Replace("DIA/msdia140.dll", "msdia140.dll") -Replace " description", " threadingModel=`"Both`" description " | Set-Content $diaManifestPath
@(dir "../packages/Microsoft.Debugging.Platform.DbgEng.20260109.1235.0/content/amd64/dbghelp.dll").VersionInfo.ToString()
@(dir "../packages/Microsoft.Debugging.Platform.SymSrv.20260109.1235.0/content/amd64/symsrv.dll").VersionInfo.ToString()