I have a project that accesses dlls from a nuget package. The dll is referenced in the test code via a string. VSTest is running. NCrunch does not run. The dll is not copied to the NCrunch test directory. how can I force the dll to be copied. Normal bin folder contains this dll. You can find the code here. https://github.com/xmolecules/nmolecules
Remco NCrunch Developer
#16837
03 Sep 2023 11:37 UTC
Hi, thanks for posting.
Can you share any more specific details about how the DLL is being referenced? Is this using Assembly.LoadFrom? Sorry, I took a quick look through the projects in the link you provided but couldn't find the reference.
Have you tried turning on the 'Copy referenced assemblies to workspace' setting for the projects involved?
Can you share any more specific details about how the DLL is being referenced? Is this using Assembly.LoadFrom? Sorry, I took a quick look through the projects in the link you provided but couldn't find the reference.
Have you tried turning on the 'Copy referenced assemblies to workspace' setting for the projects involved?
Hi
You can run the unit tests. Have you received the failed tests.
The package nMolecules.DDD is referenced in the project.
You can run the unit tests. Have you received the failed tests.
The package nMolecules.DDD is referenced in the project.
public static async Task VerifyAnalyzerAsync(string source, params DiagnosticResult[] expected)
{
var test = new CSharpTest
{
TestCode = source,
TestState =
{
AdditionalReferences = { "nMolecules.DDD.dll" }
}
};
test.ExpectedDiagnostics.AddRange(expected);
await test.RunAsync(CancellationToken.None);
}
Remco NCrunch Developer
#16839
03 Sep 2023 23:14 UTC
When I run the tests locally, they all pass. I can't seem to find the VerifyAnalyzerAsync method in the code you've linked to above.
Can you confirm whether the setting I described above has any impact on the resolution issue?
Can you confirm whether the setting I described above has any impact on the resolution issue?
Post a reply
Log in to reply.