-
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
Follow .NET lifecycle: update codebase to net462 #3646
Conversation
efab515
to
37809ee
Compare
2bb119d
to
2f17d48
Compare
abcf88a
to
1a4b156
Compare
9615564
to
2c57707
Compare
2c57707
to
be41470
Compare
@@ -13,7 +13,7 @@ | |||
<AssemblyName Condition=" '$(RuntimeIdentifier)' == 'win10-arm64' ">datacollector.arm64</AssemblyName> | |||
<TargetFrameworks>netcoreapp2.1</TargetFrameworks> | |||
<TargetFrameworks Condition=" '$(OS)' == 'WINDOWS_NT' ">$(TargetFrameworks);net472</TargetFrameworks> |
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.
Why do we have a different min TFM depending on windows or not? I'd like to document that in the project.
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.
The windows code of datacollector is using something that is net472 specific, I don't remember what it is though, but you should be able to see if you downgrade. You can remove the condition for the different tfm on Linux, that probably happened because getting the whole thing build on linux was difficult in the past and I did not want to disrupt the linux build by changing it.
test/Microsoft.TestPlatform.AcceptanceTests/AcceptanceTestBase.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AcceptanceTests/CodeCoverageAcceptanceTestBase.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AcceptanceTests/DeprecateExtensionsPathWarningTests.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/CustomTestHostTests.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/CustomTestHostTests.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/RunTests.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/RunTests.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AdapterUtilities.UnitTests/ManagedNameUtilities/SpecialNameTests.cs
Show resolved
Hide resolved
test/Microsoft.TestPlatform.Common.PlatformTests/AssemblyPropertiesTests.cs
Show resolved
Hide resolved
test/Microsoft.TestPlatform.Common.PlatformTests/AssemblyPropertiesTests.cs
Show resolved
Hide resolved
test/Microsoft.TestPlatform.ObjectModel.PlatformTests/DiaSessionTests.cs
Show resolved
Hide resolved
test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/RunTests.cs
Outdated
Show resolved
Hide resolved
You mean for TargetFrameworks in the csproj? I thought we have the defaults in Directory.Build.props, maybe I am wrong. But that is probably the best place for a baseline. |
Yes. Just so that it's easier to update. |
97200f5
to
270adfd
Compare
src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net451/PublicAPI.Shipped.txt
Show resolved
Hide resolved
@@ -19,7 +19,7 @@ public class TraitCollection : IEnumerable<Trait> | |||
internal const string TraitPropertyId = "TestObject.Traits"; | |||
private static readonly TestProperty TraitsProperty = TestProperty.Register( | |||
TraitPropertyId, | |||
#if !NET451 | |||
#if !NET462 |
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 seems wrong. the condition said if not net451 before, so for net462 the condition body should be used, and else case should be removed.
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.
Will do in a follow-up PR.
Description
Follow Microsoft .NET Framework component lifecycle policy by dropping support for .NET Framework older than 4.6.2.
Related issue
Replaces #3517 and fixes AB#1491257