Skip to content
#

roslyn

Here are 220 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

uno
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 (
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:/

基于 Roslyn 的 C# 动态程序集构建库,该库允许开发者在运行时使用 C# 代码构建域 / 程序集 / 类 / 结构体 / 枚举 / 接口 / 方法等,使得程序在运行的时候可以增加新的模块及功能。Natasha 集成了域管理/插件管理,可以实现域隔离,域卸载,热拔插等功能。 该库遵循完整的编译流程,提供完整的错误提示, 可自动添加引用,完善的数据结构构建模板让开发者只专注于程序集脚本的编写,兼容 stanadard2.0 / netcoreapp3.0+, 跨平台,统一、简便的链式 API。 且我们会尽快修复您的问题及回复您的 issue.

  • Updated Jul 6, 2020
  • C#
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

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.