Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

.NET Core

Nick Chursin edited this page Jan 17, 2022 · 1 revision

dotnet core

install latest versions of:

  • Microsoft.NET.Test.Sdk
  • NUnit3TestAdapter
  • NUnit
  • NUnit.Allure
  • Allure.Commons

update csproj - copy allureConfig.json to output dir

  <ItemGroup> 
    <None Update="allureConfig.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
  </ItemGroup>
Complete csproj example
<?xml version="1.0" encoding="UTF-8"?>
<Project Sdk="Microsoft.NET.Sdk">
   <PropertyGroup>
      <TargetFramework>netcoreapp3.0</TargetFramework>
   </PropertyGroup>
   <ItemGroup>
      <PackageReference Include="Allure.Commons" Version="2.4.2.4" />
      <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
      <PackageReference Include="NUnit" Version="3.12.0" />
      <PackageReference Include="NUnit.Allure" Version="1.0.6.1" />
      <PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
   </ItemGroup>
   <ItemGroup>
      <None Update="allureConfig.json">
         <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      </None>
   </ItemGroup>
</Project>
Clone this wiki locally