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

WIP: Add target for net9.0 for kiota tool #6006

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

andrueastman
Copy link
Member

@andrueastman andrueastman commented Jan 14, 2025

Fixes #5887

TODO

  • Validate pipelines
  • Validate artifacts

.github/workflows/sonarcloud.yml Outdated Show resolved Hide resolved
@@ -3,7 +3,7 @@
<LangVersion>Latest</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net9.0;</TargetFrameworks>
Copy link
Member

Choose a reason for hiding this comment

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

why keep both targets if our releasing pipeline only publishes net9?

Copy link
Member Author

Choose a reason for hiding this comment

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

(I'm unsure about this tbh. I still need to validate this first)
Given that we'll still publish this as a nuget tool, won't having the target as only net 9 break the users running the tool using net8.0?
In my head, the two targets are not for the purposes for the binaries but really for the nuget tool for users in net8.0 and 9.0.

Copy link
Member

Choose a reason for hiding this comment

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

in that case the -f net9.0 in the azure devops pipeline needs to be removed I believe.

@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<LangVersion>Latest</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net9.0;</TargetFrameworks>
Copy link
Member

Choose a reason for hiding this comment

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

same question about multi-targeting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Add net9 target for net tool
2 participants