-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Appveyor: Added installation of .NET SDK
- Loading branch information
1 parent
27837aa
commit 349dfc8
Showing
3 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
$DOTNET_URL = "https://dot.net/v1/dotnet-install.ps1" | ||
$CMAKE_URL = "https://github.com/Kitware/CMake/releases/download/v3.23.3/cmake-3.23.3-windows-x86_64.zip" | ||
|
||
# Install .NET | ||
Invoke-WebRequest $DOTNET_URL -OutFile "dotnet-install.ps1" | ||
./dotnet-install.ps1 -Version 6.0.100 -InstallDir "C:\Program Files\dotnet" | ||
|
||
# Install CMake | ||
Invoke-WebRequest $CMAKE_URL -OutFile "cmake.zip" | ||
Expand-Archive -Path cmake.zip -DestinationPath C:\projects\deps -Force | ||
|
||
# Configuring environment | ||
Move-Item -Path (Get-ChildItem C:\projects\deps\cmake-* | Select-Object -ExpandProperty FullName) -Destination C:\projects\deps\cmake -Force | ||
$env:PATH = "C:\projects\deps\cmake\bin;C:\Python37-x64;$env:PATH" | ||
|
||
# Check dependencies | ||
cmake --version | ||
python --version | ||
|
||
Write-Host "Available .NET SDK versions:" | ||
dotnet --list-sdks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters