-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Pack net462 target framework
#16564
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
base: trunk
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||
|
Fails on EngFlow: Verified locally, the file exists on my local machine. @shs96c do you know? |
|
It is bug in bazel: bazel-contrib/rules_dotnet#477, not related to EngFlow. Reproduced locally on MacOS. |
| <None Include="..\..\..\common\images\selenium_logo_small.png" Pack="true" PackagePath="logo.png" Visible="false" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> |
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.
Only for net462
User description
🔗 Related Issues
Fixes #16539
Related to #14600
💥 What does this PR do?
Build for
net462framework to avoid binding redirects forSystem.Text.Jsonassembly. Selenium assembly now has correct reference toSystem.Text.Json v8.0.0.5.🔧 Implementation Notes
Verified locally. Now installing
Selenium.WebDriverpackage doesn't produce unnecessary binding redirection:💡 Additional Considerations
It is still important to:
But here we can do nothing, it is how .NET FX works.
🔄 Types of changes
PR Type
Bug fix, Enhancement
Description
Add
net462target framework support to avoid System.Text.Json binding redirectsImplement platform detection for
net462using Environment.OSVersion and Process.unameUpdate NuGet package to include
net462assemblies with proper dependenciesAdd framework assembly references for System.IO.Compression and System.Net.Http
Diagram Walkthrough
File Walkthrough
ResourceUtilities.cs
Add net462 platform detection logicdotnet/src/webdriver/Internal/ResourceUtilities.cs
net462platform detection usingEnvironment.OSVersion and Process.uname
between macOS and Linux
frameworks
SeleniumManager.cs
Add SeleniumManager net462 compatibilitydotnet/src/webdriver/SeleniumManager.cs
net462,netstandard2.0, andnet8.0_or_greaternet462-specific platform detection defaulting to WindowsEnvironment.OSVersion.Platform for compatibility
net462frameworkpaket.nuget.bzl
Update NuGet package dependencies for net462dotnet/paket.nuget.bzl
net462in System.Text.Jsonpackage
net462and higher frameworkspaket.dependencies
Add net462 to paket framework targetsdotnet/paket.dependencies
net462to the framework list in paket configurationnet8.0,netstandard2.0tonet462,net8.0,netstandard2.0Selenium.WebDriver.csproj
Update project file for net462 supportdotnet/src/webdriver/Selenium.WebDriver.csproj
net462to TargetFrameworks propertynet462and System.Net.Http
Selenium.WebDriver.nuspec
Add net462 package metadata and filesdotnet/src/webdriver/Selenium.WebDriver.nuspec
net462dependency group with System.Text.Json version 8.0.5System.Net.Http
documentation
Selenium.WebDriver.StrongNamed.nuspec
Add net462 strong-named package metadatadotnet/src/webdriver/Selenium.WebDriver.StrongNamed.nuspec
net462dependency group with System.Text.Json version 8.0.5System.Net.Http
documentation
BUILD.bazel
Add Bazel build targets for net462dotnet/src/webdriver/BUILD.bazel
webdriver-net462csharp_library target with net462 frameworkwebdriver-net462-strongnamedcsharp_library target forstrong-named assembly
strong-named packages