Coder Social home page Coder Social logo

Comments (1)

tillig avatar tillig commented on June 3, 2024 1

Logically speaking, if it's working in one environment and not another, that's not so much an Autofac problem than it is an environmental issue. Especially in the case of assembly loading - you'll notice Autofac itself isn't what loads or locates assemblies, Autofac just uses what you give it.

From the above, my guess is that there's an assembly that's being found in Visual Studio but is not being found during console runs.

Be aware that the change from a .NET desktop framework to .NET core, and a pretty big jump at that, is not always just lift-and-shift. Especially when it comes to assembly loading, remoting, AppDomains, and the like - there are differences in how .NET Core works. There's also sometimes differences in how things are working in Visual Studio vs console, like Visual Studio handling things like assembly shadow copies during testing differently than the console runner.

In fact, in .NET Core you generally shouldn't be using a specific NUnit or XUnit console runner, you should be using dotnet test - which may also explain why things aren't working as expected.

Much as we love to help folks, we do have some pretty limited bandwidth to help troubleshoot stuff that can't be clearly linked to an issue in Autofac. This, unfortunately, doesn't fall in that category. If you are able to work out a minimal reproduction that very clearly shows it's an Autofac problem, we'd love to see that (likely in a new issue that explains the actual Autofac challenge).

from autofac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.