0.9.1 is Broken in VS 15.7 and whatever other updates that brings
See original GitHub issueDescription
Lint fails with this error
(FSharpLint target) ->
TypeLoadException: Could not load type 'Microsoft.FSharp.Control.CommonExtensions+SubscribeToObservable@1693' from assembly 'FSh
arp.Core, Version=4.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
error : at FSharpLint.MSBuild.AppDomain.LintRunner.add_Failure(FailureEventHandler handler)
error : at <StartupCode$FSharpLint-MSBuild>.$FSharpLintTask.Lint@26.Invoke(FailureEventHandler eventDelegate)
error : at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.CreateEvent@341.System-IObservable`1-Subscribe(IObserver`1 r)
error : at FSharpLint.MSBuild.Proxy.Lint()
error : at FSharpLint.MSBuild.FSharpLintTask.Execute()
Repro steps
Please provide the steps required to reproduce the problem
-
Load the current master (932c20d) of FSharpLint into VS 15.7
-
Run unit test FunctionalTestMSBuildTask
Expected behavior
It passes
Actual behavior
That test shows the essentially the same error
error : TypeLoadException: Could not load type 'Microsoft.FSharp.Control.CommonExtensions+SubscribeToObservable@1693' from assembly 'FSharp.Core, Version=4.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
error : at FSharpLint.MSBuild.AppDomain.LintRunner.add_Failure(FailureEventHandler handler)
error : at <StartupCode$FSharpLint-MSBuild>.$FSharpLintTask.Lint@26.Invoke(FailureEventHandler eventDelegate
error : at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.CreateEvent@341.System-IObservable`1-Subscribe(IObserver`1 r)
error : at Microsoft.FSharp.Control.CommonExtensions.SubscribeToObservable[T](IObservable`1 x, FSharpFunc`2 callback)
error : at Microsoft.FSharp.Control.CommonExtensions.AddToObservable[T](IObservable`1 x, FSharpFunc`2 callback)
error : at FSharpLint.MSBuild.Proxy.Lint()
error : at FSharpLint.MSBuild.FSharpLintTask.Execute()
Known workarounds
N/A
Related information
- Operating system – Win 10 Home
- Branch – 0.9.1 NuGet release or master @ 932c20d
- .NET Runtime, CoreCLR or Mono Version
- Performance information, links to performance testing scripts
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Last Epoch (@LastEpoch) / X
The Flames Rise 🔥 Last Epoch Beta - 0.9.1: Rising Flames Patch Notes are here! Join game director, Judd Cobler, breaking down what...
Read more >5.16.1 STILL BROKEN on iOS 15.7.6
Issues: 1. Getting stuck at login page after reinstallation, can be fixed by ending and staring the app manually (always!). 2. Measure Tab...
Read more >Release Notes for Flyway Engine
We have improved support for `WHENEVER SQLERROR EXIT` in Oracle SQL*Plus. This now works on its own and no longer needs to be...
Read more >What Features Are Included in Previous Releases?
View a list of features, enhancements, and fixes included in previous releases of Adobe Target.
Read more >4 Solutions to Exercises
Some approaches are not mistakes, but may lead to different students having different “right” answers. Correct answers will vary based on: • The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@parthopdas unfortunately it wasn’t so simple as updating fsharp.core, I’m going to try and go with @SteveGilham 's solution (ilmerge to get a single msbuild task assembly) this weekend
@SteveGilham Yeah, I couldn’t get ILMerge working with the FSharpLint assemblies, instead I did something I had wanted to do for a long time and deprecated the MSBuild task 😛 Might bring the MSBuild and Fake tasks back at some point but if I do they’ll be wrappers around the new dotnet tool, to avoid these dependency issues that could never quite be resolved