Erro在& quot; build.cmd& quot;编译聊天机器人Azure服务中的代码CSC:错误CS5001:程序不包含静态' Mai

编程入门 行业动态 更新时间:2024-10-28 20:27:22
本文介绍了Erro在& quot; build.cmd& quot;编译聊天机器人Azure服务中的代码CSC:错误CS5001:程序不包含静态' Main的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好!

我只是使用QnA Maker配置Azure聊天服务器服务(程序完全通过图形界面,无需更改代码)。 这些只是下面的两个程序,非常简单。

I just configure the Azure chatbot service using QnA Maker (procedure entirely by graphical interface, no need to change code). These are just the two procedures below, is very simple.

docs.microsoft/en-us/azure/cognitive-services/qnamaker/tutorials/create-publish-query-in -portal

docs.microsoft/en-us/azure/cognitive-services/qnamaker/tutorials/create-publish-query-in-portal

然后一切正常,但是我需要在代码中改变一些想法,所以我输入编译区代码(构建选项> 打开在线代码编辑器 ,通过Azure门户网站)我刚刚运行了"build.cmd"命令为"验证",并且程序使用 错误。 现在聊天服务器服务不再有效了。

因此,我在My Azure中排除了所有聊天机器人服务并再次创建了它。 聊天服务已经运行正常。 最后我回到编译代码并重新执行命令构建的选项(没有做任何事先原始代码中的更改)并给出了相同的错误。 我认为这是僵尸程序的新版本中的一个错误(SDK4 + C#) 在编译代码期间。

So I exclude all chat bot service in My Azure and created it all again. The chat service has been up and running fine. Finally I went back to the option to compile the code and re-executed the command build (without making any previous changes in the original code) and gave the same error. I think it's a bug in this new version of the bot (SDK4 + C #)during compile the code.

我不是程序员,所以我想知道是否有人已经看到这个错误或者知道如何解决它。

I am not a programmer so I would like to know if anyone has already seen this error or knows how to solve it please.

执行命令build.cmd后出现以下错误:

Below is the present error after executing the command build.cmd:

Tks !!

Tks!!

欢迎使用App Service Editor控制台 键入"help"以获取可用命令列表,或按"Ctrl + Space"获取帮助。输入"退出"关闭控制台。 \> build.cmd 1个文件被复制。 安装Kudu Sync D:\ local \ AppData \ npm \kudusync - > D:\local\AppData \\\pm \\\ode_modules \ kudusync \ bin \ kudusync + kudusync@0.3.0 在1.906s中更新了1个包 处理ASP.NET核心Web应用程序部署。 恢复在843.99毫秒内完成D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ for .NET Core 版权所有(C)Microsoft Corporation。保留所有权利。 对于D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\适用于入口点的主要方法[D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ " QnABot.csproj" --output" D:\ local \Temp \ ___ deployTemp1254" - 配置发布 网站部署期间发生错误。

Welcome to the App Service Editor console Type 'help' for a list of available commands or press 'Ctrl+Space' for assist. Type 'exit' to close a console. \> build.cmd 1 file(s) copied. Installing Kudu Sync D:\local\AppData\npm\kudusync -> D:\local\AppData\npm\node_modules\kudusync\bin\kudusync + kudusync@0.3.0 updated 1 package in 1.906s Handling ASP.NET Core Web Application deployment. Restore completed in 843.99 ms for D:\home\site\wwwroot\QnABot.csproj. Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. Restore completed in 340.71 ms for D:\home\site\wwwroot\QnABot.csproj. CSC : error CS5001: Program does not contain a static 'Main' method suitable for an entry point [D:\home\site\wwwroot\QnABot.csproj] Failed exitCode=1, command=dotnet publish "QnABot.csproj" --output "D:\local\Temp\___deployTemp1254" --configuration Release An error has occurred during web site deployment.

推荐答案

Hello Bruno,

Hello Bruno,

是的,我们有另一个用户报告了这个 issue 。我们目前正在与我们的产品组进行核实,以解决此问题。我们会在收到更新后立即更新问题。

Yes, we have another user who has reported this issue. We are currently checking with our product group to get this addressed. We will update the issue with a fix as soon as we receive an update.

-Rohit

更多推荐

Erro在& quot; build.cmd& quot;编译聊天机器人Azure服务中的代码CSC:错误CS5001:程序不包

本文发布于:2023-11-15 12:42:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1594541.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:静态   机器人   不包含   错误   代码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!