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.

Support for ASP.NET Core 3.0

See original GitHub issue

What is the recommended way to use Castle Windsor with asp.net core 3.0? One place where it can integrated would be the generic host towards which asp.net core 3.0 migrated, probably using UseServiceProviderFactory

Using Castle.AspnetCore.Facility is no longer possible (or at least I didn’t found out how) because Startup.ConfigureServices returning IServiceProvider is no longer supported by the framework and AddWindsor cannot be used anymore. Before I used to write something like this in Startup class

public IServiceProvider ConfigureServices(IServiceCollection services)
{
    container.AddFacility<AspNetCoreFacility>(f => f.CrossWiresInto(services));
[...]
    return services.AddWindsor(container, 
        opts =>
         {
            opts.RegisterControllers(typeof(MyController).Assembly, LifestyleType.Transient);
         });
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:84 (60 by maintainers)

github_iconTop GitHub Comments

3reactions
chrisheilcommented, Oct 28, 2020

@generik0 We upgraded our application the day the beta came out, and have been cleared in QA and UAT after several months of testing. In fact, this beta resolved some issues we had faced with the workarounds we had introduced with the earlier solutions before the beta

We are running on asp.netcore 3.0 web api with the following:

  • automapper
  • castle dynamic proxy
  • graylog
  • Entity Framework Core 2.2
  • FluentValidation

We are also upgrading another product to use this beta with similar dependencies, and early signs are positive

3reactions
jonorossicommented, Jul 6, 2020

@generik0 It is best to create new issues to track things since this is already closed and released (as a beta).

Read more comments on GitHub >

github_iconTop Results From Across the Web

.NET and .NET Core official support policy - Dot.net
Long Term Support (LTS). LTS releases are supported for three years after the initial release. · Standard Term Support (STS). STS releases are...
Read more >
Microsoft .NET - endoflife.date
NET Core 3.1, these releases will happen every November and every other release will be LTS. LTS releases are supported for three years ......
Read more >
Exploring .NET Core 3.0. What's New?
TL;DR: Take a look at the new features available in NET Core 3.0. This post will provide you ... NET Standard 2.1 in...
Read more >
ASP.NET Core
The ASP.NET Core framework supported side-by-side versioning so that different applications being developed on a single machine can target different versions of ...
Read more >
NET Core 3.0 supported OS versions
NET Core 3.0 - Supported OS versions. The tables below provide OS version information supported by .NET Core 3.0. Keys used in the...
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