Skip to content

Commit

Permalink
Explicit SDK Installation: Added a step to install the specified .NET…
Browse files Browse the repository at this point in the history
… SDK version using Chocolatey.

Environment Refresh: Ensured that the environment variables are refreshed after the installation.
Error Handling: Wrapped the PowerShell script execution in a try-catch block to capture and report any errors that occur.
Debugging Commands: Added commands to output the content of global.json and verify the dotnet command path.
Fixes #71
  • Loading branch information
amruthvvkp committed Jul 6, 2024
1 parent 5abe927 commit b9cd8d0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,26 @@ before_build:
}
} | ConvertTo-Json -Compress
Set-Content -Path "C:\projects\FlaUI\global.json" -Value $globalJson
Get-Content "C:\projects\FlaUI\global.json"
# Install the specified .NET SDK version
- ps: |
choco install dotnet-sdk -version 7.0.403 -y
RefreshEnv.cmd
build_script:
- ps: |
dotnet --version
Get-Command dotnet
Get-Content "C:\projects\FlaUI\global.json"
# Run PowerShell script
# Run PowerShell script with error handling
- ps: |
& "C:\\projects\\FlaUI\\build.ps1"
try {
& "C:\\projects\\FlaUI\\build.ps1"
} catch {
Write-Error $_
}
after_build:
- ps: |
Expand Down

0 comments on commit b9cd8d0

Please sign in to comment.