-
Notifications
You must be signed in to change notification settings - Fork 0
Criando projeto no Visual Studio Code
WILSON DE OLIVEIRA JUNIOR edited this page Apr 23, 2021
·
7 revisions
Se você esta usando Visual Studio Code copie os comandos abaixo e cole no Terminal e o projeto será criado automáticamente, como nos antigos arquivos bat.
MD Taste
CD Taste
dotnet new sln --name Taste
MD 01-FrontEnd
CD 01-FrontEnd
dotnet new webapp -o Taste.Web --auth Individual --framework netcoreapp3.1
CD ..
MD 02-Business
CD 02-Business
dotnet new classlib -o Taste.Domain --framework netcoreapp3.1
dotnet new classlib -o Taste.Application --framework netcoreapp3.1
CD ..
MD 03-Infrastructure
CD 03-Infrastructure
dotnet new classlib -o Taste.DataAccess --framework netcoreapp3.1
CD ..
del .\02-Business\Taste.Application\Class1.cs
del .\02-Business\Taste.Domain\Class1.cs
del .\03-Infrastructure\Taste.DataAccess\Class1.cs
dotnet sln add .\01-FrontEnd\Taste.Web\Taste.Web.csproj
dotnet sln add .\02-Business\Taste.Application\Taste.Application.csproj
dotnet sln add .\02-Business\Taste.Domain\Taste.Domain.csproj
dotnet sln add .\03-Infrastructure\Taste.DataAccess\Taste.DataAccess.csproj
dotnet build
start-process -FilePath 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe' -ArgumentList 'https://localhost:5001'
dotnet run --project .\01-FrontEnd\Taste.Web\Taste.Web.csproj
clsO resultado esperado é o seguinte:
