Skip to content
← Back to Community
Assembly Reference
Profile icon
Mac54

How do you add an assembly reference in C# with repl.it? I have a file with a namespace and I want to call a function from that namespace that I have in a separate file.

Answered by heyitsmarcus [earned 5 cycles]
View Answer
Voters
Profile icon
rafast1
Profile icon
SkinnyAnomaly
Profile icon
Muaath5
Profile icon
hawsr
Profile icon
heyitsmarcus
Profile icon
Mac54
Comments
hotnewtop
Profile icon
heyitsmarcus

Your file MWMSTDIO is not a cs file. Right click on it, click Rename and give it a .cs file extension, and it will read just fine.

https://repl.it/@heyitsmarcus/MWMSTDIO

If this solved your problem, please consider upvoting and marking my comment as the accepted answer to close this question. I'll continue answering any questions you might have.

Profile icon
Mac54

@heyitsmarcus Thanks I didn't even notice.

Profile icon
heyitsmarcus

@heyitsmarcus You're welcome. I've noticed that sometimes when you're coding, you can't see the forest through the trees. You need someone to come in and take a glance to see something different. Happy Coding!