Deleted post by [Deleted User]
#40
16 May 2011 22:29 UTC
Build/Test Issues
The OutputPath property is not set for project
Started by [Deleted User] on 40,458 views
Remco NCrunch Developer
#42
17 May 2011 06:24 UTC
This is quite a common error often seen when the projects within your solution can't be built independently using MSBuild.
You should in theory be able to replicate the error outside of NCrunch by building your .proj files directly using MSBuild on the command line.
Make sure each of your .proj files has a default configuration specified in a PropertyGroup, for example: <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
You can also specify the $(Configuration) variable in the NCrunch configuration for each component (try setting 'UseBuildConfiguration' to DEBUG), though this is a bit of a dirty way of getting around the problem.
You should in theory be able to replicate the error outside of NCrunch by building your .proj files directly using MSBuild on the command line.
Make sure each of your .proj files has a default configuration specified in a PropertyGroup, for example: <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
You can also specify the $(Configuration) variable in the NCrunch configuration for each component (try setting 'UseBuildConfiguration' to DEBUG), though this is a bit of a dirty way of getting around the problem.
Deleted post by [Deleted User]
#54
17 May 2011 12:38 UTC
Remco NCrunch Developer
#61
17 May 2011 19:04 UTC
Interesting. Do the projects build on their own outside the solution? If not - hit the Bug Report button and I'll take a look at the log file.
Deleted post by [Deleted User]
#64
17 May 2011 19:26 UTC
Remco NCrunch Developer
#66
17 May 2011 20:22 UTC
I'd say that this is definitely likely to cause you problems. Try adjusting this to be a path relative to the project file you're building, and see if this helps.
You may also need to use the AdditionalFilesToInclude option to make sure the imported build script is found by NCrunch and copied to the workspace. NCrunch is usually pretty good with working out these sorts of dependencies, but imported MSBuild scripts can give it trouble if you're using MSBuild variables to describe their paths.
You may also need to use the AdditionalFilesToInclude option to make sure the imported build script is found by NCrunch and copied to the workspace. NCrunch is usually pretty good with working out these sorts of dependencies, but imported MSBuild scripts can give it trouble if you're using MSBuild variables to describe their paths.
Deleted post by [Deleted User]
#88
18 May 2011 18:54 UTC
Deleted post by [Deleted User]
#89
18 May 2011 19:30 UTC
Deleted post by [Deleted User]
#90
18 May 2011 19:55 UTC
Remco NCrunch Developer
#93
19 May 2011 06:28 UTC
Nice going. Try introducing the Platform property as a element of an unconditional PropertyGroup inside the build script. This will be effectively the same as injecting it through the command line, and it should work with NCrunch.
Deleted post by [Deleted User]
#103
19 May 2011 18:46 UTC
Remco NCrunch Developer
#104
19 May 2011 18:56 UTC
Thanks! Will take a look.
Remco NCrunch Developer
#123
23 May 2011 17:04 UTC
Hi Andrew,
Thanks for sending through the log file. I can reproduce this problem consistently and can confirm that NCrunch has a compatibility issue with static libraries shared between projects.
So far, NCrunch's support for C++ projects has been shallow and is quite limited. I do have some plans to extend better support in this area, although the build behaviour around C++ projects is quite different to other .NET projects and some effort will be required before I can safely warrant that NCrunch will support these projects consistently in a range of different environments.
1.31b (due for release this week) contains a fix that will allow NCrunch to find the lib file, but usage of the file by other projects within the solution is so far impossible. The best option I can provide you with would be to separate the build of your C++ projects into a different solution, then introduce direct DLL assembly references from your other projects to the build outputs from this solution. Better C++ support should be added in a future release several months from now.
Cheers,
Remco
Thanks for sending through the log file. I can reproduce this problem consistently and can confirm that NCrunch has a compatibility issue with static libraries shared between projects.
So far, NCrunch's support for C++ projects has been shallow and is quite limited. I do have some plans to extend better support in this area, although the build behaviour around C++ projects is quite different to other .NET projects and some effort will be required before I can safely warrant that NCrunch will support these projects consistently in a range of different environments.
1.31b (due for release this week) contains a fix that will allow NCrunch to find the lib file, but usage of the file by other projects within the solution is so far impossible. The best option I can provide you with would be to separate the build of your C++ projects into a different solution, then introduce direct DLL assembly references from your other projects to the build outputs from this solution. Better C++ support should be added in a future release several months from now.
Cheers,
Remco
Post a reply
Log in to reply.