C
C#

help

❔ I can't reference a class library please help

Ggbrlhz2/2/2023
I can't reference a class library i t says compilation error please help
AAngius2/2/2023
What library? How are you referencing it? What's the error?
Ggbrlhz2/2/2023
Ggbrlhz2/2/2023
@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
AAngius2/2/2023
Does the library build fine by itself? And does the main app build fine by itself?
Ggbrlhz2/2/2023
Yes they do @Angius
AAngius2/2/2023
Huh, odd Weird that there isn't a good and proper error message
Ggbrlhz2/2/2023
it seems that removing that line from the classLibrary.csproj lets me reference
AAngius2/2/2023
Huh Do both the class library and the Winforms project target the same framework version?
Ggbrlhz2/2/2023
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
AAngius2/2/2023
I don't see it either, sorry
Ccptcrawler2/2/2023
try targeting from the library .netstandard 2.0 instead of .Net 6 WinForms may have some problems with it maybe 🧐
AAnton2/3/2023
it should be .net6-windows
AAccord2/4/2023
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.

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
❔ ASP.NET REMOTE DEVELOPMENTHey does anyone know if I would need nginx for remote development on a ubuntu server from my windowException/NULL/Error handling advice.DeserializeAsync clearly returns a nullable generic object. From the picture we can clearly see that❔ ASP.NET Core web app vs ASP.net web application(.NET Framework)Hi, Ive been working with c# for a while now and would like to make a webapp but I dont know where t✅ IGNORE PEOPLEmy place for testing commands❔ Game Hubhi, how can i program my own game hub, like battle.net where i can download and start my own games ?❔ ✅ beginner class and propertiesi am doing basic program abt class and getting information from input but on the weight section whe❔ Best practice to retrieve MySQL columnsHello wonderful people! Can you please help me understanding what would be the best practice to ret❔ Auto Slide Showhere my code✅ materialDesign:Cardfor some reason it says that closing matrialcard doesent exist and it shows an error❔ Why does this code give the CS8604 warning?I'm confused why the below code gives the CS8604 warning. As far as I am concerned, I am null checki✅ Having trouble adding a picture to my code.what should the path look like?❔ Producer Consumer ISourceBlock<T>, periodically flushing consumed dataHi, I've the following scenario: I've a camera continuously acquiring frames and a c# app receiving ❔ Load async data and display it (WindowsAppSDK / WinUI3)I am currently developing my first windows app with C#, Windows App SDK and WinUI3. I want to do som❔ Best Approach to Implement Authentication and Authorization in Microservices with ASP.NET CoreHi friends, I'm looking for experience share. I have Microservices architecture project, that uses ❔ Performance of many small requests vs less but bigger requestsI have 2 projects: an API hosted on aws and a desktop application. Currently, I'm fetching around 4k✅ Image from dataurlI have dataurl with image and i need to get it to some reasonable image object in c#, so i can resiz✅ why does the test case fail?This is from a longest palindrome puzzle on LeetCode https://leetcode.com/problems/longest-palindrom❔ MongoDB Update nested elementsMongoDB question, I'm trying to add a property to all of my existing documents. The thing is, my doc❔ Grapple HookSo I just made a grapple script but I have a gun camera not the actual gun so how do I add the Grapp❔ Custom "block" statement such as while..doHello, is it possible to build a custom block? For example ```csharp // usage DoRequestAsync {