Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/261.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
TFS构建-C#7.0 System.ValueType_C#_Tfs_Azure Devops - Fatal编程技术网

TFS构建-C#7.0 System.ValueType

TFS构建-C#7.0 System.ValueType,c#,tfs,azure-devops,C#,Tfs,Azure Devops,我尝试在VisualStudio.com上建立一个持续集成构建来构建我的项目。由于我升级到.net 4.6.2并使用System.ValueType,生成失败: MinimalMonitoringClient\MMCThinNetwork\Connection.cs(91,23):错误 CS1519:类、结构或接口成员中的令牌“(”无效 声明Connection.cs(91,23):错误CS1519:中的令牌“(”无效 类、结构或接口成员声明 [d:\a\1\s\MinimalMonitorin

我尝试在VisualStudio.com上建立一个持续集成构建来构建我的项目。由于我升级到.net 4.6.2并使用System.ValueType,生成失败:

MinimalMonitoringClient\MMCThinNetwork\Connection.cs(91,23):错误 CS1519:类、结构或接口成员中的令牌“(”无效 声明Connection.cs(91,23):错误CS1519:中的令牌“(”无效 类、结构或接口成员声明 [d:\a\1\s\MinimalMonitoringClient\MMCThinNetwork\MMCThinNetwork.csproj] MinimalMonitoringClient\MMCThinNetwork\Connection.cs(91,47):错误 CS1044:在for、use、fixed或for中不能使用多个类型 声明语句Connection.cs(91,47):错误CS1044:无法使用 for、using、fixed或declaration语句中的多个类型 [d:\a\1\s\MinimalMonitoringClient\MMCThinNetwork\MMCThinNetwork.csproj] MinimalMonitoringClient\MMCThinNetwork\Connection.cs(91,64):错误 CS1002:;预期

  • 它在我本地的计算机上编译
  • 已安装NuGet软件包“System.ValueType”
  • TFS上没有包文件夹
  • “Restore NuGet Packages”任务包含在构建过程中
  • NuGet还原生成步骤成功完成
2017-04-22T14:42:13.2402898Z###[部分]开始:NuGet恢复 **/*.sln 2017-04-22T14:42:13.2512895Z==============================================================================================================================================================================2017-04-22T14:42:13.2512895Z任务:NuGet安装程序 2017-04-22T14:42:13.2512895Z说明:安装或恢复 缺少NuGet软件包2017-04-22T14:42:13.2512895Z版本: 0.2.31 2017-04-22T14:42:13.2512895Z作者:微软公司2017-04-22T14:42:13.2512895Z帮助: 2017-04-22T14:42:13.2512895Z =====================================================================================================================2017-04-22T14:42:14.3517087Z[命令]C:\Windows\system32\chcp.com 65001 2017-04-22T14:42:14.3517087Z激活代码页:65001 2017-04-22T14:42:14.4246880Z检测到NuGet版本3.3.0.212/3.3.0 2017-04-22T14:42:14.4276880Z系统VSS连接是否存在 2017-04-22T14:42:14.4286876Z连接到您的主机中托管的NuGet提要 此生成代理上的团队服务帐户/TFS项目集合,编辑 选择更高版本的nuget或指定 包含要使用的包源的NuGet.config的路径。 2017-04-22T14:42:14.4316868Z [命令]d:\a_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.31\node_modules\nuget task common\nuget\3.3.0\nuget.exe 恢复-非交互 d:\a\1\s\MinimalMonitoringClient\MinimalMonitoringClient.sln 2017-04-22T14:42:15.2210188Z MSBuild自动检测:使用MSBuild 来自“C:\Program Files(x86)\MSBuild\14.0\bin”的版本“14.0”。 2017-04-22T14:42:15.4566895Z使用的提要:2017-04-22T14:42:15.4566895Z C:\Users\buildguest\AppData\Local\NuGet\Cache 2017-04-22T14:42:15.4576898Z 2017-04-22T14:42:15.4576898Z 2017-04-22T14:42:15.4786896Z NuGet package System.ValueTuple.4.3.0.2017-04-22T14:42:15.4896877Z 正在恢复NuGet包Newtonsoft.Json.10.0.2。 2017-04-22T14:42:16.5110192Z添加包“System.ValueTuple.4.3.0” 到文件夹“d:\a\1\s\MinimalMonitoringClient\packages” 2017-04-22T14:42:16.5330192Z添加了“System.ValueTuple.4.3.0”包 到文件夹“d:\a\1\s\MinimalMonitoringClient\packages” 2017-04-22T14:42:16.7550436Z添加包“Newtonsoft.Json.10.0.2” 到文件夹“d:\a\1\s\MinimalMonitoringClient\packages” 2017-04-22T14:42:16.7780484Z将包“Newtonsoft.Json.10.0.2”添加到 文件夹“d:\a\1\s\MinimalMonitoringClient\packages” 2017-04-22T14:42:16.80801Z###[部分]整理:NuGet恢复 **/*sln先生

  • 内置解决方案VS版本设置为:2017
  • 干净:是的
  • 还原NuGet包:True

提前感谢

您需要使用托管的VS2017构建代理来使用VS2017编译内容


msbuild版本14,它没有使用Visual Studio 2017编译器,而是使用2015版本。即使使用2015设置,我也没有成功编译。同样的异常。