Git Product home page Git Product logo

Comments (14)

mmintoff avatar mmintoff commented on June 3, 2024 2

Hey, I submitted a PR relevant to this issue :)
You can reproduce the "System.Type was somehow not found. Aborting." issue by using "dotnet build" from Powershell.

from someta.

hughesjs avatar hughesjs commented on June 3, 2024 1

Huh, strange, I'll give it a try after my dinner!

Out of interest, are you building on Windows/Linux/MacOS? The C:/ drive showing up in the error message is making me wonder if this is some platform dependency issue

from someta.

hughesjs avatar hughesjs commented on June 3, 2024 1

Ahh yes of course... I forgot the colonies tend to get quite rowdy about this time of year! Nah, I hope you had a good break mate!

As for testing on Linux (if Mac doesn't reproduce the issue), WSL2 is very easy to set up and should hopefully make testing it easy for you! Happy to help with that if your'e not familiar!

image

from someta.

hughesjs avatar hughesjs commented on June 3, 2024

I've tried adding a zip to this but for some reason Github won't let me upload it, if it's vital you get it as a zip let me know and I'll upload it somewhere you can grab it!

from someta.

kswoll avatar kswoll commented on June 3, 2024

Thanks, the link to your GitHub repo is perfect. Starting to look at it now.

from someta.

kswoll avatar kswoll commented on June 3, 2024

So after checking out your repo I was able to successfully build your solution. (I checked out the user-validator branch, of course)

I then created an empty implementation of IUserRepository and added the following lines to your UnitTest1:

[Fact]
public void Test1()
{
	var userService = new UserService(new UserRepository());
	userService.CreateUser(null, null, null);
}

I then debugged the test after putting a breakpoint inside the Invoke method in ValidatedMethodAttribute and the breakpoint was successfully hit. So it all seems to be working for me.

Do you think you could try a clean checkout (into a new folder) like I just did? I wonder if you have some cruft hanging around your obj folder that is somehow getting in the way of a successful build.

from someta.

hughesjs avatar hughesjs commented on June 3, 2024

Yup, I get the same issue on a clean build... Could you try building it in either WSL or a linux docker container? That would pretty much confirm the issue. I've not got anything running Windows to test on I'm afraid

from someta.

kswoll avatar kswoll commented on June 3, 2024

Oh, interesting. I definitely haven't tried it in that scenario. And yeah, I'll give that a whirl, though might not be able to get back to you until tomorrow. Thanks for working with me on this, as I'd like it to work for everyone. :)

from someta.

hughesjs avatar hughesjs commented on June 3, 2024

No worries mate, let me know if there's anything I can do to help!

from someta.

hughesjs avatar hughesjs commented on June 3, 2024

Hey my dude, wondering if you've had a chance to look at this or if there's anything I can do to help? Of course, no worries if not, I know how busy life gets!

from someta.

kswoll avatar kswoll commented on June 3, 2024

Hey, sorry, the 4th of July festivities took up way more of my time than I was anticipating. :) But I'm planning to look at it tomorrow. Hopefully it's reproducible on a Mac, as Linux is a bit tricker for me to test on, though I can if it comes to it.

from someta.

kswoll avatar kswoll commented on June 3, 2024

Love it! And thanks! I have WSL installed, so can definitely go that route. Made some headway today just getting set up, but hopefully more time tomorrow.

from someta.

hughesjs avatar hughesjs commented on June 3, 2024

Thanks for all of your help on this one mate, there's no rush, this isn't for production code or anything, just a useful tool to have in my belt

from someta.

hughesjs avatar hughesjs commented on June 3, 2024

@kswoll - Any chance you've got the time to take a look at #20 ?

from someta.

Related Issues (6)

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.