title: deploy two asp.net core applications which in one solution to nginx
body: <p>I'm new to asp.net core and deployment, currently, I have a solution which contains multiple projects, an asp.net core project and a asp.net core web api project in this solution. I want to deploy these two projects to nginx.</p>
  
  <p>I have checked the documentation,</p>
  
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/publishing/linuxproduction" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/publishing/linuxproduction</a></p>
  
  <p>but it is the simple demo project deployment, is there any other resources I can refer?</p>
  
  <p>I have some questions below,</p>
  
  <ol>
  <li><p>Follow the documentation, I copied the files in publish folder to linux and then execute dotnet restore and dotnet run commands. But there's an exception said can't find project.json. Then I tried to copy all of the source files to linux, and then execute restore and run comment, it works. Why?</p></li>
  <li><p>If there're two projects which I need to deploy, like what I said above, how can I do, any guide I can refer?</p></li>
  </ol>