allure-framework / allure-framework/allure-csharp

Unable to build projects with Allure using .NET Core

Open
#634 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
125
Forks
76
Avg merge
1d 2h
Merged PRs (30d)
18

Description

Doing a "dotnet build" from cmd prompt causes an error.

.nuget\packages\aspectinjector\2.8.1\buildTransitive\netstandard2.0\AspectInjector.targets(102,5): error MSB4803: The task "GetFrameworkSdkPath" is not supported on the .NET Core version of MSBuild. Please use the .NET Framework version of MSBuild.

The work around is to add this to the project:
false

But then again for Allure.NUnit and Allure.Xunit, attribute-based steps (the [AllureStep] attribute), won't work without AspectInjector.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported `dotnet build` failure and inspect the referenced `.nuget\packages\aspectinjector\2.8.1\buildTransitive\netstandard2.0\AspectInjector.targets` entry. Check how Allure.NUnit and Allure.Xunit use the `[AllureStep]` attribute, then verify that a project builds without disabling AspectInjector and that attribute-based steps still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.