Skip to content

Commit

Permalink
Stop running InstalVisualStudio.ps1 during CI builds (#9515)
Browse files Browse the repository at this point in the history
  • Loading branch information
natemcmaster committed Apr 19, 2019
1 parent d46388b commit d4eaeec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .azure/pipelines/jobs/default-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ jobs:
steps:
- checkout: self
clean: true
- ${{ if eq(parameters.agentOs, 'Windows') }}:
- powershell: ./eng/scripts/InstallVisualStudio.ps1 -Edition BuildTools -Quiet
displayName: Install Build Tools for Visual Studio 2019
- ${{ if eq(parameters.installNodeJs, 'true') }}:
- task: NodeTool@0
displayName: Install Node 10.x
Expand Down
2 changes: 1 addition & 1 deletion docs/BuildFromSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Building ASP.NET Core on Windows requires:

* Windows 10
* At least 10 GB of disk space and a good internet connection (our build scripts download a lot of tools and dependencies)
* Visual Studio **2019 Preview**. <https://visualstudio.com>
* Visual Studio 2019. <https://visualstudio.com>
* To install the exact required components, run [eng/scripts/InstallVisualStudio.ps1](/eng/scripts/InstallVisualStudio.ps1).
```ps1
PS> ./eng/scripts/InstallVisualStudio.ps1
Expand Down
5 changes: 5 additions & 0 deletions eng/scripts/InstallVisualStudio.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ param(
[switch]$Quiet
)

if ($env:TF_BUILD) {
Write-Error 'This script is not intended for use on CI. It is only meant to be used to install a local developer environment. If you need to change Visual Studio requirements in CI agents, contact the @aspnet/build team.'
exit 1
}

if ($Passive -and $Quiet) {
Write-Host -ForegroundColor Red "Error: The -Passive and -Quiet options cannot be used together."
Write-Host -ForegroundColor Red "Run ``Get-Help $PSCommandPath`` for more details."
Expand Down
2 changes: 1 addition & 1 deletion korebuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Windows"
],
"includePrerelease": true,
"versionRange": "[16.0.28608.199, 17.0)",
"versionRange": "[16.0, 17.0)",
"requiredWorkloads": [
"Microsoft.VisualStudio.Component.VC.ATL",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
Expand Down

0 comments on commit d4eaeec

Please sign in to comment.