Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is AutoMoq should work with asp.net core? #35

Open
arielcloud opened this issue Jun 30, 2016 · 25 comments
Open

Is AutoMoq should work with asp.net core? #35

arielcloud opened this issue Jun 30, 2016 · 25 comments

Comments

@arielcloud
Copy link

when trying install it i got:
"Package AutoMoq 2.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package AutoMoq 2.0.0 supports: net45 (.NETFramework,Version=v4.5)"

@darrencauthon
Copy link
Owner

Hmm... I think.

Guess it's time I learn how to port these libraries over. 😄

@darrencauthon
Copy link
Owner

Installed dot net core. So long as I can map unity and Moq to this library, this is gonna work.

@darrencauthon
Copy link
Owner

@arielcloud I started the work to port to core, and it seems that it won't be too difficult.

However, AutoMoq is very dependent on Moq, which doesn't seem to have a working version in core yet. The copy of core-supporting Moq that I'm using comes from https://www.myget.org/F/aspnetcidev/api/v3/index.json, which is fine for development but can't be released.

I'll get this core version ready to go, but until moq is updated I won't release.

@arielcloud
Copy link
Author

arielcloud commented Jul 2, 2016

Thanks a lot!
please update here or at #36 once i can use it on core. (also before release). 10x!

@arielcloud
Copy link
Author

@darrencauthon moq is updated :) can u release?

@darrencauthon
Copy link
Owner

I'll take a look soon, thanks!

@JPBlancoDB
Copy link

You can use Moq with net core, you need in your project.json:

 "dependencies": { 
        "NUnit": "3.5.0",
        "dotnet-test-nunit": "3.4.0-beta-3",
        "Moq": "4.6.25-alpha"
    },
    "frameworks": {
        "netcoreapp1.0": {
            "imports": [ 
                "dotnet54",
                "portable-net45+win8" ,
                "dnxcore50",
                "netcoreapp1.0"        
            ],
            "dependencies": {
                "Microsoft.NETCore.App": {
                    "type": "platform",
                    "version": "1.0.1"
                }
            }
        }
    },

@darrencauthon
Copy link
Owner

Thank you @JPBlancoDB ! 😄

@MihaMarkic
Copy link

They are already at 4.6.38-alpha :)

@darrencauthon
Copy link
Owner

I did see a video on Dot Net Core on Youtube... I think this is going to be easy to do this weekend.

Or did I just doom myself?

@MihaMarkic
Copy link

@darrencauthon That's it. You promised it over the weekend. Now you just have to! :)

@darrencauthon
Copy link
Owner

I will give it an honest try! 😄

@darrencauthon
Copy link
Owner

I had a wonderful weekend with the kids... I barely touched a computer.

I'm going to do the 24 pull request challenge this December, and this is going to be a big piece of it. So I will get to this ASAP. 😄

@NicolaasVB
Copy link

Any news on this?

Thanks

@cdie
Copy link

cdie commented Feb 3, 2017

@darrencauthon Have you progressed on .NET Core port ? It really interest us

@darrencauthon
Copy link
Owner

darrencauthon commented Feb 3, 2017 via email

@onlyforkbj
Copy link

Could you catch up some time to spend on porting the libraries to .Net Core?

@darrencauthon
Copy link
Owner

Eventually, I'm really sorry... juggling a lot of stuff these days. 🤹‍♂️

@farzadmf
Copy link

+1 for having support for .NET Core

@careLearning
Copy link

+1 for .Net Core support. I discovered this package from Mathew Renze's Writing Testable Code course on PluralSight. Now it is less fun to develop without.

@arielcloud
Copy link
Author

meanwhile u can try autoFixture

@matthewrenze
Copy link

I was just checking up on the status of the .NET Core port and saw that @careLearning mentioned my Clean Architecture course. Good to see that it's generating interest in AutoMoq! : )

@celluj34
Copy link

celluj34 commented Feb 7, 2018

Not my repo, but I found a "fork" that supports .net standard 2.0: https://github.com/ThomasHenrique2/AutoMoqCore

@giggio
Copy link

giggio commented Aug 8, 2018

Thanks, @celluj34. I migrated to AutoMoqCore.

@collinprice
Copy link

Moq has added Moq.AutoMocker. The method names are different but its basically a drop in replacement and appears to be active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.