✅ Creating Dll

Creating Dll
100 Replies
Biton6The9Gever
Biton6The9GeverOP10mo ago
@leowest
leowest
leowest10mo ago
ok so is this for u or some school home work?
Biton6The9Gever
Biton6The9GeverOP10mo ago
i now rebuilded my class lab ye smth like that
leowest
leowest10mo ago
for school?
Biton6The9Gever
Biton6The9GeverOP10mo ago
ye
leowest
leowest10mo ago
if its for school I would assume ur techer told u what net to use no?
Biton6The9Gever
Biton6The9GeverOP10mo ago
its discover urself type
leowest
leowest10mo ago
.net 8 is the newest, .net framework is what usually is used in school
Biton6The9Gever
Biton6The9GeverOP10mo ago
i set it up as net6 if version error will come up ill change it
leowest
leowest10mo ago
ok so you set up 1 Console app as .net 6 then you setup 1 class library as .net 6 then on console app
Biton6The9Gever
Biton6The9GeverOP10mo ago
i have those two dll files
No description
leowest
leowest10mo ago
u right click Dependencies
Biton6The9Gever
Biton6The9GeverOP10mo ago
Biton.dll use the Unit4.dll
leowest
leowest10mo ago
and add project reference
leowest
leowest10mo ago
]
No description
Biton6The9Gever
Biton6The9GeverOP10mo ago
add them both?
leowest
leowest10mo ago
so in my example I create Biton6 and Biton62 you case is Biton and Unit4 if Biton uses Unit4 then on Biton you add Unit4 as project refrence and on Console app u add Biton as reference or however your order is
leowest
leowest10mo ago
No description
Biton6The9Gever
Biton6The9GeverOP10mo ago
im adding them like that ye?
No description
leowest
leowest10mo ago
so I have 3 projects in my solution you create all the projects so its better to reference the project not the dll
Biton6The9Gever
Biton6The9GeverOP10mo ago
the unit4 code is like unkwon how i do that? like i need to send the teacher the dll file not the project
leowest
leowest10mo ago
yes I understand that u will send the teacher your resulting folder that you compile/build so are all the 3 projects in the same solution?
Biton6The9Gever
Biton6The9GeverOP10mo ago
i have the Biton and just a random project and tthe unit4 is smth the teacher gave us and i dont have the source code its just a refrance for us
leowest
leowest10mo ago
ok so the way you have things u would only reference biton unit4 u would drag and drop to the console app solution explorer
Biton6The9Gever
Biton6The9GeverOP10mo ago
Ok wdym like how i do that i have only the dll file of unit4
leowest
leowest10mo ago
u do that to unit4.dll
leowest
leowest10mo ago
No description
leowest
leowest10mo ago
copy paste
Biton6The9Gever
Biton6The9GeverOP10mo ago
this ?
No description
leowest
leowest10mo ago
yes ok
Biton6The9Gever
Biton6The9GeverOP10mo ago
there is no Copy
leowest
leowest10mo ago
so now right click COnsoleProject Add project reference and reference Biton
Biton6The9Gever
Biton6The9GeverOP10mo ago
i cant see add project refrance i have add refrance Web Refrance
leowest
leowest10mo ago
No description
leowest
leowest10mo ago
u dont see that
Biton6The9Gever
Biton6The9GeverOP10mo ago
No description
leowest
leowest10mo ago
Reference
Biton6The9Gever
Biton6The9GeverOP10mo ago
ok
leowest
leowest10mo ago
first item should be projects right so u can check biton
Biton6The9Gever
Biton6The9GeverOP10mo ago
ye
leowest
leowest10mo ago
No description
leowest
leowest10mo ago
ok
Biton6The9Gever
Biton6The9GeverOP10mo ago
No description
leowest
leowest10mo ago
now you can use biton on your COnsole Project and when u build console project it will build everything to the same folder so when you run COnsole in debug does it work
Biton6The9Gever
Biton6The9GeverOP10mo ago
i think it doesnt work
No description
leowest
leowest10mo ago
right click biton and select build
Biton6The9Gever
Biton6The9GeverOP10mo ago
ok
leowest
leowest10mo ago
No description
Biton6The9Gever
Biton6The9GeverOP10mo ago
ive done it still dont work
leowest
leowest10mo ago
ok what is the code inside Biton
Biton6The9Gever
Biton6The9GeverOP10mo ago
u want me to send the file? dont call this number its not mine
leowest
leowest10mo ago
remove code then I already seen it
Biton6The9Gever
Biton6The9GeverOP10mo ago
kk
leowest
leowest10mo ago
so it looks ok when u build Biton does it succeed
Biton6The9Gever
Biton6The9GeverOP10mo ago
ye 1>Done building project "Biton.csproj". ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Build started at 19:37 and took 00.613 seconds ==========
leowest
leowest10mo ago
ok and on your console it still does not can u show me the solution explorer with the references open
leowest
leowest10mo ago
it should look like this
No description
Biton6The9Gever
Biton6The9GeverOP10mo ago
No description
Biton6The9Gever
Biton6The9GeverOP10mo ago
loadin the image
leowest
leowest10mo ago
Console one Biton is right
Biton6The9Gever
Biton6The9GeverOP10mo ago
u have project in it?
leowest
leowest10mo ago
see my image above it needs to look like that biton is right but I dont see your COnsole project
Biton6The9Gever
Biton6The9GeverOP10mo ago
the assembly is tehre cuz of the unit 4 idk how u got that project
leowest
leowest10mo ago
no read what I am saying I want to see the COnsole one the Biton is RIGHT
Biton6The9Gever
Biton6The9GeverOP10mo ago
No description
leowest
leowest10mo ago
u have not reference the project there like mine so it doesn't know biton
Biton6The9Gever
Biton6The9GeverOP10mo ago
um
leowest
leowest10mo ago
No description
leowest
leowest10mo ago
remove that
Biton6The9Gever
Biton6The9GeverOP10mo ago
removed
leowest
leowest10mo ago
then right click References add project reference and select biton did you create .net framework console project?
Biton6The9Gever
Biton6The9GeverOP10mo ago
ye
Biton6The9Gever
Biton6The9GeverOP10mo ago
No description
leowest
leowest10mo ago
ah I see that is why its different your dll is .net 6 why did u make a console project that is .net framework that makes no sense
Biton6The9Gever
Biton6The9GeverOP10mo ago
school said
leowest
leowest10mo ago
ok then u do have a .net requirement when I ask u said u dont ok let me change mine sec
Biton6The9Gever
Biton6The9GeverOP10mo ago
Ok btw i really appreciate ur help
leowest
leowest10mo ago
its all good 😉
Biton6The9Gever
Biton6The9GeverOP10mo ago
can i send u the class lab and ull make the dll file and ull send me or this to much to ask ? Xd
leowest
leowest10mo ago
so yeah
No description
leowest
leowest10mo ago
u do that and it will show like u had before my bad because .net framework is different so I wasn't sure we were on the same page so now the problem is u need your library to be .net framework as well otherwise it wont recognize it im sure
Biton6The9Gever
Biton6The9GeverOP10mo ago
ohhhh make sense
leowest
leowest10mo ago
unless u make it mmm target .netstandard but u dont have to you probably need ti all to be .net framework due to what u said above
Biton6The9Gever
Biton6The9GeverOP10mo ago
one sec iom doin smth
leowest
leowest10mo ago
so after u change it to .net framework add it as a project reference to your console you should be able to use the methods just fine then all u do is run and u should see all files in your output folder like this
leowest
leowest10mo ago
No description
Biton6The9Gever
Biton6The9GeverOP10mo ago
do i need to build ?
leowest
leowest10mo ago
yes
Biton6The9Gever
Biton6The9GeverOP10mo ago
MAN UR LEGEND
leowest
leowest10mo ago
it works now?
Biton6The9Gever
Biton6The9GeverOP10mo ago
ye ty so much man
leowest
leowest10mo ago
so the problem is schools these days mainly teach people on old .net framework its legacy
Biton6The9Gever
Biton6The9GeverOP10mo ago
that it was .net like the project
leowest
leowest10mo ago
so its a bit confusing when u mix it with newer .net
Biton6The9Gever
Biton6The9GeverOP10mo ago
can i ask u where u from?
leowest
leowest10mo ago
so always keep in mind what framework you're using brazil
Biton6The9Gever
Biton6The9GeverOP10mo ago
oh cool
leowest
leowest10mo ago
$close 😉
MODiX
MODiX10mo ago
Use the /close command to mark a forum thread as answered
Biton6The9Gever
Biton6The9GeverOP10mo ago
ty so much
Want results from more Discord servers?
Add your server