CS00012 The type is defined in an assembly that is not referenced. But that assembly it is reference
Otherwise if I remove that reference I am getting more than 100 errors, the moment I add that reference. Then I see this error that its on topic and this is the only error. I can see that type in referenced project
projects are on 4.8 Framework
18 Replies
Is it a custom assembly?
its just a project that I am referencing
so yes, it is custom
but it's your code, not someone elses
yes
does it have an snk or pfx file?
nope, it's not signed
I've seen that before with some GAC inconsistencies
but if it's not signed
what type of project are you using for your entry point
what do you mean by type?
oh it's asp.net
kk
and referenced project it's library class
is it "sdk style" or "classic"?
classic as far as I know
BUT I think I've got it
one moment
could be cached assembly
this is where I've started getting issue
because I've cleared cached
and deleted obj / bin folders
it's building š so there was a third project that was referencing that second one (class project) but through nuget package (which I created at some point but removeded afterwards)
after chainging 3rd project reference directly to second
everything works fine
š
error message was misleading, it was never problem with that assembly but different one
This was going to be sorta my next question
but from a different direction
it's stupid that his happen :/
but finally it works
thanks for help š
eh, I was just a duck
no
you gave me an idea
;D