question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in readme.txt that shows after installing package

See original GitHub issue

Inside readme.txt that is shown when we install ReshSharp package we see how to enable Newtonsoft.JSON serializer:

var client = new RestClient();
client.JsonSerializer = new YourCustomSerializer();

but RestClient doesn’t have JsonSerializer property. This should be changed to:

var request = new RestRequest();
request.JsonSerializer =  new YourCustomSerializer();

Also this allows us to specify serializer for each request. Is there an option to specify default serializer for RestClient? Ideally this should be a property of RestClient as shown in readme.txt, so instead fixing readme.txt just add that property to RestClient.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Misiucommented, Oct 7, 2016

@behoyh what I mean was that in readme.txt is bug (already fixed by PR You mentioned). In my project I’m using Newtonsoft JSON serializer and right now I must set serializer each time I make request (request.JsonSerializer = new YourCustomSerializer();) Ideally I’d like to have option to set globally JsonSerializer that RestSharp will use, in my case I’d like to set Newtonsoft as default and not use build-in. I’d like to set that in one place as default.

0reactions
alexeyzimarevcommented, Oct 25, 2017

The readme is fixed and we will also change how serialisers are customised, it will be in the documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatically Displaying a Readme.txt File During ...
txt file in the root of the package. This file will be displayed in Visual Studio immediately after the package is installed. <file...
Read more >
Nuget package readme.txt is not being updated
To fix the issue, I went to Tools > Options > NuGet Package Manager > General > Clear All NuGet Cache(s). ... After...
Read more >
README.txt no longer showing on project main ...
Today it is not showing. No changes were made to the project during that time, checkins or settings.
Read more >
naming standards - Readme.txt vs. README.txt
The README file is part of a bunch of files a user of a free software package would normally expect to find. Others...
Read more >
Add a README to Your NuGet Package
We're excited to announce that you can finally pack a README.md file in your NuGet package and have it fully rendered on NuGet.org!...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found