Skip to content
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

No Windows Explorer icons/associations for F# files #4017

Closed
chadunit opened this issue Nov 26, 2017 · 13 comments
Closed

No Windows Explorer icons/associations for F# files #4017

chadunit opened this issue Nov 26, 2017 · 13 comments
Labels
Area-SetupAndDelivery Setup, packages, templates, SDK, delivery channels Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone

Comments

@chadunit
Copy link

After clean install of Windows 10 FCU:

Installed Visual Studio Community 15.4.4, with F# support selected, plus nightly Visual F# Tools.

Installed Visual Studio Community 15.5.0 Preview 4, with F# support selected, plus nightly preview Visual F# Tools.

Afterward, no custom icons or file associations for F# files in Windows Explorer:

image

image

This is not consistent with other file types such as C#, or with VS2015 which I'm pretty sure did set up Windows F# file associations.

I didn't do much between the 15.4 and 15.5 VS installs, so I don't know if they were possibly there in 15.4 and wiped out by 15.5.

@cartermp
Copy link
Contributor

Huh, I've never seen this happen before. I don't have this on my machine.

@cartermp
Copy link
Contributor

Closing this out - @chadunit I still haven't seen this occur. Please do let me know if you see it again.

@chadunit
Copy link
Author

@cartermp Here is a repro.

  1. Download Windows 10 development VM (Hyper-V): https://developer.microsoft.com/en-us/windows/downloads/virtual-machines

  2. Run the VM which has VS 2017 15.5.0 preinstalled.

  3. Run VS, sign in, create F# project. (Or just create .fs files in file explorer.)

  4. Observe in file explorer there are no associations for F# files. Updating to 15.5.6 has no effect. (Also browse C:\samples and note almost every VS-related file type other than F# has association.)

fsharp no file assoc 2

@blfuentes
Copy link

Same here.
Win 10 [Versión 10.0.17763.55]
Visual Studio 2017 15.8.8
F# 4.5

@abelbraaksma
Copy link
Contributor

@cartermp, it seems there's now a repro and it still happens. Maybe specific to VMs? I haven't seen this either, and perhaps it's just that the windows explorer's icon cache needs to be reset.

I suggest we reopen this?

@cartermp
Copy link
Contributor

cartermp commented Nov 1, 2018

I'll re-open it, though I cannot reproduce it on a VM.

@cartermp cartermp reopened this Nov 1, 2018
@chadunit
Copy link
Author

chadunit commented Nov 1, 2018

I found that this issue was also logged under another project:
dotnet/project-system#3351
dotnet/project-system#3352

@cartermp
Copy link
Contributor

cartermp commented Nov 1, 2018

Given that this is for .NET Core SDK projects, my guess is the project system bugs are the correct ones to track this. Thanks @chadunit!

@cartermp cartermp closed this as completed Nov 1, 2018
@blfuentes
Copy link

blfuentes commented Nov 1, 2018

I had the same issue on a fresh win10 machine, no VM.
I managed to make it work by exporting the reg keys and FSharp folder from a working machine where VS2015 was installed.
Also I create a repository where the .reg keys and folders can be downloaded, in case it helps.

https://github.com/blfuentes/Fsharp_File_extensions

@cartermp
Copy link
Contributor

Re-opening this, as it's an issue in our setup and not on the .NET project system

Associated .NET project system bug: dotnet/project-system#3351

@cartermp cartermp reopened this Feb 14, 2020
@cartermp cartermp added Area-SetupAndDelivery Setup, packages, templates, SDK, delivery channels Bug labels Feb 14, 2020
@cartermp cartermp added this to the Backlog milestone Feb 14, 2020
@xperiandri
Copy link
Contributor

Confirm

For example, for C# there are such Registry records

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VisualStudio.csproj.c7f4b4fa]
@="Visual C# Project File"
"AlwaysShowExt"="1"

[HKEY_CLASSES_ROOT\VisualStudio.csproj.c7f4b4fa\DefaultIcon]
@="\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC#\\VCSPackages\\csproj.dll\",0"

[HKEY_CLASSES_ROOT\VisualStudio.csproj.c7f4b4fa\shell]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.c7f4b4fa\shell\Open]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.c7f4b4fa\shell\Open\Command]
@="\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\IDE\\devenv.exe\" \"%1\""

But where the F# icon is located I don't know.

@blfuentes
Copy link

@xperiandri I created a repository with the registry entries:
https://github.com/blfuentes/Fsharp_File_extensions

@xperiandri
Copy link
Contributor

@blfuentes, cool! Thanks!

@dsyme dsyme added the Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. label Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-SetupAndDelivery Setup, packages, templates, SDK, delivery channels Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Projects
Archived in project
Development

No branches or pull requests

7 participants