The type or namespace name 'Bot' does not exist in the namespace 'Microsoft'?

1.9k views Asked by At

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?

2

There are 2 answers

0
sam On

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.

1
Mike Veazie - MSFT On