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

FSharp.Core 4.4.0.0 gets referenced when using Visual Studio 2015 Preview #79

Closed
ctaggart opened this issue Nov 19, 2014 · 9 comments
Closed
Labels

Comments

@ctaggart
Copy link

I created an example FSharp.Data.SqlClient console app to isolate a problem I'm having using it with Visual Studio 2015 Preview. The app simple runs a query against a hosted AdventureWorks on Azure. It prints the top the first 10 people using select top 10 FirstName, LastName from person.person.

When running from Visual Studio 2013 it works.
image

When I use Visual Studio 2015 Preview, I get:
image

The build does give this warning:
image

For some reason, the PeopleData.dll is ending up with a reference to 4.4.0.0, but I'm not sure how.
image

Here are the steps to reproduce:

PS> git clone https://github.com/ctaggart/Paket09x.git -b PeopleSql
PS> .\Paket09x\PeopleSql.sln

Rebuild solution. (It is not using Paket.)

@ctaggart ctaggart changed the title FSharp.Core FSharp.Core 4.4.0.0 gets referenced when using Visual Studio 2015 Preview Nov 19, 2014
@ctaggart
Copy link
Author

@dmitry-a-morozov and I were able to get it to run by redirecting back from 4.4.0.0 to 4.3.1.0 in the App.config. I'm thankful for backward compatibility in FSharp.Core. It still doesn't answer how 4.4.0.0 gets referenced in the first place.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.4.0.0" newVersion="4.3.1.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

@ctaggart
Copy link
Author

Just in case, I notified Visual F# and logged this bug:
https://visualfsharp.codeplex.com/workitem/176

@ctaggart
Copy link
Author

According to Kevin, it is something wrong with this Type Provider implementation.

@ctaggart
Copy link
Author

Pretty still affects the latest Visual Studio 2015 build. I'm sure it will still affect VS 2015 RTM.
Work-a-round:

<bindingRedirect oldVersion="0.0.0.0-4.4.0.0" newVersion="4.3.1.0" />

@dmitry-a-morozov
Copy link
Member

@ctaggart We're long way from resolving this issue.
See dotnet/fsharp#478

@lessismore1
Copy link

Same problem with creating and Web Api using
*VS 2015 Upd1
*ASP.NET5 RC1 Upd1
*SqlClient 1.8

@dmitry-a-morozov
Copy link
Member

@lessismore1 As of now the only solution is to use binding redirect.

@dsevastianov
Copy link
Contributor

@lessismore1 looks like it was fixed, are you still experiencing this?

@lessismore1
Copy link

@dsevastianov it is fixed! Sorry for the VERY late reply :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants