使用 nuget 安装 Bot 框架
Install Bot framework with nuget
我在文档中看到我必须下载一个模板才能使用机器人框架 https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-quickstart
有没有办法用 nuget 安装这个模板?我找到了 nuget https://www.nuget.org/packages/Microsoft.Bot.Builder/ 的包
但是我必须创建一个项目来使用 cmd Install-Package
如何仅使用 nuget 安装 bot framewokr?
您所指的文档文章没有说您必须安装任何框架。它推荐的是安装项目模板。项目模板不是框架,它们只是有一些预先包含的文件。
同篇文档文章明确说框架本身是一个nuget包。他们说:
By using the Bot Application template, you're creating a project that already contains all of the components that are required to build a simple bot, including a reference to the Bot Builder SDK for .NET, Microsoft.Bot.Builder. Verify that your project references the latest version of the SDK:
- Right-click on the project and select Manage NuGet Packages.
- In the Browse tab, type "Microsoft.Bot.Builder".
- Locate the Microsoft.Bot.Builder package in the list of search
results, and click the Update button for that package.
- Follow the prompts to accept the changes and update the package.
Thanks to the Bot Application template, your project contains all of the code that's necessary to create the bot in this tutorial. You won't actually need to write any additional code. However, before we move on to testing your bot, take a quick look at some of the code that the Bot Application template provided.
这基本上意味着没有这个项目模板的要求。您实际上可以做的是安装模板、创建项目并查看项目结构和包。然后,您可以自由地复制相同的项目结构并自己添加必要的引用,而无需使用项目模板。
同样,模板只是一个 bootstrap 代码。
我在文档中看到我必须下载一个模板才能使用机器人框架 https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-quickstart
有没有办法用 nuget 安装这个模板?我找到了 nuget https://www.nuget.org/packages/Microsoft.Bot.Builder/ 的包 但是我必须创建一个项目来使用 cmd Install-Package
如何仅使用 nuget 安装 bot framewokr?
您所指的文档文章没有说您必须安装任何框架。它推荐的是安装项目模板。项目模板不是框架,它们只是有一些预先包含的文件。
同篇文档文章明确说框架本身是一个nuget包。他们说:
By using the Bot Application template, you're creating a project that already contains all of the components that are required to build a simple bot, including a reference to the Bot Builder SDK for .NET, Microsoft.Bot.Builder. Verify that your project references the latest version of the SDK:
- Right-click on the project and select Manage NuGet Packages.
- In the Browse tab, type "Microsoft.Bot.Builder".
- Locate the Microsoft.Bot.Builder package in the list of search results, and click the Update button for that package.
- Follow the prompts to accept the changes and update the package.
Thanks to the Bot Application template, your project contains all of the code that's necessary to create the bot in this tutorial. You won't actually need to write any additional code. However, before we move on to testing your bot, take a quick look at some of the code that the Bot Application template provided.
这基本上意味着没有这个项目模板的要求。您实际上可以做的是安装模板、创建项目并查看项目结构和包。然后,您可以自由地复制相同的项目结构并自己添加必要的引用,而无需使用项目模板。
同样,模板只是一个 bootstrap 代码。