home.social

#roslyn — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #roslyn, aggregated by home.social.

fetched live
  1. Создаём DSL на C#: Диагностика

    Создаю собственный DSL на C#: в этой части добавим инструменты диагностики. Построим инспектор дерева компонентов, научимся изменять состояния и параметры прямо во время работы приложения, подключим метрики через System.Diagnostics и настроим #line, чтобы исключения указывали на исходный .akbura-файл, а не на сгенерированный C#.

    habr.com/ru/articles/1066332/

    #dsl #краснозеленые_деревья #парсеры #компиляторы #avalonia #roslyn

  2. [Перевод] Я превратил Slack в интерактивную консоль для работающего .NET-приложения

    Автор объясняет, как он использовал скрипты Roslyn и режим сокетов Slack для проверки, отладки и взаимодействия с запущенным приложением.

    habr.com/ru/articles/1060700/

    #roslyn #slack #net #net_development #приложения #скрипты #сокеты #отладка_кода #repl #c#

  3. Создаём DSL на C#: Добавляем семантику

    Создаю собственный DSL на C#: рассказываю о том, как я добавляю семантическую модель. Рассказываю архитектуру семантической модели.

    habr.com/ru/articles/1058512/

    #dsl #краснозеленые_деревья #парсеры #синтаксические_деревья #компиляторы #roslyn #семантическая_модель

  4. Here is a video someone made about some command line arguments I deleted the other week, and a nuget package I uploaded.

    I’m basically famous!

    youtube.com/watch?v=i6n-w6Tq7F0

    #nvim #razor #dotnet #roslyn

  5. Here is a video someone made about some command line arguments I deleted the other week, and a nuget package I uploaded.

    I’m basically famous!

    youtube.com/watch?v=i6n-w6Tq7F0

    #nvim #razor #dotnet #roslyn

  6. In about one hour, combining the powers of Native AOT and System.CommandLine, we will turn Inspector Roslyn into a standalone CLI tool.

    2026-04-22 (Wednesday)
    at 17:00 UTC

    #2codeOrNot2code #dotnet #CSharp #Roslyn #NuGet

    youtube.com/watch?v=DAyZ_6KvpiM

  7. In about one hour, combining the powers of Native AOT and System.CommandLine, we will turn Inspector Roslyn into a standalone CLI tool.

    2026-04-22 (Wednesday)
    at 17:00 UTC

    #2codeOrNot2code #dotnet #CSharp #Roslyn #NuGet

    youtube.com/watch?v=DAyZ_6KvpiM

  8. Based on this poll, we will be removing support for Visual Studio 2019 and out-of-support versions of Visual Studio 2022 from `xunit.analyzers` sometime before the final 2.0.0 release.

    dotnet.social/@xunit/116350131

    #DotNet #Roslyn #Analyzer #CSharp #UnitTest

  9. Based on this poll, we will be removing support for Visual Studio 2019 and out-of-support versions of Visual Studio 2022 from `xunit.analyzers` sometime before the final 2.0.0 release.

    dotnet.social/@xunit/116350131

    #DotNet #Roslyn #Analyzer #CSharp #UnitTest

  10. Hmm, just hit the first analyzer that needs relatively new version of Roslyn because of a new language feature I need to support (collection expression syntax) and now I'm not sure what to do. The existing analyzers target Roslyn 3.11 to support VS2019 16.11, which is very much not capable of running that. We'll need Roslyn 4.8, with a minimum supported VS version of 2022 17.8.

    Time to bump up the minimum? What happens if I try to run Roslyn 4.8 analyzers in 2019? 🤔

    #DotNet #Roslyn #Analyzers

  11. Hmm, just hit the first analyzer that needs relatively new version of Roslyn because of a new language feature I need to support (collection expression syntax) and now I'm not sure what to do. The existing analyzers target Roslyn 3.11 to support VS2019 16.11, which is very much not capable of running that. We'll need Roslyn 4.8, with a minimum supported VS version of 2022 17.8.

    Time to bump up the minimum? What happens if I try to run Roslyn 4.8 analyzers in 2019? 🤔

    #DotNet #Roslyn #Analyzers

  12. Я сделал язык программирования ради статьи на Хабр

    Меня зовут Степан, я C# профессионал уже более 7 лет на рынке и рассказываю об этом в Telegram каналe StepOne . Иногда мне скучно на работе, потому что перекладывать JSON это слишком просто, даже если микросервисы. Я отучился на системного программиста-компиляторщика и столкнулся с отсутствием спроса рынка на такие навыки. Но выбрал быть счастливым и написал язык программирования hydrascript , чтобы JSON гонялся даже в докере на макбуке. Решение под катом вас точно удивит! dotnet tool install hydrascript -g

    habr.com/ru/articles/1010530/

    #interpreter #compiler #backend #json #csharp #dotnet #roslyn #api #docker #cgi

  13. On 2026's April Fools' Day, Eva and Stefan Code 'n' Chat about everything you (don't) want to know about ImmutableArray<T>.

    2026-04-01 (Wednesday)
    at 17:00 UTC

    #2codeOrNot2code #dotnet #CSharp #Roslyn #NuGet

    youtube.com/watch?v=m2P4HrbqKI0

  14. On 2026's April Fools' Day, Eva and Stefan Code 'n' Chat about everything you (don't) want to know about ImmutableArray<T>.

    2026-04-01 (Wednesday)
    at 17:00 UTC

    #2codeOrNot2code #dotnet #CSharp #Roslyn #NuGet

    youtube.com/watch?v=m2P4HrbqKI0

  15. I want to mark as many of my test methods "static" as possible (why pay to instantiate an object you're never going to use?), so I turned on CA1822, and I'm surprised at the fact that it's only marking about half of the eligible methods. #DotNet #CSharp #Roslyn

  16. I want to mark as many of my test methods "static" as possible (why pay to instantiate an object you're never going to use?), so I turned on CA1822, and I'm surprised at the fact that it's only marking about half of the eligible methods. #DotNet #CSharp #Roslyn

  17. @DanMorgan Admiral #Cain of #Pegasus was portrayed beautifully by #MichelleForbes. We should not overlook that both, #Adama and President #Roslyn, wanted #Cain assassinated, just as #Cain wanted #Adama gone. Just shows how brutal and cut throat the politics and power play were in the 12 colonies of #Cyrannus star system.

    Makes one wonder about #Adama's speech at the start of the series, where he rhetorically ask whether and humanity is worth saving.

    #SoSayWeAll #BestSciFi #Galactica

  18. @DanMorgan Admiral #Cain of #Pegasus was portrayed beautifully by #MichelleForbes. We should not overlook that both, #Adama and President #Roslyn, wanted #Cain assassinated, just as #Cain wanted #Adama gone. Just shows how brutal and cut throat the politics and power play were in the 12 colonies of #Cyrannus star system.

    Makes one wonder about #Adama's speech at the start of the series, where he rhetorically ask whether and humanity is worth saving.

    #SoSayWeAll #BestSciFi #Galactica

  19. Even more #Roslyn:
    This time, we keep safety and security in mind and replace Reflection-based inspections for Compiler Extensions with the Workspaces APIs.

    2026-03-17 (Tuesday)
    at 18:00 UTC

    #2codeOrNot2code #dotnet #CSharp

    youtube.com/watch?v=1xjwAmfbBLc

  20. Even more #Roslyn:
    This time, we keep safety and security in mind and replace Reflection-based inspections for Compiler Extensions with the Workspaces APIs.

    2026-03-17 (Tuesday)
    at 18:00 UTC

    #2codeOrNot2code #dotnet #CSharp

    youtube.com/watch?v=1xjwAmfbBLc

  21. Elvis-модификатор доступа в C#

    Доброго Здоровья! Предполагается, что статья будет интересна тем, кто любит четкие контракты в своих проектах, строгость и чистоту в инкапсуляции, новые подходы в ООП. А также тем, кто уважает функциональное программирование. Эти темы и затрагиваются в предлагаемом «Elvis-модификаторе доступа», реализованным через Roslyn Analyzer. Все исходники и nuget пакеты прилагаются.

    habr.com/ru/articles/1008298/

    #C# #roslyn #oop #analyser #fp #elvis

  22. With the previously acquired skill to inspect Roslyn Components and all their Compiler Extensions,
    it is time for Inspector Roslyn to apply this skill to NuGet Packages.

    2026-03-03 (Tuesday)
    at 18:00 UTC

    #2codeOrNot2code #dotnet #CSharp #Roslyn #NuGet

    youtube.com/watch?v=14DUvyvvVyk

  23. With the previously acquired skill to inspect Roslyn Components and all their Compiler Extensions,
    it is time for Inspector Roslyn to apply this skill to NuGet Packages.

    2026-03-03 (Tuesday)
    at 18:00 UTC

    #2codeOrNot2code #dotnet #CSharp #Roslyn #NuGet

    youtube.com/watch?v=14DUvyvvVyk

  24. 【MMD R18】ロズリン Roslyn ❤ Ladie Alien【Tower of Fantasy 4K 60FPS】

    🎔 Want More Lewd?: patreon.com/StiickyNoteMMD

    📹 Watch Here:
    youtu.be/Yxb7TvsPHcM

    Roslyn from Tower of Fantasy performing Ladie Alien ❤️
    Hope you enjoy the animation!

    #TowerOfFantasy #幻塔 #Roslyn #ロズリン #ToF #MMD #R18

  25. Previously, Inspector Roslyn was introduced to Source Generators.
    The time has come to meet even more Compiler Extensions such as Code-Actions, Code-Completions, and the good old Diagnostics.

    2026-02-17 (Tuesday)
    at 18:00 UTC

    #2codeOrNot2code #dotnet #CSharp #Roslyn

    youtube.com/watch?v=x9wLxO4FadM

  26. Previously, Inspector Roslyn was introduced to Source Generators.
    The time has come to meet even more Compiler Extensions such as Code-Actions, Code-Completions, and the good old Diagnostics.

    2026-02-17 (Tuesday)
    at 18:00 UTC

    #2codeOrNot2code #dotnet #CSharp #Roslyn

    youtube.com/watch?v=x9wLxO4FadM

  27. Here's a weird one with #Roslyn, not sure if it's a bug or a misunderstanding. Hopefully someone here has some insight.

    If I have an INamedTypeSymbol for "object?[]", and I do `.ToDisplayString()` on it, I get back "object?[]". However, if I do `.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat)`, I get back "object[]" (it has dropped the nullability of object).

    Bug? Misunderstanding? Shouldn't code generators always be using SymbolDisplayFormat.FullyQualifiedFormat?

    #DotNet

  28. Here's a weird one with #Roslyn, not sure if it's a bug or a misunderstanding. Hopefully someone here has some insight.

    If I have an INamedTypeSymbol for "object?[]", and I do `.ToDisplayString()` on it, I get back "object?[]". However, if I do `.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat)`, I get back "object[]" (it has dropped the nullability of object).

    Bug? Misunderstanding? Shouldn't code generators always be using SymbolDisplayFormat.FullyQualifiedFormat?

    #DotNet

  29. #Roslyn code generator question:

    I'm noticing that ISymbol.MetadataToken is always returning 0 for me, for both classes and methods. Obviously at runtime those things have non-0 metadata token values.

    Is it expected that they'll always return 0? Is this a consequence of building for Native AOT?

  30. #Roslyn code generator question:

    I'm noticing that ISymbol.MetadataToken is always returning 0 for me, for both classes and methods. Obviously at runtime those things have non-0 metadata token values.

    Is it expected that they'll always return 0? Is this a consequence of building for Native AOT?

  31. And we're back!
    Starting into the premiere Episode of Season 2026 of #2codeOrNot2code by announcing our brand-new and year-long (and probably beyond) project, perhaps even our Opus Magnum.

    on 2026-02-03 (Tuesday)
    at 18:00 UTC

    #dotnet #CSharp #Roslyn

    youtube.com/watch?v=5rgb5RcbpoA

  32. And we're back!
    Starting into the premiere Episode of Season 2026 of #2codeOrNot2code by announcing our brand-new and year-long (and probably beyond) project, perhaps even our Opus Magnum.

    on 2026-02-03 (Tuesday)
    at 18:00 UTC

    #dotnet #CSharp #Roslyn

    youtube.com/watch?v=5rgb5RcbpoA

  33. I can't decide which should be true, but surely one of them should be:

    * Code marked with [GeneratedCode] should be ignored by code coverage, or
    * Generated code should be marked with [ExcludeFromCodeCoverage]

    I'm looking at you, code generators for [LoggerMessage] and [GeneratedRegex] and/or Microsoft.Testing.Extensions.CodeCoverage. 👀

    #DotNet #Roslyn #SourceGenerators

  34. I can't decide which should be true, but surely one of them should be:

    * Code marked with [GeneratedCode] should be ignored by code coverage, or
    * Generated code should be marked with [ExcludeFromCodeCoverage]

    I'm looking at you, code generators for [LoggerMessage] and [GeneratedRegex] and/or Microsoft.Testing.Extensions.CodeCoverage. 👀

    #DotNet #Roslyn #SourceGenerators

  35. Day 11 of the C# Advent Calendar 2025: csadvent.christmas/

    It's December, and as the final episode of this season, Eva and @0x_F0 build a Roslyn Source Generator polyfilling a Throw-Helper live, at 18:00 UTC.

    #CSAdvent #CSharp #dotnet #Roslyn

    youtube.com/watch?v=sB37iAIl5SE

  36. Создаём DSL на C#

    Создаю собственный DSL на C#: рассказываю о том, как закладывается фундамент языка и как подойти к проекту подобного масштаба.

    habr.com/ru/articles/970332/

    #dsl #Краснозеленые_деревья #парсеры #синтаксические_деревья #компиляторы #roslyn

  37. 💡 Pro tip for .NET devs: If you randomly hit file locking issues during builds, lingering MSBuild worker nodes may be the cause. 🧹 Kill them: dotnet build-server shutdown 🛠 Disable them: setx MSBUILDDISABLENODEREUSE 1 #dotnet #MSBuild #VisualStudio #Roslyn

  38. It's time for the multi-targeting finale, dear dedicated #dotnet developers.
    We're concluding our journey of packing #MSBuild .props and .targets for versioning of #Roslyn components like #CSharp analyzers.

    Date: 2025-11-10 (Monday)
    Time: 18:00 (UTC)

    #2codeOrNot2code

    youtube.com/watch?v=RuOl6ZQv4Zw

  39. An introduction to #dotnet Source Generators. How to eliminate boilerplate, boost performance, and replace runtime reflection with compile-time code generation.

    #dotnet #roslyn

    roxeem.com/2025/11/08/incremen

  40. An introduction to #dotnet Source Generators. How to eliminate boilerplate, boost performance, and replace runtime reflection with compile-time code generation.

    #dotnet #roslyn

    roxeem.com/2025/11/08/incremen

  41. Заводим друзей в C# (аки C++ friend, однако, более того)

    Премьера! Драматическое признание в любви (к Ф...). 100 рублей и 100_000 юаней! Реализации аналогов друзей в C#, различные подходы, сравнительный анализ. Элвис жив! Вах, заходи дорогой(-ая), другом будешь!

    habr.com/ru/articles/961264/

    #c# #Friend #roslyn #analyzers

  42. Review: Landmark Diner in Roslyn on Long Island

    Landmark Diner on Long Island. Photo Credit: D. Benjamin Miller, Wikimedia Commons. Landmark Diner is a historic eatery located in Roslyn on Long Island, and it is Greek-American owned b…
    #dining #cooking #diet #food #MediterraneanCuisine #American #doubledecker #eatery #Greek #landmarkdiner #longisland #Mediterranean #mediterraneancuisine #roslyn #sustainable
    diningandcooking.com/2339368/r

  43. Probably unrelated, but does anybody know why the 4.x releases of Microsoft.CodeAnalysis.Analyzers have been unlisted from NuGet? nuget.org/packages/Microsoft.C

    We are still dependent on this for our "build & test with latest" validation.

    #DotNet #Roslyn #Analyzers

  44. Anybody ever seen a situation where a Roslyn analyzer will report via the compiler but nothing shows up inside Visual Studio? All the other analyzers are working as expected but this one new one just doesn't seem to report in VS.

    #DotNet #Roslyn #Analyzer #VisualStudio

  45. Tried a new Thai eat not far from Flagstaff. Really nice menu. Delish. Can recommend.

    #Melbourne #Roslyn