Microsoft.CodeAnalysis.CSharp for Linux and MAC

CHINTALA Jyostna D 1 Reputation point
2022-09-27T03:18:53.767+00:00

Hi, i have a requirement where my tool(target .NET4.6.1 Framework) supports CodeSnippet (C#) Compilation.

Currently we use, Microsoft.CodeAnalysis.CSharp for the same.

Could you please suggest what can be used to make this codesnippet compilations and executions to work in Linux and MAC

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,423 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,320 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jack J Jun 24,296 Reputation points Microsoft Vendor
    2022-09-27T06:52:50.363+00:00

    @CHINTALA Jyostna D , thanks for the feedback, based on my search, I find that somebody has asked the question in StackOveflow. The answer to the question is that we need to use roslyn instead.

    Hope the above link could help you.

    Best Regards,
    Jack


    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments