Difference between revisions of "Publish Project to AWS"

From MgmtWiki
Jump to: navigation, search
(Solution)
(Solution)
Line 8: Line 8:
 
# Prepare a project with all dependencies marked.
 
# Prepare a project with all dependencies marked.
 
# Add a deployment file (see section below)
 
# Add a deployment file (see section below)
 +
# from powershell type
  
 
===Deployment File===
 
===Deployment File===
Line 31: Line 32:
 
  -- aws-windows-deployment-manifest.json
 
  -- aws-windows-deployment-manifest.json
 
  -- dotnet-core-app.zip
 
  -- dotnet-core-app.zip
 +
 +
<pre>
 +
PS C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\RegistryServer> dotnet publish
 +
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Core
 +
Copyright (C) Microsoft Corporation. All rights reserved.
 +
 +
  Determining projects to restore...
 +
  All projects are up-to-date for restore.
 +
  SimpleService -> C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\SimpleService\bin\Debug\netcoreapp3.1\SimpleService.dll
 +
  CredStore -> C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\CredStore\bin\Debug\netcoreapp3.1\CredStore.dll
 +
  MonitorService -> C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\MonitorService\bin\Debug\netcoreapp3.1\MonitorService.dll
 +
  RegistryServer -> C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\RegistryServer\bin\Debug\netcoreapp3.1\RegistryServer.dll
 +
  RegistryServer -> C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\RegistryServer\bin\Debug\netcoreapp3.1\publish\
 +
PS C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\RegistryServer>
 +
</pre>
  
 
==References==
 
==References==

Revision as of 13:33, 5 June 2020

Full Title or Meme

Build and zip a Visual Studio dot net core 2.1+ Project for publication to Amazon Web Services.

Context

Problems

Solution

From the website Deploying an ASP.NET core application with Elastic Beanstalk.

  1. Prepare a project with all dependencies marked.
  2. Add a deployment file (see section below)
  3. from powershell type

Deployment File

{
 "manifestVersion": 1,
 "deployments": {
   "aspNetCoreWeb": [
     {
       "name": "my-dotnet-core-app",
       "parameters": {
         "archive": "dotnet-core-app.zip"
       }
     }
   ]
 }
}
Example dotnet-core-bundle.zip
-- aws-windows-deployment-manifest.json
-- dotnet-core-app.zip
PS C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\RegistryServer> dotnet publish
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  All projects are up-to-date for restore.
  SimpleService -> C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\SimpleService\bin\Debug\netcoreapp3.1\SimpleService.dll
  CredStore -> C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\CredStore\bin\Debug\netcoreapp3.1\CredStore.dll
  MonitorService -> C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\MonitorService\bin\Debug\netcoreapp3.1\MonitorService.dll
  RegistryServer -> C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\RegistryServer\bin\Debug\netcoreapp3.1\RegistryServer.dll
  RegistryServer -> C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\RegistryServer\bin\Debug\netcoreapp3.1\publish\
PS C:\Users\rp_to_000\Documents\TopCat\Repos\TrustRegistry3\RegistryServer>

References