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

Move codebase to netcoreapp3.1 #3861

Merged
merged 35 commits into from
Jul 27, 2022
Merged

Conversation

Evangelink
Copy link
Member

@Evangelink Evangelink commented Jul 18, 2022

Related issue

Fixes AB#1577617

@@ -87,6 +87,10 @@ internal sealed class DoesNotReturnIfAttribute : Attribute
public bool ParameterValue { get; }
}

#endif

#if NETFRAMEWORK || WINDOWS_UWP || NETSTANDARD && !NETSTANDARD2_1 || NETCOREAPP && !NET5_0_OR_GREATER
Copy link
Member Author

Choose a reason for hiding this comment

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

These 2 attributes are only available in .NET 5.0+ so I moved them to a different section.

@@ -39,7 +39,6 @@ public void Run(Action? action, PlatformApartmentState apartmentState, bool wait
}
});

// ApartmentState is not supported in netcoreapp1.0.
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment wasn't specific enough to understand if we were supposed to make a change for other TFMs.

@@ -1218,8 +1218,7 @@ private static void AddConsoleLogger(XmlDocument document, LoggerRunSettings log
navigator,
out var platformXml);

bool runSettingsHaveValidPlatform = isValidPlatformXml && !platformXml.IsNullOrWhiteSpace();
if (runSettingsHaveValidPlatform)
if (isValidPlatformXml && !platformXml.IsNullOrWhiteSpace())
Copy link
Member Author

Choose a reason for hiding this comment

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

Merging the bool condition in the if otherwise null engine is confused and says platformXml can be null.

@@ -1178,8 +1143,9 @@ function Build-SpecificProjects {
("net462", "net462\win7-x64"),
("netstandard1.0", "netstandard1.0"),
("netstandard1.3", "netstandard1.3"),
# REVIEW ME: Why do we copy netstandard2.0 into netcorecorapp2.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.

I think this relates to #2458

@Evangelink Evangelink force-pushed the netcoreapp3.1 branch 4 times, most recently from 4a6a32d to ecaaee1 Compare July 21, 2022 14:06
Publish-PackageWithRuntimeInternal $testHostProject $TPB_TargetFrameworkCore20 $TPB_X64_Runtime false $testhostCore20PackageTempX64Dir
Publish-PackageWithRuntimeInternal $testHostProject $TPB_TargetFrameworkCore10 $TPB_X64_Runtime true $testhostCore10PackageTempX64Dir
Publish-PackageInternal $testHostProject $TPB_TargetFrameworkCore31 $testhostCore31PackageDir
Publish-PackageInternal $testHostProject $TPB_TargetFrameworkCore31 $testhostUapPackageDir
Copy link
Member Author

Choose a reason for hiding this comment

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

@Haplois We were publishing netcoreapp2.0 as UAP, is it ok to bump that to netcoreapp3.1?

@Evangelink Evangelink force-pushed the netcoreapp3.1 branch 2 times, most recently from 43cb509 to ef7b4ab Compare July 22, 2022 12:42
@@ -2,5 +2,6 @@
<Project>
<PropertyGroup>
<TargetNetFxVersion>net462</TargetNetFxVersion>
<TargetNetCoreVersion>netcoreapp3.1</TargetNetCoreVersion>
Copy link
Contributor

Choose a reason for hiding this comment

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

This cannot be true for source build. We need to build with net6.0 or preferably net7.0

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe naming is poor, it's actually "min supported version". In case of source build this isn't used.

@Evangelink Evangelink force-pushed the netcoreapp3.1 branch 2 times, most recently from 3567101 to fb0660d Compare July 25, 2022 13:53
@Evangelink Evangelink marked this pull request as ready for review July 25, 2022 13:53
@Evangelink Evangelink enabled auto-merge (squash) July 25, 2022 16:37
@nohwnd nohwnd disabled auto-merge July 27, 2022 09:54
@nohwnd nohwnd merged commit 3fac636 into microsoft:main Jul 27, 2022
@Evangelink Evangelink deleted the netcoreapp3.1 branch July 27, 2022 10:25
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.

3 participants