The OP has not updated it in over a year but it still works for me. I'm using the free version of VS 2013 for Windows Desktop.
This is what I did to get it to work:
1. Open the JsonRpcGen.sln file
2. Remove the XbmcRt2 and XBMCRPC.RT projects form the solution, they are for windows phone and won't work with this version of VS
3. Install JSON.NET from NuGet
4. Build Solution (F7). You will see many warnings but I got no errors.
5. In Program.cs of the JsonRpcGen project set the args on line 22 to what you need. This works for me:
Code:
args=new string[]{"http://192.168.1.15:8080/jsonrpc","","", "XBMCRPC"};
6. Set JsonRpcGen as startup project and run it (F5). It will create a complete set of classes in your bin\Debug\XBMCRPC directory which are now referenced by the JsonTester project
7. Edit XBMCRPC\List\Item\All.cs replacing
Code:
public class All : XBMCRPC.List.Item.Base
with
Code:
public class All : XBMCRPC.List.Item.BaseFile
8. Edit XBMCRPC\AllConverter.cs replacing
Code:
if (jObject[_multipleInheritanceKey] == null)
{
value = jObject.ToObject<XBMCRPC.List.Item.AllFile>();
}
else
{
value = jObject.ToObject<XBMCRPC.List.Item.AllMedia>();
}
with
Code:
if (jObject[_multipleInheritanceKey] == null)
{
value = jObject.ToObject<XBMCRPC.List.Item.All>();
}
else
{
value = jObject.ToObject<XBMCRPC.List.Item.All>();
}
9. In JsonTester\MainWindow.xaml.cs make a few changes:
In Line 41 enter your correct info for connecting to Xbmc.
Comment out lines 52-60
In Line 75 replace "as All" with "as XBMCRPC.List.Item.All"
10. Go to Xbmc and start a movie or Tv Show playing
11.Set JsonTester as startup project and run it (F5).
12. Press the Test button. After a moment you should see the poster of the playing movie appear in the window
I'm not saying that all these changes are perfectly correct (you still get lots of compiler warnings) but the project works for me. I've not tried everything but what I have tried seems to work fine.