Exforsys
+ Reply to Thread
Results 1 to 5 of 5

How to compile C# Class

This is a discussion on How to compile C# Class within the Microsoft .NET forums, part of the Programming Talk category; Hello I am new into this, so please go soft on my question. I am having .Net Studio 2003 installed ...

  1. #1
    Sesen is offline Junior Member Array
    Join Date
    Feb 2006
    Answers
    12

    How to compile C# Class

    Hello

    I am new into this, so please go soft on my question.
    I am having .Net Studio 2003 installed on my system,
    I have created a simple "sample.cs" class file, Question is
    How do i comple and run the above C# class file?

    Please Help!!!


  2. #2
    nickole is offline Junior Member Array
    Join Date
    Feb 2006
    Answers
    7
    if you are using visual studio, you should be able to create a project with class and use build option.....

    It's pretty straight forward thing to do in Visual Studio .NET....


  3. #3
    Sesen is offline Junior Member Array
    Join Date
    Feb 2006
    Answers
    12
    Nickole

    Actually I am still a learner and I am learning thro a book, it states to use command "CSC sample.cs" at command prompt. How do i accomplish this?


  4. #4
    cbdarts is offline Member Array
    Join Date
    Apr 2006
    Answers
    40

    Lightbulb

    Well, usually while working with C#, most books recommend using the .NET Studio. It is rather unusual that they are asking you to use CSC, since that has been outdated now.

    In the new versions of .NET, CSC.exe is not used at all, in fact the compiler and interpreter are combined into one.

    Personnally, I recommend you install VS.NET on your machine, and then use the Development environment for your learning, it makes it much easier. Follow the code examples from the book, but avoid the command line method, its too tedious when you're starting out.

    Chaitanya


  5. #5
    JosefMiller is offline Junior Member Array
    Join Date
    Dec 2010
    Answers
    3
    When I rebuild the same application on my local PC.
    and upload the application, it works fine!..


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...