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.

.NET Standard Support Removed from Lamar 7 - Can I Add It Back?

See original GitHub issue

Wondering if there was a specific reason for removing .NET Standard 2.0 support from Lamar 7.

The commit that removed .NET Standard from everything was just removing it from the .csproj <TargetFrameworks> elements (basically).

I tried out adding .NET Standard 2.0 back into the Lamar source code where it was removed. Everything compiled and all the tests passed.

I’m looking for a version of Lamar that works with .NET Framework 4.7.2 (so .NET Standard 2.0) and Microsoft.Extensions.DependencyInjection 6.0. Weird combo I know. I can explain more if you’d like.

Would you accept a PR adding back in .NET Standard 2.0 and MS.E.DI 6.0 support? I can add in whatever kind of testing you like. Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jeremydmillercommented, Jan 19, 2022

@twinter-patriot I just didn’t want to have to support the full .Net framework to be honest. And yes, I’ll take a PR. You’ll need the core Lamar.Testing library to also target .Net 4.7.2 whatever, and be running in the GH actions.

0reactions
jeremydmillercommented, Feb 9, 2022

This is done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Please stop lying about .NET Standard 2.0 support!
In an effort to make it easier to write libraries that could be used in both .NET Framework and .NET Core (without needing...
Read more >
NET Standard
However, if you want to share code between .NET Framework and any other .NET implementation, such as .NET Core, your library should target...
Read more >
.NET — .NET Standard 2.0 Deprecation, Support for .NET 6 ...
NET Core-based products will also – at a minimum – require .NET 6 and Visual Studio 2022: WinForms; WPF; Blazor; ASP.NET Core; Reporting;...
Read more >
You must add a reference to assembly netstandard errors
Net Framework 4.7.1, in many projects referencing net standard ... to netstandard to our project so i had to remove it and i'm...
Read more >
You must add a reference to assembly 'netstandard ...
How can I fix it without referencing netstandard but the full Windows .NET Framework 4.6.1? I've checked out a previous commit which worked...
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