When I execute ShellLink.Create() a file is created, but File Explorer does not show it as a shortcut and viewing its properties does not show any of the tabs shown in the properties dialog for a shortcut file.
What code is involved
Here is a small console-based project that reproduces the issue.
ShellLinkTest.zip
Expected behavior
I expect a valid shortcut file to be created.
Screenshots
ShellLinkTest was created using this project. ShellLinkTest2 was created using Windows itself.
Describe the bug and how to reproduce
When I execute
ShellLink.Create()
a file is created, but File Explorer does not show it as a shortcut and viewing its properties does not show any of the tabs shown in the properties dialog for a shortcut file.What code is involved
Here is a small console-based project that reproduces the issue. ShellLinkTest.zip
Expected behavior
I expect a valid shortcut file to be created.
Screenshots
ShellLinkTest
was created using this project.ShellLinkTest2
was created using Windows itself.