prismicio-community / dotnet-kit

Community maintained development kit for Prismic and the .NET Framework
https://prismic.io
Apache License 2.0
4 stars 2 forks source link

prismic.dll f# version #2

Closed bondarewicz closed 10 years ago

bondarewicz commented 10 years ago

Hi There, Please see below queries from our team, their encountered few issues during installation/usage of .net package.

Implemented prismic dlls in .net as per the given reference (https://github.com/prismicio/dotnet-kit )

As per given document install prismic package for .net

image002

After installing when we build application below error occurred this is because prismic.dll itseft use 4.3 version of Fsharp but package is installing lower version(4.0)

image001

Then installed highest version.

image003

Build is successful but if when we are calling API we are getting below error is showing .

image004

We are unable to see any proper document or code example on prismic website so it might be possible that we have missed something on implementation ...

Could you please suggest on this error…

/cc @Ashusharma8 @AnkurRastogi @CSrinivasulu

Thanks in advance --Lukasz

jdelhomme commented 10 years ago

Hi Lukasz,

I will have a look to this dependency problem and let you know.

For your information, we have a starter kit for asp.net mvc here.

Thank you Julien

jdelhomme commented 10 years ago

Hi Lukasz,

Version 2.0.7 of FSharp.Data is needed (here, 2.0.8 has been installed by the package). I will fix the prismic package as soon as possible. Meanwhile, you can still update manually :

Install-Package FSharp.Data -Version 2.0.7

Sorry for the inconvenience. Thank you very much Julien

AnkurRastogi commented 10 years ago

Hi Julien ,

implemented asp.net MVC kit and trying to install version 2.0.7. but its giving error(see below link ).

I am using .net framework 4.0 and MVC 4. I have also tried this in lower version (.net frame work 3.5 and MVC 2) but error is coming...

capture

PM> Install-Package FSharp.Data -Version 2.0.7 Install-Package : 'FSharp.Data' already has a dependency defined for 'Zlib.Portable'. At line:1 char:16

could you please suggest me...

jdelhomme commented 10 years ago

Hi, I saw in the screenshot above that you do not have the latest version of nuget. Could you please update it and tell me if you still have the problem? Thank you Julien

AnkurRastogi commented 10 years ago

Hi Julien,

Issue is resolved now.. thanks... :)

Thanks, Ankur

jdelhomme commented 10 years ago

Hi Ankur, You're welcome. Julien

bondarewicz commented 10 years ago

Thanks @jdelhomme :+1:

AnkurRastogi commented 10 years ago

hi , just continue with the issue..

We have implemented prismic.ddls in our project (Asp.net MVC with C#). we are calling the API successfully and getting data from prismic. Issue is: if I use "DocumentAsHtml" of PrismicDocument class I am getting the row data but if want to extract data from fragments (as shown in the screen shot) I am unable to extract it via C# code...

prismic

could you please help me in this..

Thanks, Ankur

jdelhomme commented 10 years ago

Hi Ankur,

If I understand well, you should find what you are looking for by importing prismic.extension and using GetXX extension methods on prismic.Api.Document.

Let me know, Julien