From 30905a12edc06ca49e8f5321c1176d94a6acfc07 Mon Sep 17 00:00:00 2001 From: Ezequiel Jadib Date: Fri, 6 Jan 2017 17:47:42 -0300 Subject: [PATCH] [CSharp-ChannelData] Update to Microsoft.Bot.Builder v3.5.0 --- CSharp/core-ChannelData/ChannelDataBot.csproj | 28 +++++++++---------- CSharp/core-ChannelData/ChannelDataDialog.cs | 2 +- CSharp/core-ChannelData/README.md | 6 ++-- CSharp/core-ChannelData/Web.config | 14 +++++++++- CSharp/core-ChannelData/packages.config | 14 +++++----- 5 files changed, 38 insertions(+), 26 deletions(-) diff --git a/CSharp/core-ChannelData/ChannelDataBot.csproj b/CSharp/core-ChannelData/ChannelDataBot.csproj index 67db2c2b69..283767c015 100644 --- a/CSharp/core-ChannelData/ChannelDataBot.csproj +++ b/CSharp/core-ChannelData/ChannelDataBot.csproj @@ -42,42 +42,42 @@ 4 - - packages\Autofac.3.5.2\lib\net40\Autofac.dll + + packages\Autofac.4.2.1\lib\net45\Autofac.dll True packages\Chronic.Signed.0.3.2\lib\net40\Chronic.dll True - - packages\Microsoft.Bot.Builder.3.2.1\lib\net46\Microsoft.Bot.Builder.dll + + packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll True - - packages\Microsoft.Bot.Builder.3.2.1\lib\net46\Microsoft.Bot.Connector.dll + + packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll True - - packages\Microsoft.IdentityModel.Protocol.Extensions.1.0.2.206221351\lib\net45\Microsoft.IdentityModel.Protocol.Extensions.dll + + packages\Microsoft.IdentityModel.Protocol.Extensions.1.0.3.308261200\lib\net45\Microsoft.IdentityModel.Protocol.Extensions.dll True - packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll True - packages\Microsoft.WindowsAzure.ConfigurationManager.3.1.0\lib\net40\Microsoft.WindowsAzure.Configuration.dll + packages\Microsoft.WindowsAzure.ConfigurationManager.3.2.3\lib\net40\Microsoft.WindowsAzure.Configuration.dll True - - packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll + + packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True - - packages\System.IdentityModel.Tokens.Jwt.4.0.2.206221351\lib\net45\System.IdentityModel.Tokens.Jwt.dll + + packages\System.IdentityModel.Tokens.Jwt.4.0.3.308261200\lib\net45\System.IdentityModel.Tokens.Jwt.dll True diff --git a/CSharp/core-ChannelData/ChannelDataDialog.cs b/CSharp/core-ChannelData/ChannelDataDialog.cs index 66a3f092a1..3bd1b55882 100644 --- a/CSharp/core-ChannelData/ChannelDataDialog.cs +++ b/CSharp/core-ChannelData/ChannelDataDialog.cs @@ -18,7 +18,7 @@ public async virtual Task MessageReceivedAsync(IDialogContext context, IAwaitabl { var message = await result; - await context.PostAsync("Looking into your upcoming flights to see if you check-in on any of those..."); + await context.PostAsync("Looking into your upcoming flights to see if you can check-in on any of those..."); var flightAttachment = GetFlightAttachment(); diff --git a/CSharp/core-ChannelData/README.md b/CSharp/core-ChannelData/README.md index 998aa4f0b9..7b4ef8ef6c 100644 --- a/CSharp/core-ChannelData/README.md +++ b/CSharp/core-ChannelData/README.md @@ -11,11 +11,11 @@ A sample bot sending native metadata to Facebook using ChannelData. The minimum prerequisites to run this sample are: * The latest update of Visual Studio 2015. You can download the community version [here](http://www.visualstudio.com) for free. -* The Bot Framework Emulator. To install the Bot Framework Emulator, download it from [here](https://aka.ms/bf-bc-emulator). Please refer to [this documentation article](https://docs.botframework.com/en-us/csharp/builder/sdkreference/gettingstarted.html#emulator) to know more about the Bot Framework Emulator. +* The Bot Framework Emulator. To install the Bot Framework Emulator, download it from [here](https://emulator.botframework.com/). Please refer to [this documentation article](https://github.com/microsoft/botframework-emulator/wiki/Getting-Started) to know more about the Bot Framework Emulator. * To fully test this sample you must: * Register you bot in [Microsoft Bot Framework Portal](https://dev.botframework.com/bots). Please refer to [this](https://docs.botframework.com/en-us/csharp/builder/sdkreference/gettingstarted.html#registering) for the instructions. Once you complete the registration, update the [Bot's Web.config](Web.config#L9-L11) file with the registered config values (Bot Id, MicrosoftAppId and MicrosoftAppPassword). * Enable the Facebook Messenger Channel. Refer to [this](https://docs.botframework.com/en-us/csharp/builder/sdkreference/gettingstarted.html#channels) for more information on how to configure channels. - * [Publish your bot, for example to Azure](https://docs.botframework.com/en-us/csharp/builder/sdkreference/gettingstarted.html#publishing) or use [Ngrok to interact with your local bot in the cloud](https://docs.botframework.com/en-us/tools/bot-framework-emulator/#using-the-emulator-with-ngrok-to-interact-with-your-bot-in-the-cloud). + * [Publish your bot, for example to Azure](https://docs.botframework.com/en-us/csharp/builder/sdkreference/gettingstarted.html#publishing) or use [Ngrok to interact with your local bot in the cloud](https://blogs.msdn.microsoft.com/jamiedalton/2016/07/29/ms-bot-framework-ngrok/). ### Code Highlights @@ -102,7 +102,7 @@ On the other hand, you will see the following in your Facebook Messenger. To get more information about how to get started in Bot Builder for .NET and ChannelData please review the following resources: +* [Adding Channel Data](https://docs.botframework.com/en-us/core-concepts/channeldata) * [Custom Channel Capabilities](https://docs.botframework.com/en-us/csharp/builder/sdkreference/channels.html) * [Custom Facebook Messages](https://docs.botframework.com/en-us/csharp/builder/sdkreference/channels.html#customfacebookmessages) * [Facebook Messenger - Send API Reference](https://developers.facebook.com/docs/messenger-platform/send-api-reference/airline-checkin-template) -* [Bot Framework Emulator](https://docs.botframework.com/en-us/tools/bot-framework-emulator/#using-the-emulator-with-ngrok-to-interact-with-your-bot-in-the-cloud) diff --git a/CSharp/core-ChannelData/Web.config b/CSharp/core-ChannelData/Web.config index 05b292cffe..f59bd2d5e3 100644 --- a/CSharp/core-ChannelData/Web.config +++ b/CSharp/core-ChannelData/Web.config @@ -53,7 +53,7 @@ - + @@ -63,6 +63,18 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/CSharp/core-ChannelData/packages.config b/CSharp/core-ChannelData/packages.config index c02aff87bb..88cb35634e 100644 --- a/CSharp/core-ChannelData/packages.config +++ b/CSharp/core-ChannelData/packages.config @@ -1,15 +1,15 @@  - + - - - - - - + + + + + + \ No newline at end of file