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

Notification

Icon
Error

Additional files to include > Add Directory not showing any directories
StephenFriend
#1 Posted : Sunday, March 5, 2023 7:04:17 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/17/2016(UTC)
Posts: 4
Location: United Kingdom

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Hi there,

I'm on a new machine, trying get NCrunch set up & have hit a weird problem. I have projects that I want to configure to include additional files, but the dialog doesn't show any directories.
[img=https://ibb.co/4VtCfDf]Directory dialog[/img].

The machine is brand new & I've only been using it for 3 days. This was working fine so _something_ has changed, but I'm not sure what. Is this anything anyone has come across before?

This is VS2022 17.5.1, Windows 11, NCrunch 4.16.0.4.

EDIT: sorry, I'm not sure how to embed the image. The URL is just a free image upload service.
Remco
#2 Posted : Monday, March 6, 2023 12:12:39 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi, thanks for posting.

Unfortunately, this bug is actually in the O/S. I think it's been caused by a recent Windows update. See here for details: https://forum.ncrunch.net/yaf_postst3273_Extract-Full-HTML-Result-Save-Issue.aspx.

There isn't much we can realistically do to solve this at the moment on the side of NCrunch. If MS don't solve the problem, we will eventually need to implement a workaround ... but I have a feeling this will be fixed soon. Note that NCrunch's config files are all in XML, so you can hand-edit them if you need to. An example .ncrunchsolution file with additional files to include is shown below:

<SolutionConfiguration>
<Settings>
<AdditionalFilesToIncludeForSolution>
<Value>..\UnitTest\**.*</Value>
</AdditionalFilesToIncludeForSolution>
<AllowParallelTestExecution>False</AllowParallelTestExecution>
<SolutionConfigured>True</SolutionConfigured>
</Settings>
</SolutionConfiguration>

And for the project-level config setting:

<ProjectConfiguration>
<Settings>
<AdditionalFilesToIncludeForProject>
<Value>..\UnitTest\**.*</Value>
</AdditionalFilesToIncludeForProject>
<CopyReferencedAssembliesToWorkspace>True</CopyReferencedAssembliesToWorkspace>
</Settings>
</ProjectConfiguration>
1 user thanked Remco for this useful post.
StephenFriend on 3/6/2023(UTC)
StephenFriend
#3 Posted : Monday, March 6, 2023 2:37:14 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/17/2016(UTC)
Posts: 4
Location: United Kingdom

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Thanks for getting back to me so quickly, I really appreciate it. The suggestion to disable OneDrive (for which I have 0 use) worked, which is nice.

Just FYI, rather than edit the XML files by hand (which is probably simplest), it's also possible to manually add the path via the "Add Manually" dialog (which is the workaround I'd got to). I'm sure you're aware of this, but I just thought I'd note it here in case anyone else hits the same issue.

Thanks again.
1 user thanked StephenFriend for this useful post.
Remco on 3/6/2023(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.034 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download