Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.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
.net 生成VSTS时出错:类型或命名空间名称';博迪';找不到_.net_Selenium_Build_Azure Devops_Specflow - Fatal编程技术网

.net 生成VSTS时出错:类型或命名空间名称';博迪';找不到

.net 生成VSTS时出错:类型或命名空间名称';博迪';找不到,.net,selenium,build,azure-devops,specflow,.net,Selenium,Build,Azure Devops,Specflow,在我的解决方案中,当我尝试运行构建时,它有一个引用错误,但整个引用都在项目中 错误: solution\directory\directory2\Configuration\XPTO.cs(1,7):错误CS0246:找不到类型或命名空间名称“BoDi”(是否缺少using指令或程序集引用?) solution\directory\directory2\Configuration\XPTO.cs(2,17):错误CS0234:命名空间“Microsoft”中不存在类型或命名空间名称“Visual

在我的解决方案中,当我尝试运行构建时,它有一个引用错误,但整个引用都在项目中

错误:

solution\directory\directory2\Configuration\XPTO.cs(1,7):错误CS0246:找不到类型或命名空间名称“BoDi”(是否缺少using指令或程序集引用?) solution\directory\directory2\Configuration\XPTO.cs(2,17):错误CS0234:命名空间“Microsoft”中不存在类型或命名空间名称“VisualStudio”(是否缺少程序集引用?) solution\directory\directory2\Configuration\XPTO.cs(3,7):错误CS0246:找不到类型或命名空间名称“OpenQA”(是否缺少using指令或程序集引用?) solution\directory\directory2\Configuration\XPTO.cs(4,7):错误CS0246:找不到类型或命名空间名称“OpenQA”(是否缺少using指令或程序集引用?) solution\directory\directory2\Configuration\XPTO.cs(7,7):错误CS0246:找不到类型或命名空间名称“TechTalk”(是否缺少using指令或程序集引用?) solution\directory\directory2\Page Object\XPTO1.cs(2,7):错误CS0246:找不到类型或命名空间名称“OpenQA”(是否缺少using指令或程序集引用?) solution\directory\directory2\Page Object\XPTO1.cs(3,7):错误CS0246:找不到类型或命名空间名称“OpenQA”(是否缺少using指令或程序集引用?) solution\directory\directory2\Page Object\XPTO2.cs(2,7):错误CS0246:找不到类型或命名空间名称“OpenQA”(是否缺少using指令或程序集引用?) solution\directory\directory2\Page Object\XPTO2.cs(3,7):错误CS0246:找不到类型或命名空间名称“OpenQA”(是否缺少using指令或程序集引用?) solution\directory\directory2\Test\XPTO3.cs(2,17):错误CS0234:命名空间“Microsoft”中不存在类型或命名空间名称“VisualStudio”(是否缺少程序集引用?) solution\directory\directory2\Test\XPTO3.cs(3,7):错误CS0246:找不到类型或命名空间名称“OpenQA”(是否缺少using指令或程序集引用?)

项目: VS2017 Selenium.WebDriver和Support 3.13.1 SpecFlow(TechTalk 2.3.2) Microsoft.VisualStudio.TestPlatform。。。1.3.2


有人遇到过这个问题吗?

我开始在同一个版本上工作

在Nuget Restore,advanced中,我在一个目录packages中插入了一个目录来执行包复制

例如: 目录\解决方案目录\软件包

然后在msbuild任务advanced中,我启用了Nuget Restore


然后构建成功了

我开始在同一个构建上工作

在Nuget Restore,advanced中,我在一个目录packages中插入了一个目录来执行包复制

例如: 目录\解决方案目录\软件包

然后在msbuild任务advanced中,我启用了Nuget Restore


然后构建工作

检查解决方案中的每个.csproj文件(针对每个项目)。寻找不同包的HintPath,并确保它们都指向正确的位置

如果解决方案中的某些项目已从其他解决方案中移动或复制,则HintPath可能是错误的(但在您的计算机上可能工作正常)

例如:

<Reference Include="AutoMapper, Version=5.2.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
  <HintPath>..\..\packages\AutoMapper.5.2.0\lib\net45\AutoMapper.dll</HintPath>
  <Private>True</Private>
</Reference>

..\..\packages\AutoMapper.5.2.0\lib\net45\AutoMapper.dll
真的

检查解决方案中的每个.csproj文件(针对每个项目)。寻找不同包的HintPath,并确保它们都指向正确的位置

如果解决方案中的某些项目已从其他解决方案中移动或复制,则HintPath可能是错误的(但在您的计算机上可能工作正常)

例如:

<Reference Include="AutoMapper, Version=5.2.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
  <HintPath>..\..\packages\AutoMapper.5.2.0\lib\net45\AutoMapper.dll</HintPath>
  <Private>True</Private>
</Reference>

..\..\packages\AutoMapper.5.2.0\lib\net45\AutoMapper.dll
真的

我检查了所有HintPath,其中一个指向bin/dlll!!这是救命恩人!正是我的问题!Thx很多。我检查了所有的HintPath,有一个指向bin/dlll!!这是救命恩人!正是我的问题!太多了,泰克斯。干吧,塔克斯。工作吧。