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

Notification

Icon
Error

Problem building a Service Fabric Actor project
AliSanjabi
#1 Posted : Monday, June 27, 2016 11:01:27 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/20/2014(UTC)
Posts: 3
Location: United States of America

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
I'm having trouble building a service fabric actor project. Looks like the problem is with FabActUtil trying to update the manifest file. Has anyone else run into this problem and have a solution?

This is the error I'm getting from NCrunch (after including the package):
Quote:

..\packages\Microsoft.ServiceFabric.Actors.2.1.150\build\Microsoft.ServiceFabric.Actors.targets (25, 5): The command ""R:\NCrunch\6048\14\PDRelativity_ServiceAPIManager\bin\x64\Debug\\FabActUtil.exe" /spp:"PackageRoot" /t:manifest /sp:"PDRelativity_ServiceAPIManager" /in:"bin\x64\Debug\\PDRelativity_ServiceAPIManager.Exe" " exited with code -1.


Thanks
-Ali
Remco
#2 Posted : Monday, June 27, 2016 11:22:44 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Ali,

Thanks for posting!

Is this build step needed in order for your tests to be run? An option may be to suppress it with an override if it isn't.

I would suggest taking a look at the contents of the workspace NCrunch has created to build the project. Right click on the failed project in your Tests Window, then choose Advanced->Browse to workspace. Take a look at this workspace - it should be a near exact copy of the project as it exists in your foreground solution. Most importantly, the files needed for this particular build step will need to exist in the workspace in their expected paths. Does everything look OK to you? If there is a file missing, you may need to include it manually using the 'Additional files to include' configuration setting.
1 user thanked Remco for this useful post.
AliSanjabi on 6/28/2016(UTC)
AliSanjabi
#3 Posted : Tuesday, June 28, 2016 12:21:19 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/20/2014(UTC)
Posts: 3
Location: United States of America

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Including all dependencies fixed the problem temporarily. I will try the override as soon as I get a chance, that seems to be a better way to go.

Thanks.
1 user thanked AliSanjabi for this useful post.
Remco on 6/28/2016(UTC)
AliSanjabi
#4 Posted : Monday, July 11, 2016 6:58:19 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/20/2014(UTC)
Posts: 3
Location: United States of America

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Quick update, your suggestion for excluding that build target worked great. Thanks again.
1 user thanked AliSanjabi for this useful post.
Remco on 7/12/2016(UTC)
Stratford
#5 Posted : Thursday, December 1, 2016 3:45:36 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/1/2016(UTC)
Posts: 1

Hi, I am very new to NCrunch and having exactly the same problem.

Could you please help explain in detail what exactly is the cause and what are the steps to exclude the build target?

Thanks
Remco
#6 Posted : Thursday, December 1, 2016 6:23:08 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for posting!

When NCrunch executes a build, it sets a property '$(NCrunch)' equal to '1'.

It's possible to use this property to change the behaviour of your build. In this case, I'd expect we'll want to use it to disable a build import. I haven't seen your project file so I'm not sure exactly how this package is hooked into it, but most likely you'll find something like:

<Import Project="..\packages\Microsoft.ServiceFabric.Actors.2.1.150\build\Microsoft.ServiceFabric.Actors.targets" />

You can disable this import for NCrunch builds as such:

<Import Project="..\packages\Microsoft.ServiceFabric.Actors.2.1.150\build\Microsoft.ServiceFabric.Actors.targets" Condition="'$(NCrunch)' != '1'" />

You can also use the condition on properties and other build steps.
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.042 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download