View Single Post
Join Date: May 2007
Posts: 69
Reputation: laconstantine is an unknown quantity at this point 
Solved Threads: 1
laconstantine laconstantine is offline Offline
Junior Poster in Training

building dll with exe

 
0
  #1
Jan 12th, 2009
listen i got to compile one file to a dll and one to an exe
all in one project

so i got 1 file called


main.cs

  1. // File: main.cs
  2.  
  3. using UtilityMethods;
  4.  
  5. class TestCode
  6. {
  7. static void Main(string[] args)
  8. {
  9. System.Console.WriteLine(add(2,3));
  10.  
  11.  
  12. }
  13. }

  1. // add.cs
  2. using System;
  3. namespace MyMethods
  4. {
  5. public class MultiplyClass
  6. {
  7. public static int add(int x, int y)
  8. {
  9. return (x+y);
  10. }
  11. }
  12. }

when i compile i am getting only the exe file and not the dll
so i cant use the dll funcs!!

i am using visual C# express

can anybody help me with this one???

i heard i have to add some command but i have no idea where to add it and what command i am freaked off


help me lol please
Reply With Quote