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