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

Add Windows test workflow and net462 test target #7769

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

Conversation

flobernd
Copy link
Member

@flobernd flobernd commented Jul 4, 2023

No description provided.

@flobernd flobernd force-pushed the netfx-tests branch 6 times, most recently from 4e34f9e to c3eda1d Compare July 5, 2023 12:11
<CheckEolTargetFramework>false</CheckEolTargetFramework>
</PropertyGroup>
<PropertyGroup>
Copy link
Member Author

Choose a reason for hiding this comment

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

Workaround for:

rror NU1004: The project's runtime identifiers have changed from. Project's runtime identifiers: , lock file's runtime identifiers win7-x86.The packages lock file is inconsistent with the project dependencies so restore can't be run in locked mode. Disable the RestoreLockedMode MSBuild property or pass an explicit --force-evaluate option to run restore to update the lock file.

This is a known long standing issue (see comments).

Another workaround that does not involve disabling lock files, would be this one:
NuGet/Home#9195 (comment)

public override void OnBeforeTestsRun() => TestConfiguration.Instance.DumpConfiguration();
public override void OnBeforeTestsRun()
{
VerifierSettings.DerivePathInfo(
Copy link
Member Author

Choose a reason for hiding this comment

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

[ModuleInitializer] is not available prior to NET5.

This snippet is moved from there.

@@ -11,7 +11,7 @@

<ItemGroup>
<PackageReference Include="Bogus" Version="22.1.2" />
<PackageReference Include="Elastic.Elasticsearch.Managed" Version="0.3.5" />
<PackageReference Include="Elastic.Elasticsearch.Managed" Version="0.4.1" />
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -1,7 +1,7 @@
{
query: {
function_score: {
boost: 1.1,
Copy link
Member Author

Choose a reason for hiding this comment

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

NETFX is not fully IEEE compliant which messes with our roundtrip serialization tests. Particularily float values seem to cause problems. As a workaround I changed these tests to use values that can be represented as integers.

More details: dotnet/runtime#435 (comment)

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.

1 participant