Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net .NET标准2.0不支持Microsoft.Owin.Hosting_Asp.net_.net_Asp.net Core_Owin_.net Standard 2.0 - Fatal编程技术网

Asp.net .NET标准2.0不支持Microsoft.Owin.Hosting

Asp.net .NET标准2.0不支持Microsoft.Owin.Hosting,asp.net,.net,asp.net-core,owin,.net-standard-2.0,Asp.net,.net,Asp.net Core,Owin,.net Standard 2.0,感谢您抽出时间阅读本文。我已经用下面的NuGet软件包在.NET标准2.0中创建了一个控制台应用程序 我已经添加了Program.cs文件 using System; using Microsoft.Owin.Hosting; namespace ClassLibrary1 { class Program { static void Main() { string baseAddress = "http://localh

感谢您抽出时间阅读本文。我已经用下面的NuGet软件包在.NET标准2.0中创建了一个控制台应用程序

我已经添加了Program.cs文件

using System;
using Microsoft.Owin.Hosting;

namespace ClassLibrary1
{
    class Program
    {
        static void Main()
        {
            string baseAddress = "http://localhost:9000/";

            // Start OWIN host 
            using (WebApp.Start<Startup>(url: baseAddress))
            {

            }
        }
    }
}
当我运行应用程序时,我得到一个错误

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Owin.Hosting, Version=2.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
   at ClassLibrary1.Program.Main()
据我所知,.NET标准不支持“Mirosoft.Owin”,是否有其他替代方案?提前感谢你的帮助

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Owin.Hosting, Version=2.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
   at ClassLibrary1.Program.Main()