Skip to content

Commit a929ae1

Browse files
authored
[Gallery] Configure local build.ps1 for Roslyn Analyzer (#8891) (#8893)
* Update Roslyn Analyzer * Update * Import project * Update build.ps1 * Add another package source * Update build.ps1 * Add another package source
1 parent 148642d commit a929ae1

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

NuGet.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
<package pattern="NuGet.StrongName.*" />
6464
<package pattern="Strathweb.CacheOutput.WebApi2.StrongName" />
6565
</packageSource>
66+
<packageSource key="nuget-server-upstreams">
67+
<package pattern="Microsoft.Internal.*" />
68+
</packageSource>
6669
</packageSourceMapping>
6770
<activePackageSource>
6871
<add key="All" value="(Aggregate source)" />

build.ps1

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ param (
1010
[string]$PackageSuffix,
1111
[string]$Branch,
1212
[string]$CommitSHA,
13-
[string]$BuildBranchCommit = '92d2a66ef95a1772e748872d77f34a6e951ffdc8',
13+
[string]$BuildBranchCommit = '65e723253187442f5b8ea537f672bd9328ade5a7',
1414
[string]$VerifyMicrosoftPackageVersion = $null
1515
)
1616

@@ -54,7 +54,7 @@ if (-not $BuildNumber) {
5454
Trace-Log "Build #$BuildNumber started at $startTime"
5555

5656
$BuildErrors = @()
57-
57+
5858
Invoke-BuildStep 'Getting private build tools' { Install-PrivateBuildTools } `
5959
-ev +BuildErrors
6060

@@ -63,19 +63,19 @@ Invoke-BuildStep 'Cleaning test results' { Clean-Tests } `
6363

6464
Invoke-BuildStep 'Installing NuGet.exe' { Install-NuGet } `
6565
-ev +BuildErrors
66-
66+
6767
Invoke-BuildStep 'Clearing package cache' { Clear-PackageCache } `
6868
-skip:(-not $CleanCache) `
6969
-ev +BuildErrors
70-
70+
7171
Invoke-BuildStep 'Clearing artifacts' { Clear-Artifacts } `
7272
-ev +BuildErrors
7373

7474
Invoke-BuildStep 'Restoring solution packages' { `
7575
Install-SolutionPackages -path (Join-Path $PSScriptRoot ".nuget\packages.config") -output (Join-Path $PSScriptRoot "packages") -excludeversion } `
7676
-skip:$SkipRestore `
7777
-ev +BuildErrors
78-
78+
7979
Invoke-BuildStep 'Set version metadata in AssemblyInfo.cs' {
8080
$Paths = `
8181
(Join-Path $PSScriptRoot "src\NuGetGallery\Properties\AssemblyInfo.g.cs"), `
@@ -98,6 +98,9 @@ Invoke-BuildStep 'Set version metadata in AssemblyInfo.cs' {
9898
} `
9999
-ev +BuildErrors
100100

101+
Invoke-BuildStep 'Removing .editorconfig file in NuGetGallery' { Remove-EditorconfigFile -Directory $PSScriptRoot } `
102+
-ev +BuildErrors
103+
101104
Invoke-BuildStep 'Building solution' {
102105
$SolutionPath = Join-Path $PSScriptRoot "NuGetGallery.sln"
103106
Build-Solution -Configuration $Configuration -BuildNumber $BuildNumber -SolutionPath $SolutionPath -SkipRestore:$SkipRestore -MSBuildProperties "/p:MvcBuildViews=true" `

0 commit comments

Comments
 (0)