Bug in readme.txt that shows after installing package
See original GitHub issueInside 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:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.The readme is fixed and we will also change how serialisers are customised, it will be in the documentation.