F # PowerPack Target Runtime

Pre-generated binaries for F # PowerPack compiled against the .NET 2.0 runtime. If I have a .NET 4.0 project, is there any advantage to compiling a PowerPack source for the .NET 4 runtime?

+3
source share
2 answers

I used the .NET 2.0 version of F # PowerPack in the F # snippets website , which is a .NET 4.0 ASP.NET project. The only drawback of not using version 4.0 was that I had to add a configuration to download version 4.0 of FSharp.Core.dll when searching for version 2.0 (which version 2.0 of PowerPack refers to).

I had to add something like the following, and then everything worked out simply:

 <configuration> <!-- ... --> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" /> <bindingRedirect oldVersion="2.0.0.0" newVersion="4.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration> 
+7
source

My app.config for older .NET is

 <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration> 

but the power supply installs and works well on VS2010 and .NET4 fsproj

+1
source

Source: https://habr.com/ru/post/1343202/


All Articles