-
Notifications
You must be signed in to change notification settings - Fork 255
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
"Adding the references and satellite assemblies to the deployment items list" doesn't copy all references #3679
Comments
I've worked around this by adding this to my test case: |
Hi @decriptor, I will investigate the issue (most likely next week). |
@decriptor is moving to the new platform (MSTest runner - what you called |
@Evangelink I think so. Is the future {AssemblyName}.exe and vstest.console.exe will be deprecated? Our current situation is that we moved as many projects as we could to sdk projects and then netstandard2.0 as much as possible. We are slowly trying to migration from net472 to net8.0 (or whatever is current when we get there). Also, we are trying to upgrade from Azure DevOps 2020 server to at least Azure DevOps 2022 server. |
This would be an ideal but this is for sure going to take years. The new platform (MSTest runner) doesn't require SDK style project (when you have it, it's easier as you can rely on MSTest.Sdk that greatly simplifies your project). Would it be possible for you to create a small repro that I could use and debug to really pin point the issue and see what's possible on my end. |
Closing as cannot repro. |
The tl;dr; is that the unmanaged references from nuget packages aren't copied to the
TestResults\Deploy_***\out
directory.In my case, I'm trying to test my ML library that uses the Microsoft.ML.OnnxRuntime.DirectML nuget:
My unit tests run and pass if I run them in Visual Studio or use the new mstest nugets that generate {AssemblyName}.exe. If I try to run them from the console (and CI) using vstest.console.exe it fails to load the native assemblies.
From what I can tell so far, when vstest.console.exe runs it tries to find all of the references and copy them to the out folder it finds the managed references from the nugets. ie,
However, things like
onnxruntime.dll
orOpenCvSharpExtern.dll
are not copied over to theout
folder.I haven't had much luck trying to google. I'm hoping that I'm missing something simple.
The text was updated successfully, but these errors were encountered: