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

Notification

Icon
Error

The target "ResolveKeySource" does not exist in the project.
GreenMoose
#1 Posted : Monday, September 22, 2014 1:12:24 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
v2.9.0.8

Trying to run my solution with the console tool and currently I always get build failure due to our Wix setup projects cannot load.
1) We have, in vstudio's configuration manager, disabled build for the setup project except for "Setup" build configuraiton. Should NCrunch really try to build it anyhow or is the error occurring even before NCrunch has the chance of determining if it should be built or not?
2) The project errors are from *.wixproj files. Is it a but or do I need to do something for them to play nice with NCrunch?

Code:

System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> nCrunch.Common.UserException: Errors occurred while trying to load the project file: 
The target "ResolveKeySource" does not exist in the project. 
at nCrunch.Compiler.RemoteBuildRunner.(FilePath ,   , String , String , DirectoryPath , String ) 


Thanks.
Remco
#2 Posted : Monday, September 22, 2014 10:42:42 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
WiX projects aren't really supported by NCrunch. They use a different set of build targets and generally aren't needed in a test environment. The best plan would be to make sure the project is ignored by NCrunch using the 'Ignore this project completely' configuration setting. As long as the .ncrunchproject file is checked into the VCS, the console tool will read the ignore flag and avoid trying to load the project.

NCrunch doesn't use the VS build manager to determine which projects to build. Everything depends upon the 'Ignore this project completely' flag.
GreenMoose
#3 Posted : Tuesday, September 23, 2014 5:49:09 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Thanks that did it. (Had to copy the v2.ncrunchproject files from existing projects though since they were not even created by NCrunch).
Remco
#4 Posted : Tuesday, September 23, 2014 7:36:22 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Was the project not showing in the NCrunch config window?
GreenMoose
#5 Posted : Tuesday, September 23, 2014 8:21:08 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Remco;6442 wrote:
Was the project not showing in the NCrunch config window?

Correct.
Remco
#6 Posted : Tuesday, September 23, 2014 10:43:16 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Is there any chance you can share with me the project type guid specified next to this project inside your solution file?

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyProject", "MyProject.csproj", "{OTHER GUID}"
EndProject

The project type GUID for the above project is FAE04EC0-301F-11D3-BF4B-00C04F79EFBC

With this information, I can instruct NCrunch to automatically ignore the project without needing additional configuration. Some project types are implicitly ignored by NCrunch's IDE integration, which isn't fully aligned with the loading logic in the console tool. Coding in this project type will bring us one step closer in aligning the two :)
GreenMoose
#7 Posted : Wednesday, September 24, 2014 7:44:54 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Remco;6445 wrote:
Is there any chance you can share with me the project type guid specified next to this project inside your solution file?

Sure 930C7802-8A8C-48F9-8165-68863BCCD9DD (*.wixproj)
1 user thanked GreenMoose for this useful post.
Remco on 9/24/2014(UTC)
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.037 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download