简体   繁体   English

Specflow 测试项目未能构建 .NET 5 windows7

[英]Specflow test project fails build .NET 5 windows7

I get this error building my specflow test project我在构建我的 specflow 测试项目时收到此错误

在此处输入图像描述

I cannot figure out why I get these compile bugs.. I am quite sure it has to do with use .NET 5, don't have a lib folder, where the libraries/nugets are stored...我不知道为什么会出现这些编译错误。我很确定这与使用 .NET 5 有关,没有存储库/nuget 的 lib 文件夹...

my project looks like this:我的项目如下所示:

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
  <TargetFramework>net5.0-windows7.0</TargetFramework>
  <Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
  <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
  <PackageReference Include="SpecFlow.Plus.LivingDocPlugin" Version="3.9.57" />
  <PackageReference Include="SpecFlow.MsTest" Version="3.9.74" />
  <PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
  <PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
  <PackageReference Include="FluentAssertions" Version="6.7.0" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
    <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
    <OutputPath>..\Bin\Debug</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
      <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
    <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
    <OutputPath>..\Bin\Release</OutputPath>
</PropertyGroup>

<ItemGroup>
  <Folder Include="Drivers\" />
  <Folder Include="Hooks\" />
</ItemGroup>

<ItemGroup>
 <ProjectReference Include="..\MagVenture.Utilities.UI\MagVenture.Utilities.UI.csproj" />
</ItemGroup>

I cannot figure it out... - there is a twirl somewhere that I didn't see..我无法弄清楚...... - 在我没有看到的地方有一个旋转......

Disable the NU5100 warning, when treating warnings as errors.将警告视为错误时禁用 NU5100 警告。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 构建工具无法识别“net5.0-windows” - Visual Studio Build Tools fails to recognize “net5.0-windows” VS2019 测试资源管理器未使用 specflow+runner 为 netcoreapp3.1 项目运行测试 - VS2019 Test Explorer not running tests for netcoreapp3.1 project using specflow+runner 测试资源管理器中的 SpecFlow 测试名称限制 - SpecFlow Test Name Limit in Test Explorer 在 .NET Core 5 的 VS 2019 NUIt 测试项目中使用(原始)Sqlite - Using (raw) Sqlite with VS 2019 NUNit Test project for .NET Core 5 如何将 Windows.Automation 程序集添加到 my.Net 5.0 项目? - How to add Windows.Automation assembly to my .Net 5.0 project? 使用 Windows 窗体和 .NET Framework 在 Visual Studio 中创建项目 - Creating a project in Visual Studio with Windows Forms and the .NET Framework 在 Visual Studio 2019 中使用 v141 平台工具集构建 C++/CX 项目失败 - Build fails for C++/CX project with v141 platform toolset in Visual Studio 2019 MSBuild 传递 ProjectReference 的内容未复制到单元测试项目的构建输出 - MSBuild transitive ProjectReference's content not copied to build output of unit test project 在 VS2019 .NET 4.8 中为 C# 项目构建安装程序失败 - Building an installer for a C# project in VS2019 .NET 4.8 fails 为什么 web.config 是在发布时创建的,而不是在 Asp.Net Core API 中构建项目时创建的? - Why is web.config getting created on publish not on build the project in Asp.Net Core API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM