В Windows я использовал файл запуска.
Код: Выделить всё
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"Orchestration.Lambda": {
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Local",
"AWS_DEFAULT_REGION": "us-west-2",
"AWS_REGION": "us-west-2"
},
"commandName": "Executable",
"commandLineArgs": "%USERPROFILE%/.dotnet/tools/.store/amazon.lambda.testtool-8.0/0.15.1/amazon.lambda.testtool-8.0/0.15.1/tools/net8.0/any/Amazon.Lambda.TestTool.BlazorTester.dll --port 5050",
"workingDirectory": "$(ProjectDir)",
"executablePath": "dotnet"
},
"Orchestration.Lambda (VS)": {
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Local",
"AWS_DEFAULT_REGION": "us-west-2",
"AWS_REGION": "us-west-2"
},
"commandName": "Executable",
"commandLineArgs": "--port 5050",
"executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-8.0.exe",
"workingDirectory": "$(ProjectDir)"
},
"Orchestration.Lambda (LocalStack)": {
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Local",
"AWS_DEFAULT_REGION": "us-west-2",
"AWS_REGION": "us-west-2",
"AWS_ENDPOINT_URL_S3": "http://s3.localhost.localstack.cloud:4566",
"AWS_ENDPOINT_URL_SSM": "http://us-west-2.localhost.localstack.cloud:4566"
},
"commandName": "Executable",
"commandLineArgs": "%USERPROFILE%/.dotnet/tools/.store/amazon.lambda.testtool-8.0/0.15.1/amazon.lambda.testtool-8.0/0.15.1/tools/net8.0/any/Amazon.Lambda.TestTool.BlazorTester.dll --port 5050",
"workingDirectory": "$(ProjectDir)",
"executablePath": "dotnet"
},
"Mock Lambda Test Tool": {
"commandName": "Executable",
"commandLineArgs": "--port 5050",
"workingDirectory": ".\\bin\\$(Configuration)\\net8.0",
"executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-8.0.exe"
}
}
}
Вопросы
Что мне следует использовать вместо %пользовательскогопрофиль % на macos? Тестовый инструмент на macOS?>
Подробнее здесь: https://stackoverflow.com/questions/796 ... or-a-net-8