Closed jjonescz closed 3 months ago
Hi @jjonescz,
Would it be possible for you to let me know the version of MSTest linked to that SDK template?
I got MSTest.Sdk/3.3.1 from the SDK template. When manually updated to 3.4.1, the build first failed (probably unrelated issue) with
C:\Program Files\dotnet\sdk\9.0.100-preview.5.24307.3\NuGet.targets(170,5): error : Cannot create a file when that file already exists
then on re-run it succeeded.
Note that this was discovered in arcade update in Roslyn which bumps .NET SDK to 9 Preview 5 (https://github.com/dotnet/roslyn/pull/73656) - there is a test which tries every template with dotnet new
and then building it. The Playwright template started failing there.
I will try to understand what's the process for backporting fixes in previous previews of .NET 9
I mean, I don't need this backported, I can just disable the test for now. If it will work in some future .NET version, that's fine.
I have just tested with 9.0.100-preview.7.24323.5
and I confirm the issue is fixed.
Fails with:
I first thought this is related to https://github.com/dotnet/test-templates/pull/408 but the usings removed in that PR are present in my generated csproj. Note that the template works in .NET 8. cc @Evangelink