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

Notification

Icon
Error

NCrunch. Make reference for all projects in workspace to a particular folder with nuget libraries.
ratra
#1 Posted : Thursday, June 9, 2016 10:11:41 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/3/2016(UTC)
Posts: 3
Location: Moldova, Republic of

Hi. Is it possible to set a reference for all the projects in solution related workspase to a particulart nuget assemblies folder and not copy this folder in every project related folder from Ncrunch workspace ?
Remco
#2 Posted : Thursday, June 9, 2016 10:30:28 PM(UTC)
Rank: NCrunch Developer

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

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

Unfortunately not. This is because of the way that NCrunch needs to isolate project workspaces from each other. If there were a construction that were specific to a solution and not to a project, then this would result in shared files across workspaces which is something the engine is designed to avoid.

I grant that sharing Nuget files between builds is generally not something that causes a problem, but the engine just wasn't designed around this concept.

Is the copying of these files causing problems for you?
ratra
#3 Posted : Thursday, June 9, 2016 10:46:10 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/3/2016(UTC)
Posts: 3
Location: Moldova, Republic of

Hi Remco,

Thanks for quick reply.

I have 4 solutions that have from 11 to 50 projects in it.

For all of them I used a SharedLib folder for nuget assemblies to share across this solutions and their projects.

SharedLib folder is about 650 MB.

So Ncrunch creates separate workspace folder for every solution and a separate folder for every project with SharedLib folder in it.

This behavior is performed if I set up Additional files to include in Ncrunch configuration for solution settings.

Apparently I need a drive with enough free space.

Regards,
Vlad
Remco
#4 Posted : Thursday, June 9, 2016 10:57:11 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Vlad,

Understood. Are your projects able to build without the Nuget directory being included in your additional files to include? NCrunch's auto detection of Nuget packages has been improved fairly recently. If you need this for a certain package, it may be enough to simply include only that package and leave the rest of the Nuget directory excluded.
ratra
#5 Posted : Thursday, June 9, 2016 11:05:33 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/3/2016(UTC)
Posts: 3
Location: Moldova, Republic of

Hi Remco,

We are updated our projects to .NET 4.6.1 and for the ASP.NET Web application projects that are referring to

Microsoft.Net.Compilers.1.0.0, NCrunch do not copy into workspace the Microsoft.Net.Compilers.1.0.0\tools\csc.exe file.

And because of this NCrunch cannot build mentioned projects.

Regards,
Vlad
Remco
#6 Posted : Thursday, June 9, 2016 11:07:54 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Try including just the compiler executables using the additional files to include.

Often Nuget packages contain a considerable amount of other material that just isn't needed for the building of projects.
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.036 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download