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