-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating symbolic links without developer mode or elevation fails silently #62975
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsTested on Windows 10 21H1 19043 without Developer Mode with .NET 6 RTM; it does not throw. Originally posted by @wegylexy in #57205 (comment)
|
The Windows API Posible options to deal with this:
|
If Windows team can not fix old (supported) Windows versions it is best to use DeviceIoControl and backport to .Net 6 as bug fix. |
I have something on production that assumes it doesn't throw and checks for existence afterwards. A user reports it throws on Windows 7 when not run as admin. |
@wegylexy @Raffaello I talked with the Windows team and they pointed out that the silent failure was due to an error on our side, so I fixed it in the main branch. Could you please help me validaiting the fix for your scenarios with a nightly build of .NET 7? That way, we can propose porting the fix to .NET 6. Download the nightly build from https://github.com/dotnet/installer#table (column main (7.0.x Runtime)), download the version ad-hoc to your platform. |
@jozkee We switched to use directory junction points and copying files instead, as typical users won't have developer mode enabled. |
@jozkee ok, i will have a look, just need to find some times, hopefully i should hace some in the weekend. |
@jozkee with test ref: https://github.com/BlueRedSkyLTD/PowerDir/blob/main/PowerDir.Tests/EscapeCodesThemesTest.cs#L116-L158 |
Thanks! |
Tested on Windows 10 21H1 19043 without Developer Mode with .NET 6 RTM; it does not throw.
Originally posted by @wegylexy in #57205 (comment)
cc @iSazonov @adamsitnik.
The text was updated successfully, but these errors were encountered: