John
I'm having trouble setting up SQLite, which I use with NHibernate, as opposed to EntityFramework (I think the latest version might have considered EF more, not sure). Here is what works for me now.
1) modify app.config as Stephen says, but also add a runtime directive for reasons in the comments below.
2) match your target build platform with the dll, which is first and foremost suitable for your needs. Either 64x or 86x will work, but AnyCpu gets some kind of explicit exception. I am reluctant to use x86 because it is safer and does not have a noticeable effect on what I do with it.
At some point, you may find it useful to make separate projects to isolate dependency problems in the latest version (I think it was April). Do not expect much with any kind of WPF through Visual Studio, as the XAML designer just won't like it. It's quick and nice as soon as you get it, but the latest release is not a problem.
NTN
Berryl
add-ons to supplement apps
<startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup> <runtime> <loadFromRemoteSources enabled="true"/> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089"/> <bindingRedirect oldVersion="2.0.0.0" newVersion="4.0.0.0"/> </dependentAssembly> </assemblyBinding> </runtime>
source share