question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a way to disable .NET Core 2.1 warning

See original GitHub issue

Our builds are full of warnings:

.NET Core 2.1 is no longer supported and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the .NET support policy.

We are sure, that our libraries are should be compiled and run under netstandard2.0.

<NoWarn>NETSDK1138</NoWarn> disables this warning during the build, but how to disable it during setup-dotnet?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
IvanZosimovcommented, Sep 30, 2022

Hi, the issue was solved in the new v3 version of setup-dotnet action. By now I’m going to close this issue, If you have any additions or questions feel free to ping us.

1reaction
mattjohnsonpintcommented, Jul 22, 2022

Workaround: If you supply the exact version, the warning does not appear.

Instead of dotnet-version: 2.1.x, use dotnet-version: 2.1.818

Read more comments on GitHub >

github_iconTop Results From Across the Web

Suppress code analysis warnings - .NET - Microsoft Learn
This article covers the various ways you can suppress warnings from code ... You can disable a rule that's causing a warning by...
Read more >
How to disable precompiled views in net core 2.1+ / net 5 for ...
Just reference Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation in your .csproj file conditionally. Don't forget to adjust the version, you ...
Read more >
Suppressing the startup and shutdown messages in ASP.NET ...
In this post, I show how you can disable the startup message shown in the console when you run an ASP.NET Core application....
Read more >
Fix for "missing xml comment for publicly visible type or ...
Fix in ASP.NET Core · Right-click the Visual Studio project / Properties / Build Tab · Insert warning number 1591 in the “Suppress...
Read more >
Creating Web API in ASP.NET Core 2.0 - CodinGame
Step 03 - Add Models ; pragma warning disable CS1591 ; public static StockItem ToEntity(this PostStockItemsRequest request) ; pragma warning restore CS1591 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found