GithubHelp home page GithubHelp logo

Comments (8)

stephenpatten avatar stephenpatten commented on June 2, 2024 1

Promise I will get to this as soon as I get settled into my new house and job (sort of).

from fluentassertions.autofac.

mkoertgen avatar mkoertgen commented on June 2, 2024

Hi @stephenpatten,
You're right. It looks like the compiler can only resolve the FluentAssertions core extensions but not the AutoFac-specific ones. Note that they live in the namespace FluentAssertions.AutoFac.

Be sure to add using FluentAssertions.Autofac; after using FluentAssertions; at the top of your Test classes to help the compiler find the IContainer-extension methods.

Let me know if that helps.

from fluentassertions.autofac.

stephenpatten avatar stephenpatten commented on June 2, 2024

Thanks for the quick response.

As a sanity check I have forked FluentAssertions.Autofac and can get the repo to build on the same machine that is having issues with adding the reference to fluentAssertions.Autofac. Here are some images that might help use diagnose the issue. The UnitTest project is targeting 4.5.2

snap770

snap771

from fluentassertions.autofac.

mkoertgen avatar mkoertgen commented on June 2, 2024

Hm, i would need to guess. The indicated versions should be compatible.

Looks like something simple & stupid. It seems the package reference somehow got messed up.

However, 4.5.2 should be ok. Did you probably tweak the target framework after adding the NuGet reference?

Did you try building with maximum verbosity and check the output on messages with respect to the reference?

If that does not help, would it be possible for you to publish the solution in a manner that i could possibly reproduce the error?

from fluentassertions.autofac.

stephenpatten avatar stephenpatten commented on June 2, 2024

How can I give it to you in a secure way?

from fluentassertions.autofac.

stephenpatten avatar stephenpatten commented on June 2, 2024

Setting the build output did not shed any light on the issue, BUT if I removed the nuget package for the test project and then added the dll by hand it works... weird

from fluentassertions.autofac.

mkoertgen avatar mkoertgen commented on June 2, 2024

For me to reproduce you could clone/upload it to a private repo and add me as a team member. GitLab.com has free private/personal repos, for instance.

Another guess: Did you try moving the using clauses out of your own namespace and to the top of file?

from fluentassertions.autofac.

mkoertgen avatar mkoertgen commented on June 2, 2024

Close due to inactivity

from fluentassertions.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.