Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 11th, 2005, 10:46 AM
Registered User
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gau404
Default How to compile C# file - Please get me started

I am just getting started with C#. I have developed a file using notepad. The file is named "First.cs". I believe to compile this file I will have to type csc First.cs at the command prompt. I have done so but I get a message saying "csc is not recognized as an internal or external command,operable program or batch file."

My C:\Windows\Microsoft.NET\Framework\v1.0.3705 directory does contain the csc.exe file. So please HELP ME, or i'll never get started!!!!

Old November 12th, 2005, 01:38 AM
Registered User
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

it may be due to incorrect installation.

just typing 'csc' in prompt it there will show like this
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

fatal error CS2008: No inputs specified"

Better Try "Microsoft Visual C# .NET " IDE in "debug" menu use "start" to run.
Old November 12th, 2005, 05:29 AM
Posts: n/a

try setting the PATH variable to include the location of the csc.exe file, eg. at the command prompt type:

PATH %PATH% C:\windows\Microsoft.NET\Framework\v1.0.3705.

Similar Threads
Thread Thread Starter Forum Replies Last Post
why can't i compile this java file? poorguy Java Basics 1 June 11th, 2007 08:03 AM
can't get dll file to compile stevecist ASP.NET 1.0 and 1.1 Basics 3 January 2nd, 2007 01:10 PM
unable to compile class file derricktancf JSP Basics 0 November 1st, 2006 04:42 AM
External file compile to run petermail Visual Studio 2005 2 September 6th, 2006 05:08 AM
Not able to compile jasper jrxml file satyakishore Servlets 1 March 9th, 2006 05:58 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.