Paket icon indicating copy to clipboard operation
Paket copied to clipboard

xunit.v3 error MSB4057

Open alexey-tyulkin opened this issue 11 months ago • 1 comments

Paket produces an error in the xunit.v3 project.. Script to reproduce


# create xunit3 project
dotnet new install xunit.v3.templates
dotnet new xunit3
dotnet build
# Build succeeded

# install paket
dotnet new tool-manifest
dotnet tool install paket
dotnet tool restore
# Restore was successful.

dotnet paket convert-from-nuget
dotnet paket install
dotnet build

#Restore complete (0.9s)
#  .... failed with 1 error(s) (0.3s)
#    ....\.nuget\packages\xunit.v3.core\1.1.0\buildTransitive\xunit.v3.core.targets(30,70): error MSB4057: The target  "_IncludeGenerateAutoRegisteredExtensionsIntoCompilation" does not exist in the project.
# Build failed with 1 error(s) in 1.6s

alexey-tyulkin avatar Feb 13 '25 09:02 alexey-tyulkin

Note: this is linked to https://github.com/microsoft/testfx/issues/5041 which will be fixed in Microsoft.Testing.Platform 1.6.1

Youssef1313 avatar Feb 17 '25 12:02 Youssef1313