-
Notifications
You must be signed in to change notification settings - Fork 216
Add .NET6 to CI scripts #1605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .NET6 to CI scripts #1605
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
.NET 6 SDK isn't happy with the `;`
|
|
||
| dotnet nuget add source --name nuget.org https://api.nuget.org/v3/index.json | ||
|
|
||
| :: Build solution. Add `--verbosity detailed` for more detailed logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took out verbose logging - it turned out to generate huge noise when I need to look at logs from a failed build. I'd prefer to keep it without verbose logs and only turn it on once we really need it.
| # Install visualstudio2019 and workloads needed to build ASP.NET and .NET Core apps | ||
| Invoke-WebRequest -UseBasicParsing ` | ||
| -Uri "https://download.visualstudio.microsoft.com/download/pr/cb1d5164-e767-4886-8955-2df3a7c816a8/b9ff67da6d68d6a653a612fd401283cc213b4ec4bae349dd3d9199659a7d9354/vs_BuildTools.exe" ` | ||
| -Uri "https://download.visualstudio.microsoft.com/download/pr/ce8663b0-08ed-410a-9f5d-4f9469d1b2cb/73271b3d53a4e50e65e2e918a8c1100d2681c17bc418e03513c9f0554609ff8a/vs_BuildTools.exe" ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This updates it to the vs 2022 version.
| dir("${BASE_DIR}"){ | ||
| powershell label: 'Install test tools', script: '.ci\\windows\\test-tools.ps1' | ||
| retry(3) { | ||
| bat label: 'Build', script: '.ci/windows/dotnet.bat' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of building it once and then running test.bat in a separate step we can do the whole thing in test.bat.
|
elastic/apm-integration-testing#1412 takes care of failing integration tests. |
v1v
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat!
| :: LogFilePath property | ||
| :: | ||
| dotnet test -c Release --no-build ^ | ||
| dotnet test -c Release ^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, if the test.bat does also run the build, are the dotnet sln remove needed for the building?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's intentional.
Those projects that we remove with dotnet sln remove need more than what we have in this context (e.g. ASP.NET Classic), so the dotnet tool isn't enough for those. We use those projects in the Windows .NET Framework stage.
I only know this from experience. If we don't remove those, it'll fail - I saw it :) . Prior to this PR removing happened in the dotnet.bat file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Greg for the clarification :)
Solves #1566