allure-framework / allure-framework/allure-csharp
Unable to build projects with Allure using .NET Core
- 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
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