The BOT works, but I can't deploy it to Azure using the CLI instructions here.
https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-deploy-az-cli?view=azure-bot-service-4.0&tabs=csharp#option-1-existing-app-service-plan
Here are my relevant CLI commands.
az bot prepare-deploy --lang Csharp --code-dir "./Source/Repos/MyBot.Bot/MyBot.Bot" --proj-file-path "C:Users<username>SourceReposMyBot.BotMyBot.BotMyBot.Bot.csproj"
az webapp deployment source config-zip --resource-group "BOTQnARG" --name "MYBOTAPP" --src "C:Users<username>SourceReposMyBot.BotMyBot.BotData.zip" --timeout 3600
When I include a .deployment file in the Bots root directory zip file, I get this error message in Deployment Center (Preview) for the App Service. I also get a Zip Deployment Failed message in the Command Prompt window.
Using the following command to generate deployment script: 'azure site deploymentscript -y --no-dot-deployment -r "D:localTempzipdeployextracted" -o "D:homesitedeploymentsools" --aspNetCore "C:Users<username>SourceReposMyBotMyBotMyBot.csproj"'.
D:Program Files (x86)SiteExtensionsKudu91.21119.4922in
ode_moduleskuduscriptlibgenerator.js:90
throw new Error("The project file path should be a sub-directory of the repository root"); } ;
^
Error: The project file path should be a sub-directory of the repository root
Here is a sample of what my root directory for the BOT looks like.
BEG UPDATE 1
I removed the . in the Project name and folders, but it still didn't work.
Here is my .deployment file.
[config]
SCM_SCRIPT_GENERATOR_ARGS=--aspNetCore "C:Users<username>SourceReposMyBotMyBotMyBot.csproj"
END UPDATE 1
Any idea what's happening and how to work around this?
question from:
https://stackoverflow.com/questions/65889979/cant-deploy-asp-net-core-sdk-4-bot-using-cli-instructions 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…