Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

908
Views
'csc' no se reconoce como un comando interno o externo, programa ejecutable o archivo por lotes

Soy bastante nuevo en C# y estoy tratando de usar cmd para compilar un archivo básico de hola mundo llamado test.cs Contiene lo siguiente:

 // Similar to #include<foo.h> in C++, includes system namespaces in a program using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // A name space declaration, a class is a group of namespaces namespace Program1 { class Hello // my class here, classes can contain multiple functions called methods which define it's behavior { static void Main(string[] args) // main method, just like in C/C++ it's the starting point for execution cycle { Console.WriteLine("Hello World"); Console.ReadKey(); // similar to _getch() in C++ waits for user to input something before closing } } } /* * Other notes, .cs is ac# file extension * cs files can be built via terminal by using csc foo.cs to generate foo.exe run it with foo */

Cuando intento ejecutar la línea csc test.cs obtengo el siguiente resultado: imagen del problema

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Localice la ruta de csc.exe y agréguela a su variable de entorno PATH .

En mi caso, la ruta para el compilador de C# de 64 bits es C:\Windows\Microsoft.NET\Framework64\v4.0.30319 .

Del mismo modo, puede buscar el compilador C# de 32 bits en C:\Windows\Microsoft.NET\Framework en diferentes directorios de versiones de .NET Framework

Habrá csc.exe para todas las versiones como v2.0.XXXXX y v3.5. Seleccione el que tenga la versión más alta en el directorio Framework64/Framework según sus requisitos.

Copie la ruta de csc.exe y agréguela a la variable de entorno del sistema PATH.

Salga del cmd, y luego inicie nuevamente y ejecute el programa. Eso funcionaría.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!