Deploy a web application using FSharp.Data files for Azure

This is a similar question. How to deploy a web application using F # on the Azure Web Site . My C # / F # MVC project uses the FSharp.Data NuGet package, and the deployment process ends with a message

Could not find assembly "FSharp.Data, Version = 1.1.4.0, Culture = neutral, PublicKeyToken = null".

The only effective solution that I see is to replace all NuGet links (FSharp.Data, FSharp.Data.DesignTime, FSharp.Data.Experimental, FSharp.Data.Experimental.DesignTime) with explicit DLL links, and Copy Local to true I don't want to throw a NuGet baby with bath water this way. Is there a smarter way? Also, is there an open issue to which I can add my vote?

+2
source share
1 answer

<dependAssembly> web.config, , FSharp.Data , Azure. , F #/# ASP.NET MVC Azure; , , Copy Local ( NuGet).

, , , :

<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="FSharp.Data" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

, , , .

  • Azure ( ). , (*.cspkg); zip , , 7-zip. *.cssx, , ; zip , , Windows. sitesroot, 0. ( /, C:\inetpub\wwwroot -). bin - FSharp.Data? , /, ; FSharp.Data, .
  • Azure, . ( - , , .) , , ( "" ); Windows - - ASP.NET? , , .NET FSharp.Data. , C:\inetpub\wwwroot\ , FSharp.Data bin -. , .
  • FSharp.Data -, ( ), .NET 4.0, .NET 4.5. Azure ( Remote Desktop) Fusion Fusion , CLR . , <bindingRedirect> <dependentAssembly>, web.config. , F # PowerPack ( .NET 2.0 FSharp.Core), F #/# .NET 4.0:

    <dependentAssembly>
      <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
    </dependentAssembly>
    
+2

All Articles