Граф коммитов

62 Коммитов

Автор SHA1 Сообщение Дата
Andrew Arnott e93f5600d0
Merge remote-tracking branch 'libtemplate/microbuild' into libtemplate 2022-08-12 09:38:06 -06:00
Andrew Arnott f678dd36be
Install the nuget cred provider for .NET 6 and .NET Framework
Recently we've only been getting the .NET Core 3.1 plugin, which leaves .NET Framework-based nuget tools un-authenticated.
2022-06-08 12:20:42 -06:00
Andrew Arnott c268a9e8d9
Fix several Install-DotNetSdk issues
* Stop popping Windows Explorer dialogs
* Stop installing the same .NET runtime versions multiple times.
* Install WindowsDesktop too.
2022-05-18 16:35:45 -06:00
Andrew Arnott e0d4ad51a3
Add support for running 32-bit tests 2022-05-01 21:35:19 -06:00
Andrew Arnott 00e4059a2e
Apply Library.Template updates 2022-04-12 09:34:26 -06:00
Andrew Arnott df0a3fa03c
Merge pull request #147 from AArnott/fixSdkInstallScript
Fix Install-DotNetSdk.ps1 for Windows machine-wide installations
2022-03-30 10:11:12 -06:00
Andrew Arnott 7e34288f4c
Fix Install-DotNetSdk.ps1 for Windows machine-wide installations 2022-03-30 07:20:08 -06:00
Andrew Arnott e92074087c
Improve TargetFramework detection 2022-03-25 09:22:48 -06:00
Andrew Arnott 6d6d2d3001
Apply latest Library.Template 2021-12-03 21:12:49 -07:00
Andrew Arnott 1be4fa9788
Fix regression in platform detection in Windows Powershell 2021-12-02 16:50:33 -07:00
Andrew Arnott c5db1efad8
Fix ARM detection on Linux
The `$env:PROCESSOR_ARCHITECTURE` environment variable simply isn't set on linux.
2021-11-25 23:16:45 -07:00
Andrew Arnott 1209fe8f9e
Apply latest Library.Template 2021-11-22 15:26:48 -07:00
Andrew Arnott 346548ac0d
Search for .NET 5+ runtime requirements 2021-10-26 07:31:30 -06:00
Andrew Arnott 4438c0718d
Update to latest dotnet-install script 2021-09-14 14:27:58 -06:00
Andrew Arnott 9ac560c10f
Fix SDK installation on ARM64 2021-09-01 23:00:13 -06:00
Steve Bush 3a49199ce9 Add support for TargetFrameworks of the form netXX
Add support for TargetFrameworks of the form netXX to Dotnet SDK installer script
2021-07-25 11:11:45 -07:00
Andrew Arnott 7a23e0daa9
Fixes the Install-DotNetSdk.ps1 script when the path to the repo contains spaces (#100) 2021-05-29 19:05:50 -06:00
Andrew Arnott d3d35b668d
Add support for windowsdesktop runtimes to Install-DotNetSdk.ps1 script 2021-05-15 17:45:08 -06:00
Andrew Arnott a64ebcc0e9
Update .NET installer script
This may help with curl failures, as described in https://github.com/dotnet/install-scripts/issues/139
2021-02-08 08:29:48 -07:00
Andrew Arnott ce3aeb721e
Propagate failure to install .NET SDK
Also use pinned dotnet installer script
2021-02-05 15:31:34 -07:00
Andrew Arnott 5355f205ce
Use pinned dotnet installer script
This unblocks builds by working around https://github.com/dotnet/install-scripts/issues/136
2021-02-04 21:58:02 -07:00
Andrew Arnott 18b5902d5e
Propagate failure to install .NET SDK 2021-02-04 21:55:31 -07:00
Andrew Arnott d8b3fc060b
Adapt to GitHub's new env and path operations
Fixes #79
2020-11-16 09:48:54 -07:00
Andrew Arnott c5fea7cf7c
Apply Library.Template updates 2020-09-21 17:41:06 -06:00
Andrew Arnott 69a74f8c05
Revert incremental install of SDKs/Runtimes
The 0c212b6459 commit brought this optimization in, but it is buggy because an SDK or runtime might not be installed because it's at the machine level, but if another runtime is missing and installed, it sets env vars which hide the machine level ones already found, so now they need to also be installed. But they weren't, so the build would just fail.

Similarly, if the script is supposed to install to the machine location and the SDK is already installed at the user location, the recent optimization would skip installing it at the machine location.
2020-09-14 11:48:30 -06:00
Andrew Arnott 8377c641a8
Catch exception thrown on some machines 2020-09-13 07:45:10 -06:00
Andrew Arnott 0c212b6459
Skip .NET SDK and runtime install when unneeded 2020-09-12 21:32:08 -06:00
Andrew Arnott b79b08af1a
Add warning that non-machine installs must run within same environment 2020-08-23 13:15:57 -06:00
Andrew Arnott 5439be7fde
Move Set-EnvVars.ps1 to tools 2020-08-19 12:14:19 -06:00
Andrew Arnott 9469bdf8c4
Fix up init.cmd to set env vars from .ps1 child process 2020-08-19 12:13:49 -06:00
Andrew Arnott dfd7dfb306
Apply proper update from Library.Template 2020-07-15 17:21:07 -06:00
Andrew Arnott 6234b3a2ae
Revert "Fix Install-DotNetSdk.ps1 script when run from Windows PowerShell"
This reverts commit ee49695f11,
which did exactly the opposite of what it purported to do.
2020-07-15 17:17:35 -06:00
Andrew Arnott ee49695f11
Fix Install-DotNetSdk.ps1 script when run from Windows PowerShell
Previously it only worked on PowerShell Core in the `-InstallLocality machine` scenario.
2020-07-15 12:49:45 -06:00
Andrew Arnott bc3f88d11b
Avoid unannounced system restart
When installing the .NET SDK or runtime, if the installer wants a system restart, it would do so quietly. This avoids the restart but adds a prompt at the end of the script to inform the user of a restart being required when necessary.

Fixes #57
2020-06-15 09:36:29 -06:00
Andrew Arnott e5fad2a29b
Fix Install-DotNetSdk.ps1 script on Windows PowerShell
It misinterpreted it as a Mac/Linux environment under Windows Powershell. It only worked as-is under PowerShell Core, where `$IsWindows` is defined.
2020-06-08 15:25:52 -06:00
Andrew Arnott 860402b0b5
Fix Install-DotNetSdk.ps1 script on Windows PowerShell
It misinterpreted it as a Mac/Linux environment under Windows Powershell. It only worked as-is under PowerShell Core, where `$IsWindows` is defined.
2020-06-08 15:23:03 -06:00
Andrew Arnott 94c10b4954 Add devcontainer.json 2020-05-11 15:21:13 -06:00
Andrew Arnott 498b5e6a34
Authorize feeds in all nuget.config files throughout the repo 2020-04-20 12:19:03 -06:00
Andrew Arnott 3c0c7dae0f
Use top-level test folder 2020-04-09 23:33:39 -06:00
Andrew Arnott 234e1da8eb
Fix Install-DotNetSdk script under -WhatIf 2020-04-09 23:06:03 -06:00
Andrew Arnott cbb60159af
Add machine-wide .NET install support off Windows 2020-03-30 10:16:19 -06:00
Andrew Arnott 43712b6f53
Use more portable #! for ps1 2020-03-29 20:27:06 -06:00
Andrew Arnott c2c2ec1858
Use more portable #! for ps1 2020-03-29 20:26:44 -06:00
Andrew Arnott ae335995e9
Make ps1 scripts directly executable from linux 2020-03-29 19:44:22 -06:00
Andrew Arnott 345676cf22
Make ps1 scripts executable on linux 2020-03-29 19:44:05 -06:00
Andrew Arnott c608bf061a
Only install .NET Core runtimes once per version 2020-03-03 09:33:08 -07:00
Andrew Arnott fd21fa92cc
build authoring update 2020-02-03 16:12:30 -07:00
Andrew Arnott 366d5df26c
Start with GitHub Actions (#34) 2020-01-14 14:59:28 -07:00
Andrew Arnott 153cd7d1aa
Upgrade NuGet credprovider in Azure Pipelines
On private agents where it may exist from a prior build, it's important that we update it to whatever the latest version is.
2019-12-11 17:31:54 -07:00
Andrew Arnott a2556bf66c
Fix Install-DotNetSdk on machines without IE configured 2019-10-14 08:35:23 -06:00