C
C#•2y ago
fasadin

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
Mayor McCheese
Mayor McCheese•2y ago
Is it a custom assembly?
fasadin
fasadinOP•2y ago
its just a project that I am referencing so yes, it is custom
Mayor McCheese
Mayor McCheese•2y ago
but it's your code, not someone elses
fasadin
fasadinOP•2y ago
yes
Mayor McCheese
Mayor McCheese•2y ago
does it have an snk or pfx file?
fasadin
fasadinOP•2y ago
nope, it's not signed
Mayor McCheese
Mayor McCheese•2y ago
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
fasadin
fasadinOP•2y ago
what do you mean by type? oh it's asp.net
Mayor McCheese
Mayor McCheese•2y ago
kk
fasadin
fasadinOP•2y ago
and referenced project it's library class
Mayor McCheese
Mayor McCheese•2y ago
is it "sdk style" or "classic"?
fasadin
fasadinOP•2y ago
classic as far as I know BUT I think I've got it one moment
Mayor McCheese
Mayor McCheese•2y ago
could be cached assembly
fasadin
fasadinOP•2y ago
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
Mayor McCheese
Mayor McCheese•2y ago
This was going to be sorta my next question but from a different direction
fasadin
fasadinOP•2y ago
it's stupid that his happen :/ but finally it works thanks for help šŸ™‚
Mayor McCheese
Mayor McCheese•2y ago
eh, I was just a duck
fasadin
fasadinOP•2y ago
no you gave me an idea ;D

Did you find this page helpful?