Skip to content
This repository was archived by the owner on Apr 8, 2019. It is now read-only.

Commit 7b16241

Browse files
authored
Merge pull request #19 from sharwell/release/1.0.0-beta001
Release/1.0.0 beta001
2 parents 8e28bd6 + f2c0e94 commit 7b16241

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

PublicApiAnalyzer/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<Copyright>Copyright © Tunnel Vision Laboratories, LLC 2015</Copyright>
99
<NeutralLanguage>en-US</NeutralLanguage>
1010

11-
<Version>1.0.0.1</Version>
12-
<FileVersion>1.0.0.1</FileVersion>
11+
<Version>1.0.0.2</Version>
12+
<FileVersion>1.0.0.2</FileVersion>
1313
<InformationalVersion>1.0.0-dev</InformationalVersion>
1414
</PropertyGroup>
1515

build/build.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
param (
22
[switch]$Debug,
3-
[string]$VisualStudioVersion = '14.0',
3+
[string]$VisualStudioVersion = '15.0',
44
[switch]$SkipKeyCheck,
55
[string]$Verbosity = 'minimal',
66
[string]$Logger,
@@ -37,7 +37,7 @@ If (-not (Test-Path $nuget)) {
3737
mkdir '..\.nuget'
3838
}
3939

40-
$nugetSource = 'http://nuget.org/nuget.exe'
40+
$nugetSource = 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe'
4141
Invoke-WebRequest $nugetSource -OutFile $nuget
4242
If (-not $?) {
4343
$host.ui.WriteErrorLine('Unable to download NuGet executable, aborting!')
@@ -46,7 +46,8 @@ If (-not (Test-Path $nuget)) {
4646
}
4747

4848
# build the main project
49-
$msbuild = "${env:ProgramFiles(x86)}\MSBuild\$VisualStudioVersion\Bin\MSBuild.exe"
49+
$visualStudio = (Get-ItemProperty 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VS7')."$VisualStudioVersion"
50+
$msbuild = "$visualStudio\MSBuild\$VisualStudioVersion\Bin\MSBuild.exe"
5051
If (-not (Test-Path $msbuild)) {
5152
$host.UI.WriteErrorLine("Couldn't find MSBuild.exe")
5253
exit 1
@@ -90,15 +91,15 @@ if (-not $SkipKeyCheck) {
9091
. .\keys.ps1
9192

9293
foreach ($pair in $Keys.GetEnumerator()) {
93-
$assembly = Resolve-FullPath -Path "..\PublicApiAnalyzer\PublicApiAnalyzer.CodeFixes\bin\$BuildConfig\PublicApiAnalyzer.dll"
94+
$assembly = Resolve-FullPath -Path "..\PublicApiAnalyzer\PublicApiAnalyzer.CodeFixes\bin\$BuildConfig\$($pair.Key)\PublicApiAnalyzer.dll"
9495
# Run the actual check in a separate process or the current process will keep the assembly file locked
9596
powershell -Command ".\check-key.ps1 -Assembly '$assembly' -ExpectedKey '$($pair.Value)' -Build '$($pair.Key)'"
9697
If (-not $?) {
9798
$host.ui.WriteErrorLine('Failed to verify strong name key for build, aborting!')
9899
exit $LASTEXITCODE
99100
}
100101

101-
$assembly = Resolve-FullPath -Path "..\PublicApiAnalyzer\PublicApiAnalyzer.CodeFixes\bin\$BuildConfig\PublicApiAnalyzer.CodeFixes.dll"
102+
$assembly = Resolve-FullPath -Path "..\PublicApiAnalyzer\PublicApiAnalyzer.CodeFixes\bin\$BuildConfig\$($pair.Key)\PublicApiAnalyzer.CodeFixes.dll"
102103
# Run the actual check in a separate process or the current process will keep the assembly file locked
103104
powershell -Command ".\check-key.ps1 -Assembly '$assembly' -ExpectedKey '$($pair.Value)' -Build '$($pair.Key)'"
104105
If (-not $?) {

build/keys.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ If ($Version.Contains('-')) {
44

55
# Use the development keys
66
$Keys = @{
7-
'portable-net45' = '4d7c3a889f597bf5'
7+
'netstandard1.1' = '4d7c3a889f597bf5'
88
}
99

1010
} Else {
1111

1212
# Use the final release keys
1313
$Keys = @{
14-
'portable-net45' = '7f89516dec9aea59'
14+
'netstandard1.1' = '7f89516dec9aea59'
1515
}
1616

1717
}

0 commit comments

Comments
 (0)