-
Notifications
You must be signed in to change notification settings - Fork 926
TransformJsx task failing unexpectedly. #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I recently saw the same thing on my own site after upgrading Newtonsoft.Json (JSON.NET) past version 5.0.4. Downgrading to JSON.NET version 5.0.4 made it work as expected so there's probably some incompatibility somewhere. I'll take a look. |
Hey Daniel, thanks for the suggestion. Unfortunately, JSON.NET 5.0.4 is incompatible with Microsoft.Owin.Security (version 3.0.0) and others. I also tried upgrading from JSON.NET 6.0.4 to 6.0.8 because it looked like there were some 'unsupported type' fixes. No luck there either. If it weren't for the security requirements of this project, I would just downgrade to 5.0.4. Thanks for your attention on the issue, I will check back. |
I'll try to take a look this weekend and see if I can figure out what's up :) |
… if an exception is caught. References #104
That was pretty tricky to track down, but it did end up being an issue with the JSON.NET version: The "real" error message was masked by that try-catch block in that segment of code. The This actually seems somewhat specific to the MSBuild task which is probably why I haven't gotten other reports about it (not many people use the MSBuild task). NuGet automatically inserts assembly bindings into the Web.config which means assembly version issues don't really happen with sites (or desktop apps) as long as the API remains backwards-compatible between versions. MSBuild can't really use assembly bindings. Anyways, 5021d39 fixed the code so the two code paths do the same thing (which made it start throwing the correct error about Newtonsoft.Json) and 292cf49 updated the referenced version of Newtonsoft.Json. The new build will be on the development package server shortly (instructions here), or you can build it yourself if you like. |
Awesome Daniel, thanks for the support. I will give it a whirl in the
|
I gave the development package a whirl but bumped into the same issue (the update might not have propagated yet?). I did build it and my issue has been resolved, thanks again. |
Yeah it looks like the build on the dev server is broken even though I have Regards, On Mon, Mar 16, 2015 at 8:31 AM, Michael Ross [email protected]
|
Hi all,
I'm getting a handful of errors when attempting to build a Web API project (ASP.NET 4).

I am using the default TransformJsx.proj:

I have attempted adding a TargetDir property as seen here(http://reactjs.net/guides/msbuild.html) but had no luck.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: