Hi Remco,
for 1. Yes, copy reference assemblies works. But this may degrade performance. For this i have a question, for me as a none native english speaker I have
little trouble to be sure about this description in the docs
NCrunch must rebuild all upwards dependencies from the project that has changed.In this sample, i have enabled that for the test project. But which projects will be rebuilds if i change in the test project, besides the test project?
a) Upwards in the hierarchy (if i move a member member of a class up, the it get's moved to the base class) e.g. the TheLibrary and Every other dependencies which is
referenced, or b) upwards on the dependencies e.g. Projects that depends on the Test project (e.g. none).
For a) in this repo project, this is not a problem, but in the real project. b) should be no problem at all, but then, why is the performance problem even mentioned
for 2. this path is for adapting the namespace where the resources are placed.
But
on a normal Compile (dotnet build) the resource assemblies are placed in folder for their language.
This also happends with copying the reference assemblies.
TheLibrary
Code:
TheLibrary/bin/debug/netcoreapp2.1/de/TheLibrary.resources.dll
TheLibrary/bin/debug/netcoreapp2.1/en/TheLibrary.resources.dll
Test Project
Code:
NCrunchLocalizationTests/bin/debug/netcoreapp2.1/de/TheLibrary.resources.dll
NCrunchLocalizationTests/bin/debug/netcoreapp2.1/de/NCrunchLocalizationTests.resources.dll
NCrunchLocalizationTests/bin/debug/netcoreapp2.1/en/TheLibrary.resources.dll
NCrunchLocalizationTests/bin/debug/netcoreapp2.1/de/NCrunchLocalizationTests.resources.dll
This is the normale place for the satellite assemblies.
I in don't set copy references assemblies this is the result in the ncrunch folder build folders
TheLibrary
Code:
TheLibrary/bin/debug/netcoreapp2.1/de/TheLibrary.resources.dll
TheLibrary/bin/debug/netcoreapp2.1/en/TheLibrary.resources.dll
Test Project
Code:
NCrunchLocalizationTests/bin/debug/netcoreapp2.1/de/NCrunchLocalizationTests.resources.dll
NCrunchLocalizationTests/bin/debug/netcoreapp2.1/de/NCrunchLocalizationTests.resources.dll
So, even if would be able to change the path from where the resource assemblies are loaded at test time, it would
not be possible because these satellite assemblies are not even in reach for the test project.
These are only living in the an unknown folder where TheLibrary ist build.
I would assume that *.resx are not file a special case, and the NCrunch may can do better on copying the resources assemblies from the library to the test project ;)