-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSTest@2: Unable to test .NET 6, vstest.console not found #15499
Comments
I think I have the same issue but my error is slightly different as I have a custom image with only VS 2022 build tools on it. I think we just need to wait for 2.195.0 to be published.
|
As a workaround for the delayed publish I added 2019 build tools to my custom image. Not ideal, but it unblocked us. |
Typical timing, but the issue looks to be resolved today |
@MatthewSteeples wasn't resolved. Version of the image is 20211109.2 but version of the task is still |
Interesting... Not sure what's different about our configurations then but our VSTest task now runs to completion (it used to give the same error) |
Have the same issue. windows-2022. |
We're also trying to migrate our pipeline for the Microsoft Store to VS2022, and currently waiting for the VSTest@2 update that has been merged to rollout (can't run any tests otherwise, and we'd like not to also install the VS2019 tools to work around this). Is there an ETA for when the new version will be rolled out, and also how will the fix be pushed to DevOps? Thanks! 😄 |
I have heard from peers with past experience that it can take over 2 months for a merged change to reach us users and it takes 1 hour for me to make a new build image, so I applied the workaround 🤣. Maybe @phanikmmsft, @ShreyasRmsft, @v-pkoneti, @nadesu, or @v-vnomula could provide some insight or set some expectations on the publish date for us. |
With 2.195.0 task version, it's resolved. Thanks! |
Our builds are still getting task version 2.170.1 and the task fails if I try to specify 2.195.0 . @ejszi , how did you get the new version of the task to run? |
I'm a bit confused about this as well, I tried again the other day and I still got the previous version, which failed. |
I didn't do anything. The vstest task version just changed:
But now, I have other problem:
Obviously, there aren't any netframework x86 dll in my test project. |
I just kicked a new pipeline run again and we're still getting |
I am seeing the same error as of several days ago with .Net Framework projects - VSTest just stopped working. My builds were updated a while ago (on MS insistence) to windows-latest so I assume they just ticked over to being windows-2022 [I can confirm they ARE showing now as Windows Server 2022]. This is pretty critical stuff. Our deployment pipeline just collapsed. |
I rectified my issue by removing I can't find a newer version listed in the docs yet but I can only assume there is a new "latest" and removing this just uses that. |
I just had this issue show up on VsTest version 2.198.0. So a more recent VsTest version doesn't seem to solve it. I just migrated a testing project to .NET 6 and changed the pipeline to use Windows 2022 to fix not having .NET 6 available. |
I was able to resolve this by changing the |
I have the same issue as @Sergio0694. We are using Azure DevOps Server (On Premise) with the latest version. But it still comes with Unfortunately, there is no official release date announced for the next version of Azure DevOps Server. Right now this blocks us migrating to .NET 6 / VS 2022. |
@omghb if it helps, we managed to switch to VS2022 a few months ago using the same workaround @aarondandy suggested: manually also including the VS2019 tools in the VM image used by the pipeline. Not idea, but at least it let us upgrade 😄 |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: VsTestV2
Environment
Azure Pipelines
Agent - Hosted: vmImage: 'windows-2022'
Issue Description
I want to upgrade my .NET 5 solution to .NET 6. After every thing works local (VS 2022 Enterprise) I tried to run our Azure Pipeline which builds, tests and publishes the application. After switching the host from "windows-latest" to "windows-2022" the solution could be build with the pipeline, but the tests could not be executed:
... unable to find vstest.console from a visual studio installation ...
I just found a commit "VsTest task changes to support 2022", but it seems, that this update is no available in the pipelines yet?
Task logs
The text was updated successfully, but these errors were encountered: