Closed JesseTG closed 3 years ago
I believe this happens due to a query string length limit of 2048 characters (which is encountered because RoslynQuoter encodes your code into the query string of a GET request). So quoting shorter pieces of code is exactly the right workaround.
Another possible workaround is running RoslynQuoter locally (the limit doesn't seem to apply in that case).
What do you guys think is the best way to improve this experience?
I'd prefer Option 3, but Options 2 and 1 are fine if you're short on time.
Is it possible to send strings to the service as a POST
request?
This seems to be fixed now.
When I give the Roslyn Quoter web app the following code sample...
...and with the following configuration...
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
(false)...and then click the Get Roslyn API calls to generate this code! button, I get this error instead of code output:
As a workaround, I can break the posted snippet into smaller blocks and submit those instead. (I'm not using the generated code verbatim, I'm using it as a reference for my own code.)