Olá , estou com problema no formato para compilar o primeiro código. SEGUE ABAIXO A MENSAGEM NO PROMPT DE COMANDO: warning CS2008: Nenhum arquivo de origem especificado error CS1562: Saídas sem origem devem ter a opção /out especificada
c:\LearningCSharp>c:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe HelloWorld.txt Microsoft (R) Visual C# Compiler version 4.8.9032.0 for C# 5 Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
HelloWorld.txt(6,38): error CS1026: ) esperado HelloWorld.txt(8,32): error CS1519: Token '(' inválido na declaração de membro class, struct ou interface HelloWorld.txt(10,1): error CS1022: Definição de namespace ou tipo, ou final do arquivo esperado
c:\LearningCSharp>
SEGUE ABAIXO O BLOCO DO CÓDIGO ESCRITO E SALVO NO BLOCO DE NOTAS :
using System;
class Programa
{ static void Main(string[] args] { Console.WriteLine("Hello,world"); } }