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

Notification

Icon
Error

Issue with 'Copy Referenced Assemblies To Workspace'
wilhelmmedetz
#1 Posted : Friday, July 17, 2015 2:45:54 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/4/2012(UTC)
Posts: 35

Was thanked: 2 time(s) in 2 post(s)
I have the following problem:

Project A has a specfic NLog.config file.

TestProject B references Project A.
Project B has a different NLog.config file.
For project B 'Copy Referenced Assemblies To Workspace' is selected.
The workspace folder of project B now contains the NLog.config file from project A.

With the normal build system from Visual Studio it would contain the NLog.config file from project B.

Is it possible to fix this?

Regards

Wilhelm
Remco
#2 Posted : Friday, July 17, 2015 11:47:35 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)
Hi Wilhelm,

Thanks for reporting this. I've done some quick tests and confirmed that this issue is caused by NCrunch overwriting existing files when copying referenced resource files across projects - something that MSBuild/VS doesn't normally do.

Do you mind if I include a fix for this in the next release?


Cheers,

Remco
wilhelmmedetz
#3 Posted : Monday, July 20, 2015 1:06:45 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/4/2012(UTC)
Posts: 35

Was thanked: 2 time(s) in 2 post(s)
Would be fine if it is fixed in the next release.
The current workaround is to use assembly specific config files, which have different names, and to include the NLog.config info in these config files.

Greetings

Wilhelm
1 user thanked wilhelmmedetz for this useful post.
Remco on 7/20/2015(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.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download