microsoft / BotFramework-Composer

Dialog creation and management for Microsoft Bot Framework Applications
https://docs.microsoft.com/en-us/composer/
MIT License
860 stars 366 forks source link

Cannot create Bot on Azure Functions #9663

Closed BenjaminGraziadei223946 closed 7 months ago

BenjaminGraziadei223946 commented 8 months ago

I want to create a Bot on Azure Functions, but i always get a Error Command failed: dotnet build Empty.csproj. However i installed the .net, installed the azure function thingy (func-cli-x64.msi) and also looked up my nuget: Registered Sources:

  1. nuget.org [Enabled] https://api.nuget.org/v3/index.json and i believe this is right. I also tried creating it in the cmd with these commands: npm install -g yo npm install -g @microsoft/generator-bot-empty yo @microsoft/bot-empty "EmptyBotTest" cd EmptyBotTest dotnet build

which works but i get warnings and then when trying to import the bot to the framework i get this message: Error Processing Schema Cannot convert undefined or null to object.

However i dont get a error if i try making the bot without the function and using the web, but i dont want that.

Version

Composer v2.1.2

Browser

OS

To Reproduce

Steps to reproduce the behavior:

Actually nothing special just downloaded the app and all the things said before and the error occured the first time i tried creating a bot using the functions.

Expected behavior

Screenshots

image

dmvtech commented 8 months ago

I also tried creating it in the cmd with these commands: npm install -g yo npm install -g @microsoft/generator-bot-empty yo @microsoft/bot-empty "EmptyBotTest" cd EmptyBotTest dotnet build

This is actually creating an Azure Web App bot, not an Azure Functions bot. You can verify by looking at the code and the .csproj file.

which works but i get warnings and then when trying to import the bot to the framework i get this message: Error Processing Schema Cannot convert undefined or null to object.

Hmm. Not sure about that. I was able to run yo and then dotnet build and no issues here. Here is my output for dotnet --info in case you want to compare.

I want to create a Bot on Azure Functions, but i always get a Error Command failed: dotnet build Empty.csproj

For the issue with creating an Azure Functions bot from within Composer, please try and installing the tools via npm. Can you please run npm list -g --depth=0 and verify what (if any) packages you have installed for azure-functions-core-tools. The bot template uses v3, so you should at least have v3, but v4 should work as well.

If you have none, please install either v3 or v4 using the npm commands listed here: https://www.npmjs.com/package/azure-functions-core-tools

Then re-launch Composer and try again.

dmvtech commented 7 months ago

Closing due to lack of response.