Okay, so this problem is rather complicated, but I will try to make it as simple as possible.
So, I have this bot service created on the Microsoft Azure platform. It is connected to BitBucket with continuous integration. Then I tried to follow the instructions here to be able to debug the bot locally using Visual Studio. I downloaded and installed all the necessary tools and pulled the BitBucket project into the local repository. However, when I tried to run "dotnet restore" in the message folder, I received this error message:
C: \ ... \ messages \ project.json (1,1): error MSB4025: project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
This project.json file was automatically created by Azure; why should this be invalid? The content is as follows:
{
"frameworks": {
"net46":{
"dependencies": {
"Microsoft.Bot.Builder.Azure": "3.1"
}
}
}
}
Run codeI also tried the same with Visual Studio 2017, this time including the messages.csproj file in the message folder. And this time, recovery in dotnet says that I need to specify the project / solution file, because there are several in the folder. I do not know if this is necessarily a problem, but it is not mentioned at all in the official guide, so this is at least a little suspicious. In any case, specifying project.json produces the same error, indicating that message.csproj seems to work correctly and outputs this:
NuGet Config files used:
C:\Users\Connor.Johnson\AppData\Roaming\NuGet\NuGet.Config
C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config
Feeds used:
https://api.nuget.org/v3/index.json
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
Run codedebughost.cmd. project.lock.json zip , Azure ( gitignore), debughost . . , debughost.cmd .
Naw, , Visual Studio. ., bot.sln, :
. . .
, :
, , .
... , , Visual Studio, debughost.cmd, commands.json readme.md. , . Azure Functions func. .
, , -, , . , Bot VS2015, VS2017, , Azure (.. Git) BitBucket. Team Explorer Visual Studio. ! , , , - . .