<bdo id='taitE'></bdo><ul id='taitE'></ul>
    <i id='taitE'><tr id='taitE'><dt id='taitE'><q id='taitE'><span id='taitE'><b id='taitE'><form id='taitE'><ins id='taitE'></ins><ul id='taitE'></ul><sub id='taitE'></sub></form><legend id='taitE'></legend><bdo id='taitE'><pre id='taitE'><center id='taitE'></center></pre></bdo></b><th id='taitE'></th></span></q></dt></tr></i><div id='taitE'><tfoot id='taitE'></tfoot><dl id='taitE'><fieldset id='taitE'></fieldset></dl></div>
  1. <tfoot id='taitE'></tfoot>

      <legend id='taitE'><style id='taitE'><dir id='taitE'><q id='taitE'></q></dir></style></legend>
    1. <small id='taitE'></small><noframes id='taitE'>

      如何在 HTTPS 上的 Visual Studio 中本地运行 Azure Function?

      How to run Azure Function locally within Visual Studio on HTTPS?(如何在 HTTPS 上的 Visual Studio 中本地运行 Azure Function?)
        <tbody id='gnNKw'></tbody>
      • <bdo id='gnNKw'></bdo><ul id='gnNKw'></ul>

        <legend id='gnNKw'><style id='gnNKw'><dir id='gnNKw'><q id='gnNKw'></q></dir></style></legend>

        <small id='gnNKw'></small><noframes id='gnNKw'>

      • <tfoot id='gnNKw'></tfoot>
      • <i id='gnNKw'><tr id='gnNKw'><dt id='gnNKw'><q id='gnNKw'><span id='gnNKw'><b id='gnNKw'><form id='gnNKw'><ins id='gnNKw'></ins><ul id='gnNKw'></ul><sub id='gnNKw'></sub></form><legend id='gnNKw'></legend><bdo id='gnNKw'><pre id='gnNKw'><center id='gnNKw'></center></pre></bdo></b><th id='gnNKw'></th></span></q></dt></tr></i><div id='gnNKw'><tfoot id='gnNKw'></tfoot><dl id='gnNKw'><fieldset id='gnNKw'></fieldset></dl></div>

              1. 本文介绍了如何在 HTTPS 上的 Visual Studio 中本地运行 Azure Function?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个在 Visual Studio 中开发的 C# 库 Azure Function (v1 .Net Framework 4.6.1).

                I have a C# library Azure Function (v1 .Net Framework 4.6.1) developed in Visual Studio.

                我想在 HTTPS 上的 Visual Studio 中本地运行它.我怎样才能做到这一点?

                I want to run this locally within Visual Studio on HTTPS. How can I achieve this?

                我已将我的应用程序参数设置如下:

                I have set my application arguments as follows:

                host start --port 7112 --pause-on-error --useHttps --cors * 
                

                添加 --usehttps 会导致应用程序无法正常启动.

                Adding --usehttps results in the application not starting correctly.

                当应用程序启动时询问我是否要安装证书,我点击是.

                When the application starts it asks if I want to install a certificate, I click yes.

                然后控制台窗口显示这个并且应用程序似乎没有正确加载 - 最后的消息只是不断重复.

                Then console window shows this and the application doesnt seem to load correctly - the final message just keeps repeating.

                Listening on https://localhost:7112/
                Hit CTRL-C to exit...
                [10/07/2018 15:52:58] Reading host configuration file 'C:Application.ServerinDebug
                et461host.json'
                [10/07/2018 15:52:58] Host configuration file read:
                [10/07/2018 15:52:58] {}
                The host is taking longer than expected to start.
                

                (除此之外;我正在尝试这样做,因为我认为它可能有助于 这个).

                (Aside; I am trying to do this because I think it might help with this).

                推荐答案

                请尝试在powershell中使用以下命令创建测试证书

                Please try creating a test cert using following commands in powershell

                $cert = New-SelfSignedCertificate -Subject localhost -DnsName localhost -FriendlyName "Functions Development" -KeyUsage DigitalSignature -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.1")
                
                Export-PfxCertificate -Cert $cert -FilePath certificate.pfx -Password (ConvertTo-SecureString -String <password> -Force -AsPlainText)
                

                这是启动功能主机的命令

                and here is the command to start functions host

                func host start --port 7112 --useHttps --cors * --cert certificate.pfx --password <password>
                

                这篇关于如何在 HTTPS 上的 Visual Studio 中本地运行 Azure Function?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Adding and removing users from Active Directory groups in .NET(在 .NET 中的 Active Directory 组中添加和删除用户)
                set equality in linq(在 linq 中设置相等)
                HashSet conversion to List(HashSet 转换为 List)
                How to set timeout for webBrowser navigate event(如何为 webBrowser 导航事件设置超时)
                Test whether two IEnumerablelt;Tgt; have the same values with the same frequencies(测试两个IEnumerablelt;Tgt;具有相同频率的相同值)
                How do you determine if two HashSets are equal (by value, not by reference)?(您如何确定两个 HashSet 是否相等(按值,而不是按引用)?)

                <small id='iv3Ju'></small><noframes id='iv3Ju'>

                  <bdo id='iv3Ju'></bdo><ul id='iv3Ju'></ul>

                    <legend id='iv3Ju'><style id='iv3Ju'><dir id='iv3Ju'><q id='iv3Ju'></q></dir></style></legend>
                      <tbody id='iv3Ju'></tbody>
                    <i id='iv3Ju'><tr id='iv3Ju'><dt id='iv3Ju'><q id='iv3Ju'><span id='iv3Ju'><b id='iv3Ju'><form id='iv3Ju'><ins id='iv3Ju'></ins><ul id='iv3Ju'></ul><sub id='iv3Ju'></sub></form><legend id='iv3Ju'></legend><bdo id='iv3Ju'><pre id='iv3Ju'><center id='iv3Ju'></center></pre></bdo></b><th id='iv3Ju'></th></span></q></dt></tr></i><div id='iv3Ju'><tfoot id='iv3Ju'></tfoot><dl id='iv3Ju'><fieldset id='iv3Ju'></fieldset></dl></div>
                          <tfoot id='iv3Ju'></tfoot>