fix: .NET 10 CI build support via dotnet restore and global.json#97
Conversation
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: gerhardol <6248932+gerhardol@users.noreply.github.com>
c999c3e to
c9a11ad
Compare
|
@copilot fix the build as .NET SDK 10 is not installed in AppVeyor builds |
Co-authored-by: gerhardol <6248932+gerhardol@users.noreply.github.com>
…oding 10.0 Co-authored-by: gerhardol <6248932+gerhardol@users.noreply.github.com>
|
@copilot 'dotnet restore' fails in appveyor builds: Command executed with exception |
…nd dotnet Co-authored-by: gerhardol <6248932+gerhardol@users.noreply.github.com>
Fixed in 0746040. The root cause was that |
|
@copilot still fails. |
… PATH issues Co-authored-by: gerhardol <6248932+gerhardol@users.noreply.github.com>
Fixed in 8fc3116. Added |
|
@copilot build still fails in the same way as before, no info about the exception |
… from dotnet stderr output Co-authored-by: gerhardol <6248932+gerhardol@users.noreply.github.com>
... Fixed in 1fff484. The |
…ll NativeCommandError Co-authored-by: gerhardol <6248932+gerhardol@users.noreply.github.com>
Fixed in ed8ab65. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot use quiet instead |
Co-authored-by: gerhardol <6248932+gerhardol@users.noreply.github.com>
Done in 17d1671. Added |
fa7dd4f to
5296a20
Compare
5296a20 to
bb44f62
Compare
|
@copilot dotnet restore fails in Appveyor |
… NativeCommandError Co-authored-by: gerhardol <6248932+gerhardol@users.noreply.github.com>
Fixed in 148e552. The base branch update introduced |
|
|
||
| build_script: | ||
| - ps: | | ||
| $env:PATH = "$env:LOCALAPPDATA\Microsoft\dotnet;$env:PATH" |
There was a problem hiding this comment.
All of it looks excessively complex. We should be able to run the same as we do in the main pipeline.
I'll see if I can carve some time over the weekend, if it's not resolved before then
There was a problem hiding this comment.
I aligned with the main app, merging this to my PR and we refine from there
nuget restorewithdotnet restoreinappveyor.ymlglobal.jsonto pin .NET 10 SDK versionappveyor.yml(AppVeyor VS2022 image doesn't include .NET 10 SDK)-JSonFile global.jsonin dotnet-install call instead of hardcoded-Channel 10.0dotnet restoreintoinstallblock (same PS session as SDK install) and add--nologobuild:tobuild_script:usingdotnet build --no-restore --nologo -bl:msbuild.binlog*.binlogto AppVeyor artifacts so binlogs can be downloaded and analyzed2>&1on alldotnetcommands so stderr is merged into stdout — prevents PowerShell from creating error records from dotnet's informational stderr output--verbosity quietto bothdotnet restoreanddotnet buildto suppress informational stderr output2>&1todotnet restoreanddotnet publishinbuild_script(missing after base branch update)🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.