Skip to content

error when build native aot with selenium dotnet 7 #86202

@NCLnclNCL

Description

@NCLnclNCL

Description

error when i run it

Reproduction Steps

build native aot

Expected behavior

running succesfully

Actual behavior

error
Unhandled Exception: System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Reflection.Assembly.GetCallingAssembly() + 0x5b
at OpenQA.Selenium.Internal.ResourceUtilities.get_AssemblyVersion() + 0x40
at OpenQA.Selenium.Remote.HttpCommandExecutor..ctor(Uri, TimeSpan, Boolean) + 0xbc
at OpenQA.Selenium.Remote.DriverServiceCommandExecutor..ctor(DriverService, TimeSpan, Boolean) + 0x4d
at OpenQA.Selenium.Chromium.ChromiumDriver..ctor(ChromiumDriverService, ChromiumOptions, TimeSpan) + 0x44
at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService, ChromeOptions) + 0x26

Regression?

No response

Known Workarounds

no

Configuration

.net 7
win 10
x64

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions