我正在尝试设置一个自托管的 OWin 应用程序(使用 VS2012) - 我认为它很接近,因为我可以从包含 .csproj 的目录运行 OwinHost.exe 并且应用程序从 localhost:5000 正确地提供服务。我创建了一个默认的 nuspec 文件并添加了以下内容
<files>
<file src="bin\*.dll" target="bin" />
<file src="views\home\home.html" target="content" />
<file src="web.config" target="content" />
</files>
在 AssemblyInfo.cs
[assembly: OwinStartup(typeof(TestA.Startup))]
当我安装软件包( nuget install mypackage )时,出现以下错误...
从默认端口开始:5000...
Error: System.ArgumentException
No conversion available between
System.Func`2[System.Collections.Generic.IDictionary`2[System.String,System.Object],
System.Threading.Tasks.Task] and Microsoft.Owin.OwinMiddleware.
Parameter name: signature
如果您想了解更多信息,请告诉我
干杯!