private string GetBasePath()
{
var path = System.Diagnostics.Process.GetCurrentProcess()!.MainModule!.FileName;
FileInfo fi = new FileInfo(path);
// If you'd set something in a 'resources' folder and made the content copy always.
var basePath = fi.Directory + @"\resources\";
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://aka.ms/new-console-template for more information | |
using DoTaskAndGetResult; | |
Console.WriteLine("Hello, World!"); | |
TestClass tc = new TestClass(); | |
List<Task<TestData>> taskList = new List<Task<TestData>>(); | |
for(int i = 0; i < 1000; i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From solution level: | |
containerRegistryName = The name of the container registry you create in Azure (acr) | |
acrRepositoryName = The individual repository within acr (e.g. my-microservice-app) | |
# Note build is from solution level. You might just need './Dockerfile .' | |
docker build -t {acrRepositoryName}:latest -f ./VsProjectName/Dockerfile . | |
az login | |
az acr login --name {containerRegistryName} | |
docker tag {acrRepositoryName}:latest {containerRegistryName}.azurecr.io/{acrRepositoryName}:latest; | |
docker push {containerRegistryName}.azurecr.io/{acrRepositoryName}:latest |
OlderNewer