Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

ContentFul wyam newtonsoft json version issue #8

Open
phanisiddapu opened this issue Jun 19, 2019 · 0 comments
Open

ContentFul wyam newtonsoft json version issue #8

phanisiddapu opened this issue Jun 19, 2019 · 0 comments

Comments

@phanisiddapu
Copy link

Trying out the basic use case, when i refer any newtonsoft json objects. I am getting

**

Exception during execution: System.AggregateException: One or more errors occurred. (One or more errors occurred. (Exception has been thrown by the target of an invocation.)) (Exception has been thrown by the target of an invocation.) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationFailedException: One or more compilation failures occurred:

**

error CS1705: Assembly 'Contentful.Wyam' with identity 'Contentful.Wyam, Version=0.7.0.0, Culture=neutral, PublicKeyToken=null' uses 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version than referenced assembly 'Newtonsoft.Json' with identity 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'

Tried all versions of newtonsoft and binding redirects
ContentModel
Short Text: Body, Title, Slug
Media Many Files: Images

My Config
// Body code
Pipelines.Add("Contentful",
Contentful("api delivery key", "space key")
.WithContentField("body")
.WithContentType("blogPost"),
Markdown(),
Excerpt()
.WithOuterHtml(false),
Meta("Body", @doc.Content),
Trace(@doc.Content),
Trace(@doc["slug"]),
Merge(ReadFiles("post.cshtml")),
Razor(),
WriteFiles($"{@doc["slug"]}.html")

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant