Skip to content
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

Replacement for AssemblyResolution in newer .NET versions? #1708

Closed
fx999dev opened this issue Jul 10, 2023 · 2 comments
Closed

Replacement for AssemblyResolution in newer .NET versions? #1708

fx999dev opened this issue Jul 10, 2023 · 2 comments
Assignees
Labels
Milestone

Comments

@fx999dev
Copy link

fx999dev commented Jul 10, 2023

To answer more specifically your questions. No, there will not be any "fix" for supporting the AssemblyResolution property in netcore/net versions of MSTest. But we will update the documentation to specify this is not supported AND we will emit a warning if we detect this property in some netcore run.

@Evangelink
We have about 1500 dlls of which 30-50 dlls need to be loaded at runtime depending on the project. via the .runsettings file gave us the possibility to specify a path where all possible runtime components can be found.
Surely we can't specify "Copy Local" on each of our projects, after which around 3 gigabytes of dlls are copied to the binary folder on each build, which would not only be a huge waste of memory, but also a massive performance loss when building the projects.

We are currently still using .NET Framework, but how should we solve the problem when we move to .NET 6.0 in the future?

Originally posted by @fx999dev in #1645 (comment)

AB#1934901

@Evangelink
Copy link
Member

Hi @fx999dev! I will need to explore some ways to provide a full answer but my first idea here if your test project requires many depenendencies that are not present at compile time, would be to moving the test assembly/assemblies to the folder with old dependencies this way at runtime all files would be present. I think (need to test it out) you could also update the net6 config file produced by the dll to point to some extra folders.

@Evangelink
Copy link
Member

Hi @fx999dev, we will be porting this feature to MSTest v3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants