NCrunch Forum
»
General Support
»
Build/Test Issues
»
NCrunch. Make reference for all projects in workspace to a particular folder with nuget libraries.
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 ?
|
|
|
|
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?
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
NCrunch Forum
»
General Support
»
Build/Test Issues
»
NCrunch. Make reference for all projects in workspace to a particular folder with nuget libraries.
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.NETThis page was generated in 0.036 seconds.