Skip to content
#

roslyn

Here are 214 public repositories matching this topic...

MaceWindu
MaceWindu commented Feb 29, 2020

Guys, is it possible to provide some kind of documentation on what changes C# compiler applies to expression tree when it generates Expression object from C# code in IQueryable context?

As ORM developers, who need to work with expressions, from time to time we hit issues, because we receive unexpected values from expressions. Like char or enum values is source code being replaced with integer c

Deilan
Deilan commented Sep 2, 2019

Just followed the instructions as per docs sample:

  1. Install scriptcs via Chocolatey
  2. Copy-Paste code snippet
  3. Install RavenDB.Embedded in a workdir
  4. Launch app.csx

Log:

$ scriptcs -install RavenDB.Embedded
Installed: RavenDB.Embedded
Package installation succeeded.
Saving packages in scriptcs_packages.config...
Creating scriptcs_packages.config...
Added RavenDB.Embedded (
uno
MarqueIV
MarqueIV commented Feb 1, 2020

When you comment out some code, the code comments as you would expect. However, when you uncomment that code again, RoslynPad decides it needs to re-format your entire document. This is unexpected, and unwanted behavior. It requires you to take the additional step of undoing the last command (the formatting) any time you uncomment code.

Formatting should not ever be an automatically-applied

David-Else
David-Else commented Jan 3, 2020

I love that these features are available, but am left very confused. I am coming straight to C# using VS Code on Linux, never used Visual Studio.

Searching the web I can only find blog articles mentioning these features at /www.strathweb.com and a pull request.

How do I know what rules I can use in my editorconfig file using this extension? The best reference I can find seems to be https:/

joseph-kaainoa
joseph-kaainoa commented Mar 13, 2020

The analyzer warns correctly, but the documentation for SCS0007 only has guidance for XmlReader and XmlDocument. The warning also appears for XmlPathDocument/XPathNavigator, which is also insecure by default on .NET version prior to 4.5.2. https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.md#xpathnavigator has guidance on an example fix

JasonBock
JasonBock commented Aug 18, 2019

I've been playing around with this package, and while I think it has some merit and potential, it feels woefully under-documented, and its advice is confusing.

For example, I ran across an interpolated string in my code where the analyzer raised HAA0601. The help link does nothing, nor is there any code fix available, so I really don't know how to fix this. I'm guessing it's because the value t

meziantou
meziantou commented Apr 13, 2020

The new Roslyn API context.Options.AnalyzerConfigOptionsProvider.GetOptions allows to get the configuration from the editorconfig file.

  • Remove the custom editorconfig parser
  • Replace all usage by context.Options.AnalyzerConfigOptionsProvider.GetOptions
  • Update tests
  • Update documentation to use the new names
  • Update <https://github.com/meziantou/editorconfig/bl

Improve this page

Add a description, image, and links to the roslyn topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the roslyn topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.