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

remove netcoreapp2.1 from source #2350

Merged
merged 3 commits into from
Aug 4, 2021
Merged

Conversation

TimothyMothra
Copy link
Member

Fix Issue #2251

Changes

  • Remove netcoreapp2.1 and older from source.
  • Found some code that doesn't compile. I marked it with #TODO

Checklist

  • I ran Unit Tests locally.
  • CHANGELOG.md updated with one line description of the fix, and a link to the original issue if available.

For significant contributions please make sure you have completed the following items:

  • Design discussion issue #
  • Changes in public surface reviewed

The PR will trigger build, unit tests, and functional tests automatically. Please follow these instructions to build and test locally.

Notes for authors:

  • FxCop and other analyzers will fail the build. To see these errors yourself, compile localy using the Release configuration.

Notes for reviewers:

  • We support comment build triggers
    • /AzurePipelines run will queue all builds
    • /AzurePipelines run <pipeline-name> will queue a specific build

@@ -34,6 +34,9 @@

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Azure.Core" Version="1.14.0" />

<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.2.0" />
Copy link
Contributor

Choose a reason for hiding this comment

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

suggest using the 2.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.

why 2.1 here as opposed to latest?
I have no problem with the downgrade, just trying to understand :)

Copy link
Contributor

Choose a reason for hiding this comment

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

if its testing, yes you can use latest.

#if NETCOREAPP2_1
Assert.IsTrue((float)payload["Max"] >= 30);
#elif NETCOREAPP3_1
#if NETCOREAPP
Copy link
Member

Choose a reason for hiding this comment

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

If we are planning to cover .NET 5.0, .NET 6.0+, then better to include NET along with NETCOREAPP. Ref: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives#conditional-compilation

Copy link
Member Author

Choose a reason for hiding this comment

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

NET and NETCOREAPP both cover the same frameworks.

In my opinion, NET sounds ambiguous between the older NetFrameworks (4.5 - 4.8).
I would prefer to use NETCOREAPP to differentiate.

Copy link
Contributor

Choose a reason for hiding this comment

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

since NETCOREAPP covers NET5.0 and higher, this is fine i think.

@TimothyMothra TimothyMothra merged commit 561c624 into develop Aug 4, 2021
@TimothyMothra TimothyMothra deleted the tilee/remove_netcoreapp2.1 branch August 4, 2021 18:47
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