Giter Site home page Giter Site logo

Comments (5)

BalassaMarton avatar BalassaMarton commented on June 12, 2024

After some more experimenting, it looks like the Newtonsoft.Json dependency is causing this error, not just any dependency. But it is still unclear where to look for the problem, since Newtonsoft.Json targets both netstandard and net45.

from blog.

natemcmaster avatar natemcmaster commented on June 12, 2024

This is a great question, one I've received a few times. MSBuild tasks with assembly dependencies introduce a new level of complexity. I haven't addresses this one quite yet in my material, but this has been asked enough that I'm considering writing a detailed post on this subject.

In the meantime, checkout this answer to the same question: https://stackoverflow.com/a/45750930/2526265. In a nutshell, you need Newtonsoft.Json.dll in the folder next to your task assembly.

from blog.

BalassaMarton avatar BalassaMarton commented on June 12, 2024

I got this error after copying the dlls next to the task dll. However, I've downgraded to the 9.x version of Newtonsoft.Json and now it works perfectly, so it's probably something with the dependencies of this package.

from blog.

natemcmaster avatar natemcmaster commented on June 12, 2024

@BalassaMarton took me a while to get this, but finally wrote up my thoughts on tasks with dependencies. See http://www.natemcmaster.com/blog/2017/11/11/msbuild-task-with-dependencies/

from blog.

BalassaMarton avatar BalassaMarton commented on June 12, 2024

Nice article @natemcmaster

from blog.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.