在没有改变的情况下,我去配置持续集成并下载了zip文件.
当我尝试在Visual Studio 2015中打开该SLN文件时,打开@R_301_6954@案时出现以下错误:
“输出”窗口在“@R_301_6954@案”下拉列表中显示:
Some of the propertIEs associated with the solution Could not be read.
这是@R_301_6954@案资源管理器的屏幕截图:
然后我按F5测试它…
它应该运行吗?我应该做点什么吗?
解决方法 编辑:本地调试Azure功能应用程序(这是由Bot服务创建的应用程序类型)目前有点复杂.该过程也在Azure SDK 2.9.6和3.0之间进行更改. VS2017的工具也正在进行一些更改: .NET Web Development and Tools Blog
Update 3-10-2017: This prevIEw copy of Azure Functions Tools does not
work with the newly released Azure SDK 3.0. If you want to continue
using these tools on Visual Studio 2015,you will need to remain on
the 2.9.6 SDK. Additionally,there are no Azure Function Tools
currently available for Visual Studio 2017. We are actively working
on the 2017 tools,and will provIDe an update in the next few weeks
regarding our plans and strategy.
这篇由Benjamin Perkins撰写的博文有一个很好的演练:https://blogs.msdn.microsoft.com/benjaminperkins/2016/12/01/how-i-tested-my-chatbot-that-i-created-using-the-bot-services-on-azure/
还有这个:Debugging Bots Built using Azure Bot Service on Windows
The C# environment in Azure Bot Service has more in common with
Node.Js than a typical C# app because it requires a runtime host,much
like the Node engine. In Azure,the runtime is part of the hosting
environment in the cloud,but you’ll need to replicate that
environment locally on your desktop.
首先,您需要设置您的环境.你需要:
A local copy of your Azure Bot Service code (see Setting up Continuous Integration ) The Bot Framework Emulator The Azure Functions Cli DotNet Cliand if you want breakpoint deBUGging in Visual Studio 15:
Visual Studio 15—the Community Edition will work fine The Command Task Runner Visual Studio ExtensionAfter installing the tools above,you have everything you need to
deBUG your C# bot locally.Open a command prompt and navigate to the folder where your
project.Json file lives in your repository. Issue the command dotnet
restore to restore the varIoUs packages referenced in your bot.Note: Visual Studio 2017 RC is changing how it handles dependencIEs
from a project.Json to a .csproj model when loading in Visual Studio.
As a result,you will need to download the csproj here:
07003 and save the .csproj into your
/repo/messages folder before running the dotnet restore command.
请注意这些也是要求:
Azure 2.9.6 .NET SDK
Visual Studio Tools for Azure Functions
这就是:https://blogs.msdn.microsoft.com/appserviceteam/2017/03/16/publishing-a-net-class-library-as-a-function-app/您将找到如何从visual studio发布功能应用程序的说明,以及如何在Visual Studio中下载和执行现有的功能应用程序.
Install the Azure Functions Cli from npm.
If you’ve installed the Visual Studio Tools for Azure Functions,just add func.exe to your path from %USERPROfile%\AppData\Local\Azure.Functions.Cli\1.0.0-beta.93 (or the latest version on your machine).Go to the Kudu console for your Function App in Function App Settings -> Kudu. Navigate to site and click on the download icon to the left of wwwroot (click on the animated gif below). Or,from an authenticated session,go to 07007.
Unzip the file wwwroot.zip on your local machine. From that directory,run the following:
func azure loginfunc azure functionapp Listfunc azure functionapp fetch-app-settings [name]
总结This will create a local file called appsettings.Json. These settings
are only used locally by the Functions Cli. Since this file contains
secrets,be sure not to check this file in to source control! (The
Azure Functions Cli adds appsettings.Json to .gitignore for you.)copy your downloaded files to the web project folder (including appsettings.Json). Include the script files and function.Json in the project. F5 should Now work and successfully attach a deBUGger.
以上是内存溢出为你收集整理的c# – 下载在门户网站上创建的僵尸程序会导致无效/不可执行的解决方案全部内容,希望文章能够帮你解决c# – 下载在门户网站上创建的僵尸程序会导致无效/不可执行的解决方案所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)