Skip to content
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

Support for .NET 7 #1617

Merged
merged 8 commits into from
Nov 15, 2022
Merged

Support for .NET 7 #1617

merged 8 commits into from
Nov 15, 2022

Conversation

Kielek
Copy link
Contributor

@Kielek Kielek commented Nov 15, 2022

Why

Fixes #1537

What

Support for .NET 7.
Tests execution for .NET 7.
Fixes for ILogger bytecode instrumentation.

Tests

Checklist

  • CHANGELOG.md is updated.
  • [ ] Documentation is updated.
  • New features are covered by tests.

@github-actions github-actions bot requested a review from theletterf November 15, 2022 06:10
@Kielek Kielek changed the title Net7 Support for .NET 7 Nov 15, 2022
@@ -129,7 +131,7 @@ partial class Build

DotNetMSBuild(x => x
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DotNetMSBuild is build in the Nuke itself, so I was able to remove our custom class.

.SetConfiguration(BuildConfiguration)
.SetTargetPlatform(Platform)
.SetPlatform(Platform)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no way to pass Platform (x64/x86) through the dotnet tests to dotnet msbuild executed under the hood.
I have decided to call it directly.

This property is important, because .NET 7 SDK changed the output path structure based on this. Previously it was working only by accident.

@@ -30,6 +30,7 @@ This component adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.h

### Added

- Add support for .NET 7.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The plan was only to add tests for .NET 7, but additional dependencies/store requires separate folder structure for each supported .NET version.

@Kielek Kielek marked this pull request as ready for review November 15, 2022 06:28
@Kielek Kielek requested a review from a team November 15, 2022 06:28
build/Build.Steps.cs Outdated Show resolved Hide resolved
@pellared pellared enabled auto-merge (squash) November 15, 2022 09:06
@pellared pellared merged commit 1ceac49 into open-telemetry:main Nov 15, 2022
@Kielek Kielek deleted the net7 branch November 15, 2022 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tests for .NET 7
3 participants