question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scanning a directory that contains a .dll results in the directory and all files being deleted

See original GitHub issue

When a directory is passed to the TemplateCache Scan method, and a subdirectory contains .dll files, then the directory and all files are deleted. When scanning a directory this should not happen since this may contain the original project and associated template files.

I created a simple console app that uses the IDE Bootstrapper to reproduce the problem:

https://github.com/mrward/TestDotNetTemplateInstaller

Building and running this console application results in the TestDotNetTemplateInstaller project directory being deleted. This was tested on the Mac with Mono 5.4.

Debugging the TemplateCache what happens is that when a .dll file is found then the directory is deleted in the ScanForComponents method.

The dotnet cli does not seem to have the same problem. Running dotnet new -i /path/to/template using a directory that has a template.json but also .dll files in a subdirectory works as expected and no project files are removed.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
seancpeterscommented, Oct 11, 2017

@mrward - I’ve merged a fix for this into rel/2.1.0_preview-1, please let me know if you have additional problems.

0reactions
mlorbetskecommented, Oct 16, 2017

Closing this since the fix has been merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

DLL Files Automatically Deleted: How to Stop it and Recover ...
Install and run MyRecover on your computer. Select the partition where your DLL files are stored to start a scan. Step 2. The...
Read more >
FS.dll, What is it, why is it on my computer, and why does ...
As Hitman seems to be reliable but a touchy scanner, I scanned with Avast and Malware Bytes and it found zero results, even...
Read more >
How to Fix Missing DLL Files in Windows 10/8/7 [2023 Guide]
You can fix missing DLL files by running SFC and DISM scanner, retrieve deleted DLL files with a file recovery tool, manually download...
Read more >
How to make windows read all .dll files while scanning ...
1 Answer 1 ... If you like to search not only the root directory you should use an overload of the DirectoryInfo.GetFiles method....
Read more >
13 Ways to Fix Missing DLL Files [2023]
Wait until the full scan finishes. Step 3: In result, this software lists all found files. To find missing DLL files, you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found