-
Notifications
You must be signed in to change notification settings - Fork 323
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
Conversation
src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.csproj
Show resolved
Hide resolved
...crosoft.TestPlatform.PlatformAbstractions/Microsoft.TestPlatform.PlatformAbstractions.csproj
Outdated
Show resolved
Hide resolved
src/Microsoft.TestPlatform.TestHostProvider/Hosting/DotnetTestHostManager.cs
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AcceptanceTests/BlameDataCollectorTests.cs
Outdated
Show resolved
Hide resolved
...icrosoft.TestPlatform.AcceptanceTests/Extension/NetCoreTargetFrameworkDataSourceAttribute.cs
Outdated
Show resolved
Hide resolved
...icrosoft.TestPlatform.AcceptanceTests/Extension/NetCoreTargetFrameworkDataSourceAttribute.cs
Outdated
Show resolved
Hide resolved
4543d7d
to
fccf42d
Compare
@@ -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 |
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.
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. |
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.
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()) |
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.
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? |
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.
I think this relates to #2458
4a6a32d
to
ecaaee1
Compare
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 |
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.
@Haplois We were publishing netcoreapp2.0 as UAP, is it ok to bump that to netcoreapp3.1?
43cb509
to
ef7b4ab
Compare
@@ -2,5 +2,6 @@ | |||
<Project> | |||
<PropertyGroup> | |||
<TargetNetFxVersion>net462</TargetNetFxVersion> | |||
<TargetNetCoreVersion>netcoreapp3.1</TargetNetCoreVersion> |
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.
This cannot be true for source build. We need to build with net6.0 or preferably net7.0
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.
Maybe naming is poor, it's actually "min supported version". In case of source build this isn't used.
3567101
to
fb0660d
Compare
src/Microsoft.TestPlatform.TestHostProvider/Hosting/DotnetTestHostManager.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.TestPlatform.TestHostProvider/Hosting/DotnetTestHostManager.cs
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AcceptanceTests/DataCollectionTests.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/CustomTestHostTests.cs
Outdated
Show resolved
Hide resolved
…argetFrameworkDataSourceAttribute.cs Co-authored-by: Jakub Jareš <me@jakubjares.com>
cb169c1
to
a4b328c
Compare
Related issue
Fixes AB#1577617