3

Are other people having as much trouble with the Bot framework as I am?

I'm just trying to follow the steps in Debug an Azure Bot Service bot so that I can edit and run my code locally and then push it up to the cloud. After a long struggle, I run the 'debughost.cmd' file and I get told that it's not able to resolve 'Bot'!

the exact error is

D:\projects\PROJECT\messages\EchoDialog.csx(3,17): error CS0234: The type or namespace name 'Bot' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

D:\projects\HelpfulCoa\messages\EchoDialog.csx(4,17): error CS0234: The type or namespace name 'Bot' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

run.csx(9,17): error CS0234: The type or namespace name 'Bot' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

run.csx(10,17): error CS0234: The type or namespace name 'Bot' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

The code is just the Echo sample, and I'm doing my best to just follow the myriad of fragile steps in the docs.

Any else run into this? Is there a solution?

Community
  • 1
  • 1
PESMITH_MSFT
  • 350
  • 1
  • 9
  • The solution, apparently, was keep on diking with NuGet and the services and ding builds, and asking to update stuff. Eventually, whatever was wrong is magically fixed. – PESMITH_MSFT Aug 01 '17 at 04:11
  • 1
    Nope, I was wrong. The solution is to abandon the Azure bot builder with functions, and instead use the .NET version (one is hosted as "functions" and the other is hosted as an ordinary ASP.NET website) – PESMITH_MSFT Aug 08 '17 at 04:12

2 Answers2

0

This is a known issue with the Function Bot service.

https://github.com/Azure/azure-functions-host/issues/992

azure functions with nuget packages that have different versions of the same dependency

  • I literally downloaded it from Microsoft and put in Microsoft Visual Studio and the first thing i read from above is, "This is a known limitation and, with the current design, not something that can be easily addressed." My God what is going on! – Lysoll Oct 12 '18 at 20:19
0

You need to change the .net framework version to >=4.6. This error comes when the .net framework is 4.5. Microsoft.Bot.Builder version 3.8.0 works with it.

sam
  • 203
  • 3
  • 10