You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to how F# Interactive extension works, it is possible/currently recommended for user to add FSharp.DependencyManager.*.dll assemblies next to the ones that ship with FSI dotnet\sdk\{version}\FSharp
The issue I am facing is that once VS or user decides to clean up an older version of the SDK by uninstalling it, it will leave the files trailing in that folder, disregarding the fact that that particular version of dotnet sdk is not on the system anymore.
Steps to Reproduce
install a particular release of SDK you are going to uninstall
drop it under the FSharp folder of the particular release of SDK
make a project, pinning it with the version of SDK, and allow rollForward feature in global.json
open the project (works)
uninstall the particular release of SDK
open the project (doesn't work)
Actual Behavior
[MSB4236] The SDK 'Microsoft.NET.Sdk' specified could not be found.
(unloaded) is written next to each project in the solution explorer.
Expected Behavior
Either:
the detection of SDK shouldn't limit itself to presence of folder
the uninstall should completely remove the folder
the rollForward should be honoured as fallback before issuing MSB4236 to the end user
User Impact
VS is unable to load a solution until user figures the situation out, maybe the error message is not clear and could list the particular SDK folder it attempted to use.
If you manually copy files into a folder that was managed by an MSI installation, removing the SDK will not remove files because it did not install them. Removing an MSI is not a simple matter of deleting files. if you manually copied files into the SDK you will need to manually remove them.
@joeloff any chance to enhance the error message, to list the actual SDK folders that are used? This is disregarding why the error shows up (e.g. I am facing the same error message with no relation to the issue right now).
Visual Studio Version
VS2022 and VS2019
Summary
Due to how F# Interactive extension works, it is possible/currently recommended for user to add
FSharp.DependencyManager.*.dll
assemblies next to the ones that ship with FSIdotnet\sdk\{version}\FSharp
The issue I am facing is that once VS or user decides to clean up an older version of the SDK by uninstalling it, it will leave the files trailing in that folder, disregarding the fact that that particular version of dotnet sdk is not on the system anymore.
Steps to Reproduce
Actual Behavior
(unloaded) is written next to each project in the solution explorer.
Expected Behavior
Either:
User Impact
VS is unable to load a solution until user figures the situation out, maybe the error message is not clear and could list the particular SDK folder it attempted to use.
Related: dotnet/fsharp#8880
The text was updated successfully, but these errors were encountered: