Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NServiceBus-related build issue
richev
#1 Posted : Monday, July 8, 2019 6:11:26 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/6/2013(UTC)
Posts: 2
Location: United Kingdom

Thanks: 2 times
We're seeing the following error in our projects that contain a reference to the NServiceBus.Persistence.Sql.MsBuild NuGet package:

Code:
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.

For example:

Code:
Project("{guid}") = "Project.Name.NServiceBus", "..\..\Some\Other\Folder\Project.Name.NServiceBus\Project.Name.NServiceBus.csproj", "{guid}"
EndProject


This is preventing us from using NCrunch with this solution.
Remco
#2 Posted : Monday, July 8, 2019 11:48:08 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,692

Thanks: 738 times
Was thanked: 944 time(s) in 899 post(s)
Hi, thanks for sharing this issue.

Could you try the following?

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
#3 Posted : Sunday, July 14, 2019 10:57:27 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/6/2013(UTC)
Posts: 2
Location: United Kingdom

Thanks: 2 times
Sadly this didn't resolve the issue. I'll do some additional troubleshooting this week, and update this thread accordingly.

Thanks!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.028 seconds.