Comments (5)
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.
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.
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.
@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.
Nice article @natemcmaster
from blog.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.