✅ Creating Dll

Creating Dll
100 Replies
Biton6The9Gever
Biton6The9Gever4mo ago
@leowest
leowest
leowest4mo ago
ok so is this for u or some school home work?
Biton6The9Gever
Biton6The9Gever4mo ago
i now rebuilded my class lab ye smth like that
leowest
leowest4mo ago
for school?
Biton6The9Gever
Biton6The9Gever4mo ago
ye
leowest
leowest4mo ago
if its for school I would assume ur techer told u what net to use no?
Biton6The9Gever
Biton6The9Gever4mo ago
its discover urself type
leowest
leowest4mo ago
.net 8 is the newest, .net framework is what usually is used in school
Biton6The9Gever
Biton6The9Gever4mo ago
i set it up as net6 if version error will come up ill change it
leowest
leowest4mo 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
Biton6The9Gever4mo ago
i have those two dll files
No description
leowest
leowest4mo ago
u right click Dependencies
Biton6The9Gever
Biton6The9Gever4mo ago
Biton.dll use the Unit4.dll
leowest
leowest4mo ago
and add project reference
leowest
leowest4mo ago
]
No description
Biton6The9Gever
Biton6The9Gever4mo ago
add them both?
leowest
leowest4mo 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
leowest4mo ago
No description
Biton6The9Gever
Biton6The9Gever4mo ago
im adding them like that ye?
No description
leowest
leowest4mo 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
Biton6The9Gever4mo 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
leowest4mo 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
Biton6The9Gever4mo 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
leowest4mo 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
Biton6The9Gever4mo ago
Ok wdym like how i do that i have only the dll file of unit4
leowest
leowest4mo ago
u do that to unit4.dll
leowest
leowest4mo ago
No description
leowest
leowest4mo ago
copy paste
Biton6The9Gever
Biton6The9Gever4mo ago
this ?
No description
leowest
leowest4mo ago
yes ok
Biton6The9Gever
Biton6The9Gever4mo ago
there is no Copy
leowest
leowest4mo ago
so now right click COnsoleProject Add project reference and reference Biton
Biton6The9Gever
Biton6The9Gever4mo ago
i cant see add project refrance i have add refrance Web Refrance
leowest
leowest4mo ago
No description
leowest
leowest4mo ago
u dont see that
Biton6The9Gever
Biton6The9Gever4mo ago
No description
leowest
leowest4mo ago
Reference
Biton6The9Gever
Biton6The9Gever4mo ago
ok
leowest
leowest4mo ago
first item should be projects right so u can check biton
Biton6The9Gever
Biton6The9Gever4mo ago
ye
leowest
leowest4mo ago
No description
leowest
leowest4mo ago
ok
Biton6The9Gever
Biton6The9Gever4mo ago
No description
leowest
leowest4mo 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
Biton6The9Gever4mo ago
i think it doesnt work
No description
leowest
leowest4mo ago
right click biton and select build
Biton6The9Gever
Biton6The9Gever4mo ago
ok
leowest
leowest4mo ago
No description
Biton6The9Gever
Biton6The9Gever4mo ago
ive done it still dont work
leowest
leowest4mo ago
ok what is the code inside Biton
Biton6The9Gever
Biton6The9Gever4mo ago
u want me to send the file? dont call this number its not mine
leowest
leowest4mo ago
remove code then I already seen it
Biton6The9Gever
Biton6The9Gever4mo ago
kk
leowest
leowest4mo ago
so it looks ok when u build Biton does it succeed
Biton6The9Gever
Biton6The9Gever4mo 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
leowest4mo ago
ok and on your console it still does not can u show me the solution explorer with the references open
leowest
leowest4mo ago
it should look like this
No description
Biton6The9Gever
Biton6The9Gever4mo ago
No description
Biton6The9Gever
Biton6The9Gever4mo ago
loadin the image
leowest
leowest4mo ago
Console one Biton is right
Biton6The9Gever
Biton6The9Gever4mo ago
u have project in it?
leowest
leowest4mo ago
see my image above it needs to look like that biton is right but I dont see your COnsole project
Biton6The9Gever
Biton6The9Gever4mo ago
the assembly is tehre cuz of the unit 4 idk how u got that project
leowest
leowest4mo ago
no read what I am saying I want to see the COnsole one the Biton is RIGHT
Biton6The9Gever
Biton6The9Gever4mo ago
No description
leowest
leowest4mo ago
u have not reference the project there like mine so it doesn't know biton
Biton6The9Gever
Biton6The9Gever4mo ago
um
leowest
leowest4mo ago
No description
leowest
leowest4mo ago
remove that
Biton6The9Gever
Biton6The9Gever4mo ago
removed
leowest
leowest4mo ago
then right click References add project reference and select biton did you create .net framework console project?
Biton6The9Gever
Biton6The9Gever4mo ago
ye
Biton6The9Gever
Biton6The9Gever4mo ago
No description
leowest
leowest4mo 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
Biton6The9Gever4mo ago
school said
leowest
leowest4mo ago
ok then u do have a .net requirement when I ask u said u dont ok let me change mine sec
Biton6The9Gever
Biton6The9Gever4mo ago
Ok btw i really appreciate ur help
leowest
leowest4mo ago
its all good 😉
Biton6The9Gever
Biton6The9Gever4mo 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
leowest4mo ago
so yeah
No description
leowest
leowest4mo 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
Biton6The9Gever4mo ago
ohhhh make sense
leowest
leowest4mo 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
Biton6The9Gever4mo ago
one sec iom doin smth
leowest
leowest4mo 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
leowest4mo ago
No description
Biton6The9Gever
Biton6The9Gever4mo ago
do i need to build ?
leowest
leowest4mo ago
yes
Biton6The9Gever
Biton6The9Gever4mo ago
MAN UR LEGEND
leowest
leowest4mo ago
it works now?
Biton6The9Gever
Biton6The9Gever4mo ago
ye ty so much man
leowest
leowest4mo ago
so the problem is schools these days mainly teach people on old .net framework its legacy
Biton6The9Gever
Biton6The9Gever4mo ago
that it was .net like the project
leowest
leowest4mo ago
so its a bit confusing when u mix it with newer .net
Biton6The9Gever
Biton6The9Gever4mo ago
can i ask u where u from?
leowest
leowest4mo ago
so always keep in mind what framework you're using brazil
Biton6The9Gever
Biton6The9Gever4mo ago
oh cool
leowest
leowest4mo ago
$close 😉
MODiX
MODiX4mo ago
Use the /close command to mark a forum thread as answered
Biton6The9Gever
Biton6The9Gever4mo ago
ty so much