Asp.net .NET标准2.0不支持Microsoft.Owin.Hosting
感谢您抽出时间阅读本文。我已经用下面的NuGet软件包在.NET标准2.0中创建了一个控制台应用程序 我已经添加了Program.cs文件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
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()