SqlPersistenceTask: SolutionDirectory 'C:\src\NCrunch\workspace\32880\119\path\to\project\' does not exist.
This package generates SQL scripts at build time that are used at runtime by NServiceBus to create persistence tables in the database.
We have a number of solutions, and this is only happening in one solution, which contains projects that are in folders that are not child folders of the solution file.
1. Create an empty text file inside the solution directory in your solution (not in the NCrunch workspace)
2. Go to the 'Additional files to include' NCrunch solution-level setting
3. Add the empty text file
4. Wait for the engine to reset
Does this resolve the problem? I think that because NCrunch couldn't find any files in the directory that needed to be in the workspace, it simply hasn't constructed it in its relative position. By placing a file in there, the workspace builder should ensure that it exists.
richev wrote:Thanks for the rapid response - apologies for my delay in replying.
This worked for us, so the problem is solved!
Awesome! Thanks for confirming this :)
richev wrote:
Is this something we will just need to do from now on, or is it a workaround for an issue in NCrunch that will be fixed in an upcoming release?
This is kind of what we would call a structural limitation. We copy files from your source directory into a sandbox workspace that we use to run builds and tests. For this purpose, we've only really been interested in copying files rather than entire directory structures. It IS technically possible for us to expand this to include directories too, but there would be a trade-of in terms of complexity and possibly performance, because it was never really a use case that was considered.
There are other ways you could work around this, for example, you could include a custom build step that ensured the directory would always exist when your project is built.