Skip to content

Commit 5156b7e

Browse files
authored
Merge pull request #2606 from sharwell/release/1.1.0-beta005
Release/1.1.0 beta005
2 parents 41f6ff7 + 7ca1f2e commit 5156b7e

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

StyleCop.Analyzers/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.1.0.35</Version>
12-
<FileVersion>1.1.0.35</FileVersion>
11+
<Version>1.1.0.36</Version>
12+
<FileVersion>1.1.0.36</FileVersion>
1313
<InformationalVersion>1.1.0-dev</InformationalVersion>
1414
</PropertyGroup>
1515

build/build.ps1

Lines changed: 5 additions & 4 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,
@@ -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 "..\StyleCop.Analyzers\StyleCop.Analyzers.CodeFixes\bin\$BuildConfig\StyleCop.Analyzers.dll"
94+
$assembly = Resolve-FullPath -Path "..\StyleCop.Analyzers\StyleCop.Analyzers.CodeFixes\bin\$BuildConfig\$($pair.Key)\StyleCop.Analyzers.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 "..\StyleCop.Analyzers\StyleCop.Analyzers.CodeFixes\bin\$BuildConfig\StyleCop.Analyzers.CodeFixes.dll"
102+
$assembly = Resolve-FullPath -Path "..\StyleCop.Analyzers\StyleCop.Analyzers.CodeFixes\bin\$BuildConfig\$($pair.Key)\StyleCop.Analyzers.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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ If ($Version.Contains('-')) {
44

55
# Use the development keys
66
$Keys = @{
7-
'portable-net45' = '97d9e3aa481481c8'
7+
'netstandard1.1' = '97d9e3aa481481c8'
8+
'net452' = '97d9e3aa481481c8'
89
}
910

1011
} Else {
1112

1213
# Use the final release keys
1314
$Keys = @{
14-
'portable-net45' = 'cfeb5dbada5e1c25'
15+
'netstandard1.1' = 'cfeb5dbada5e1c25'
16+
'net452' = 'cfeb5dbada5e1c25'
1517
}
1618

1719
}

0 commit comments

Comments
 (0)