Daily Usage Issues

Additional files to include > Add Directory not showing any directories

Started by StephenFriend on 1,646 views

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.

Edited

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>
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.

Post a reply

Log in to reply.