You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading a test project that uses .NET 5 that has CopyLocalLockFileAssemblies set to false to .NET 6, dotnet test stops working on my machine with an error about not finding Microsoft.TestPlatform.CoreUtilities
Downgrading the target back to .NET 5, or removing the CopyLocalLockFileAssemblies=false tag both get it to work.
C:\MyTests>dotnet test
Determining projects to restore...
Restored C:\MyTests\MyTests.csproj (in 943 ms).
1 of 2 projects are up-to-date for restore.
MyTests -> C:\MyTests\bin\Debug\net6.0\MyTests.dll
Test run for C:\MyTests\bin\Debug\net6.0\MyTests.dll (.NETCoreApp,Version=v6.0)
Microsoft (R) Test Execution Command Line Tool Version 17.2.0 (x64)
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Testhost process exited with error: Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.TestPlatform.CoreUtilities, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'Microsoft.TestPlatform.CoreUtilities, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.VisualStudio.TestPlatform.TestHost.Program.Main(String[] args)
. Please check the diagnostic logs for more information.
Test Run Aborted.
The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
I have Visual Studio 2022 17.2.5 installed , but this reproduces outside of Visual Studio
Running this on a Windows 11 machine
The text was updated successfully, but these errors were encountered:
I guess the behavior for this property changed to false by default in .NET 6. I wasn't aware this is a requirement. Is it mandatory now when using CopyLocalLockFileAssemblies=false?
Describe the bug
When upgrading a test project that uses .NET 5 that has
CopyLocalLockFileAssemblies
set to false to .NET 6,dotnet test
stops working on my machine with an error about not findingMicrosoft.TestPlatform.CoreUtilities
Downgrading the target back to .NET 5, or removing the
CopyLocalLockFileAssemblies=false
tag both get it to work.To Reproduce
dotnet test
Exceptions (if any)
Further technical details
dotnet --info
I have Visual Studio 2022 17.2.5 installed , but this reproduces outside of Visual Studio
Running this on a Windows 11 machine
The text was updated successfully, but these errors were encountered: