PDA

View Full Version : سوال: مشكل در اجراي source file با پسوند cs.



ahmadpour
چهارشنبه 30 مرداد 1387, 08:41 صبح
با سلام
من از سايت http://www.olomrayaneh.net/list_codes.php فايلهاي source با پسوند cs را download كردم و سپس يكي از اين فايلها را در محيط visual studio 2005 سي شارپ
باز كردم اما وقتي خواستم آنرا اجرا كنم ديدم كه كليد run آن فعال نيست و اين source file قابل اجرا نبود.
لطفا راهنمايي بفرماييد

man4toman
چهارشنبه 30 مرداد 1387, 17:59 عصر
از توضیحات درون خود فایل ها :

I. Compiling and Running the Code Examples

Most of the book's code was designed to be compiled and run from a command prompt.
They may also be imported into Microsoft Visual Studio for compilation. Instructions
are given here for command line usage:

1.) Go to the Microsoft Developer Network Site (http://msdn.microsoft.com/
netframework/technologyinfo/howtoget) and download and install the .NET Framework
SDK (at the time of this writing version 1.1).

2.) Open a windows command prompt and run the sdkvars command to set your environment
variables.

3.) To compile a single program, use the csc command with the source file name, for
example:

C:\>csc IPAddressExample.cs
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.

This will create the .exe executable:

h.jaza
پنج شنبه 31 مرداد 1387, 00:17 صبح
اینا فقط کد هستش نه برنامه که بتونه اجرا بشه