.NET Core + Visual Studio Code - Structure organization

2

I have some doubts about developing applications in .NET Core using Visual Studio Code:

  • How do I create a base project, such as a blank solution, same in Visual Studio?
  • How to organize a .NET Core project that follows some or all of the DDD concepts. How is this division done by DLL's?
  • Returning to the first question, is it necessary to create a blank solution so that we can better organize the project?
  • asked by anonymous 29.11.2018 / 04:07

    1 answer

    1

    I think I can answer all your questions with an example, but I can tell you that you will start using the command line instead of performing all the operations as it is in Visual Studio.

    See some commands:

    dotnet new sln # Cria a solution do seu projeto
    dotnet new [template_name] -o [output path] # Cria o seu projeto
    dotnet sln [sln_name] add [csproj_name] # Adiciona o seu projeto a solution criada.
    

    Just to exemplify the above commands:

    dotnet new sln
    mkdir src
    dotnet new classlib -o src\ProjetoExemplo.Core\
    dotnet sln ProjetoExemplo.sln add src\ProjetoExemplo.Core\ProjetoExemplo.Core.csproj
    

    With this you can compile your projects separately and you can open your main project folder in Visual Studio Code.

    You can get more details about organization of the .net core project with a series of #

    29.11.2018 / 16:17