HLSLToolsForVisualStudioConfigGenerator icon indicating copy to clipboard operation
HLSLToolsForVisualStudioConfigGenerator copied to clipboard

Symbolic Link Creation does not work on Windows 11

Open Jessendelft opened this issue 1 year ago • 1 comments

Hi!

I've been trying out your tool. I could not get hlsltools to recognize my Packages/ folder, until I dug into your code and found out how you're solving it. Creating a folder with symbolic links is a pretty neat solution! However, when inspecting the folder in my File Explorer where the symbolic links should be I saw that the Package folder is created, but the symlinks were not. I tried creating the links manually using cmd, but that gave me a permission error (You do not have sufficient privilege to perform this operation.). I then successfully created links by opening cmd as administrator.

Reading the ProcessStartInfo docs it looks like you can force it to run as an admin by adding proc.Verb = "runas"; at line 413.

Thank you for your tool, it really helped me out (even though I did not fully work)!

Jessendelft avatar Jun 05 '24 10:06 Jessendelft

hlsltools is still not able to open those package files even after successfully creating the symbolic link on windows 11.

misakieku avatar Mar 19 '25 13:03 misakieku