-
Notifications
You must be signed in to change notification settings - Fork 1
chore: add netstandard support for Hangfire library #7
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||
| <Project Sdk="Microsoft.NET.Sdk"> | ||||||
|
|
||||||
| <PropertyGroup> | ||||||
| <TargetFramework>net10.0</TargetFramework> | ||||||
| <TargetFramework>netstandard2.1;net10</TargetFramework> | ||||||
|
||||||
| <TargetFramework>netstandard2.1;net10</TargetFramework> | |
| <TargetFramework>netstandard2.1;net10.0</TargetFramework> |
Copilot
AI
Feb 23, 2026
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.
ImplicitUsings is a C# 10/.NET 6+ feature and is not supported by netstandard2.1, which uses C# 8.0 at most. This will cause compilation errors for the netstandard2.1 target. Consider removing ImplicitUsings or conditionally enabling it only for .NET targets using MSBuild conditions.
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.
The property name should be "TargetFrameworks" (plural) when multi-targeting, not "TargetFramework" (singular). When targeting multiple frameworks, MSBuild requires the plural form. This will cause the build to fail as the semicolon-separated list is only valid with TargetFrameworks.