Generate UIAutomationCore.dll dynamically now
This commit is contained in:
Родитель
c6a67efece
Коммит
1583fa3e55
|
@ -4,6 +4,9 @@
|
||||||
# The output of the test
|
# The output of the test
|
||||||
scores.csv
|
scores.csv
|
||||||
|
|
||||||
|
# The UIAutomation dll
|
||||||
|
Interop.UIAutomationCore.dll
|
||||||
|
|
||||||
# User-specific files
|
# User-specific files
|
||||||
*.suo
|
*.suo
|
||||||
*.user
|
*.user
|
||||||
|
|
Двоичные данные
Interop.UIAutomationCore.dll
Двоичные данные
Interop.UIAutomationCore.dll
Двоичный файл не отображается.
|
@ -0,0 +1,8 @@
|
||||||
|
if([System.IntPtr]::Size -eq 8){ #64 bit
|
||||||
|
& 'C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\TlbImp.exe' `
|
||||||
|
C:\Windows\System32\UIAutomationCore.dll /out:Interop.UIAutomationCore.dll
|
||||||
|
}
|
||||||
|
else { #32 bit
|
||||||
|
& 'C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\TlbImp.exe' `
|
||||||
|
C:\Windows\System32\UIAutomationCore.dll /out:Interop.UIAutomationCore.dll
|
||||||
|
}
|
4
run.ps1
4
run.ps1
|
@ -2,6 +2,10 @@ if(-Not (Test-Path .\nuget.exe)){
|
||||||
(New-Object net.WebClient).DownloadFile('https://nuget.org/nuget.exe', 'nuget.exe')
|
(New-Object net.WebClient).DownloadFile('https://nuget.org/nuget.exe', 'nuget.exe')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(-Not (Test-Path .\Interop.UIAutomationCore.dll)){
|
||||||
|
Invoke-Expression -Command generate_dll.ps1
|
||||||
|
}
|
||||||
|
|
||||||
nuget.exe restore A11y.sln -Verbosity quiet
|
nuget.exe restore A11y.sln -Verbosity quiet
|
||||||
|
|
||||||
$msbuild = Get-Item C:\Windows\Microsoft.NET\Framework\v4*\MSBuild\
|
$msbuild = Get-Item C:\Windows\Microsoft.NET\Framework\v4*\MSBuild\
|
||||||
|
|
Загрузка…
Ссылка в новой задаче