Specflow test project fails build .NET 5 windows7

Viewed 15

I get this error building my specflow test project

enter image description here

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...

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..

1 Answers

Disable the NU5100 warning, when treating warnings as errors.

it is due to the .NET framework versions policies about location in lib folder.

Related