❔ I can't reference a class library please help
I can't reference a class library i t says compilation error
14 Replies
please help
What library? How are you referencing it? What's the error?
@Angius
Im trying to reference classLibrary from windows forms app
The message says Compilation error Would you wish to continue and execute a previous correct version
Does the library build fine by itself?
And does the main app build fine by itself?
Yes they do
@Angius
Huh, odd
Weird that there isn't a good and proper error message
it seems that removing that line from the classLibrary.csproj lets me reference
Huh
Do both the class library and the Winforms project target the same framework version?
Yes
No forget it doesn't work again 😦
@Angius i have net 6 installed and both are using net 6 as target framework
i dont see the problem
I don't see it either, sorry
try targeting from the library .netstandard 2.0
instead of .Net 6
WinForms may have some problems with it maybe 🧐
it should be
.net6-windows
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.