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.

Update for compatibility with .NET 5

See original GitHub issue

While I can use the latest Microsoft.NET.Sdk.Functions package to build against .NET 5, the tools will not let you run it locally. Running a complied set of functions causes this this output in the tools:

System.Private.CoreLib: Could not load type 'System.Diagnostics.DebuggerStepThroughAttribute' from assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Value cannot be null. (Parameter 'provider')

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:18
  • Comments:39 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
anthonychucommented, Jan 4, 2021

I can share a bit on the decision making and prioritization process and how we got here. Back in the spring of 2020, we surveyed some folks that included Microsoft MVPs and discussed our options for .NET 5. The main takeaways were that we should build an out of process worker for .NET 5. And 2/3 of folks expressed that they plan to stay on .NET Core 3.1 instead of upgrading to .NET 5, so we did not feel there was overwhelming demand. Looking back, in hindsight, there was not a lot of solid details on .NET 5 and it made sense that folks were less excited about it at that time.

We also looked at runtimes like Node, where it is generally expected that platforms do not support non-LTS versions.

So over the summer, we started working on building an out-of-proc worker from scratch. It has taken us longer than expected to ship it. We had planned for the preview to land when .NET 5 GA’d, and that it would GA by end of 2020. We’ve slipped by a couple of months.

As for the assertion that 1 year is a long time, perhaps that’s true. But we’re also looking at what happens after that 1 year. There’s a small 3-month window to ship a new version of the host with the .NET 6 GA bits, and migrate all customers off the .NET 5 host. We didn’t feel that we should take a chance that we’d still need to run on .NET 5 after its end of life.

We want to provide timely support for LTS versions of .NET. We learned from .NET Core 3.1 that we need to more closely match the .NET release dates. We plan on updating the host to .NET 6 and having it available close to .NET 6 GA.

What we underestimated was the demand for non-LTS versions. We want to do better here. It’s too early to tell what this will look like but I think will largely depend on the feedback on the .NET 5 worker.

8reactions
jeffputzcommented, Nov 20, 2020

@anthonychu yikes, that’s a pretty serious adoption blocker for .NET 5. I don’t have many projects that don’t involve functions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.NET 5.0 will reach End of Support on May 10, 2022 - . ...
NET 5.0 starting in May 2022 when we issue security updates for supported versions of .NET, which will be .NET Core 3.1 and...
Read more >
NET releases, patches, and support
Microsoft ships major releases, minor releases, and servicing updates (patches) for .NET 5 (and .NET Core) and later versions.
Read more >
Can I update to .Net 5 NuGet packages even if I'm using . ...
3 Answers 3 ... Unfortunately, you cannot update many of these newest Nuget packages to 5.0. The reason being is that the newest...
Read more >
How to Prepare for .NET 5 End-of-Support on May 8
Microsoft "strongly" recommends migrating applications to .NET 6. Doing so involves searching local machines to update development environments ...
Read more >
Upgrading .NET Desktop Apps from .NET Framework to .NET 5
Desktop apps can take advantage of . NET Core 3.1 and . NET 5 which provides better performance, deployment flexibility and new language ......
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