小编use*_*430的帖子

OWIN中间件可以使用http会话吗?

我有一些代码,我正在为ASP.NET和SignalR复制,我决定将其重写为OWIN中间件,以消除这种重复.

一旦我运行它,我注意到它HttpContext.Current.Session是null,我没有在IOwinContext我的中间件上看到任何会话对象.

是否可以从OWIN访问http会话?

c# asp.net session httpsession owin

20
推荐指数
2
解决办法
1万
查看次数

nuget 命令在 azure devops 中 IncludeReferencedProjects

在Azure devops中,我想发出一个传递选项的nuget pack命令IncludeReferencedProjects。我的存储库位于 TFVC 中,所以我不相信我可以使用 azure-pipelines.yml。我相信我必须通过视觉设计师来做到这一点。我没有看到使用 pack 命令类型将附加参数传递给 nuget 的选项。这让我觉得我必须使用 nuget 的自定义命令类型。当我使用自定义命令类型时,我可以指定 -IncludeReferencedProjects 但我似乎无法指定 **\*.csproj 作为要打包的项目。如果我这样做,命令将失败并显示:

[command]C:\hostedtoolcache\windows\NuGet\4.1.0\x64\nuget.exe pack **\*.csproj -IncludeReferencedProjects -Symbols -Verbosity Detailed -NonInteractive
System.IO.IOException: The filename, directory name, or volume label syntax is incorrect.
Run Code Online (Sandbox Code Playgroud)

如何IncludeReferencedProjects使用可视化设计器将所有 csproj 输出与该标志打包?这是我在设计师中拥有的图片:

在此输入图像描述

azure nuget azure-devops

6
推荐指数
1
解决办法
2632
查看次数

标签 统计

asp.net ×1

azure ×1

azure-devops ×1

c# ×1

httpsession ×1

nuget ×1

owin ×1

session ×1