小编Ang*_*ieM的帖子

Visual Studio 2017脱机安装仍然需要Internet连接

我使用以下命令创建了一个脱机布局文件夹:

vs_enterprise.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US
Run Code Online (Sandbox Code Playgroud)

然后我将整个结果vs2017layout文件夹(~2.57GB)复制到另一台没有Internet访问权限的计算机上并运行以下命令:

vs_enterprise.exe --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US
Run Code Online (Sandbox Code Playgroud)

但是,安装程序仍然需要Internet连接.请告知我缺少的东西. 在此输入图像描述

先感谢您.

installation offline visual-studio-2017

7
推荐指数
1
解决办法
4917
查看次数

TFS 2013 Build 强制 MSBuild 使用 Visual Studio 2015

我在使用新的 VS 2015 字符串插值语法时遇到 TFS 2013 构建错误(意外字符“$”)。我已经像这样修改了构建过程模板的“Run MSBuild for Project”任务,但它仍然没有帮助。

  • CommandLineArguments: String.Format("/p:SkipInvalidConfigurations=true {0} /tv:14", MSBuildArguments)
  • 工具路径:“C:\Program Files (x86)\MSBuild\14.0\Bin”
  • 工具版本:“14.0”。

在构建定义中,我还指定了“MSBuild Arguments”= /p:VisualStudioVersion=14.0。

运行 MSBuild 任务属性

构建定义

msbuild tfs c#-6.0 visual-studio-2015

5
推荐指数
1
解决办法
935
查看次数

保护Web API /令牌端点

我有一个Web API项目,遵循此处概述的基本帐户身份验证过程:http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api.我的问题是我应该用SSL(或其他东西)保护/ Token enpoint吗?否则,对"myURL/Token"的API调用只是通过明文发送,其用户名和密码在其正文中?

我在Web API SSL上阅读了这篇文章:http://www.asp.net/web-api/overview/security/working-with-ssl-in-web-api但我不知道我应该把它放在哪里[RequireHttps]属性,因为/ Token enpoint实际上不是控制器动作.

感谢您提供的任何指导!

api ssl access-token web asp.net-web-api

3
推荐指数
1
解决办法
1549
查看次数

如何交织两个字符串或数组,可能与String.Join()

我有以下字符串数组:

var myArray1 = new string[] {"A", "B", "C"};
var myArray2 = new string[] {"t1", "t2"};
Run Code Online (Sandbox Code Playgroud)

我希望能够生成一个如下所示的最终字符串:

var myFinalString = "t1.A, t2.A, t1.B, t2.B, t1.C, t2.C";
Run Code Online (Sandbox Code Playgroud)

我知道我可以迭代遍历数组的每个元素并手动构建字符串.但是,我想知道是否有更好的方法.我试图找出如何使String.Join()方法工作,但不能:-(.

c# arrays string cartesian-product

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