# PACKAGE ROSLYN

**URL:** <https://forum.alternetsoft.com/t/package-roslyn/166>\
**Category:** AlterNET Studio Support\
**Tags:** wpf, editor\
**Created:** [April 12, 2018, 12:00am UTC](https://forum.alternetsoft.com/t/package-roslyn/166 "2018-04-12T00:00:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablonardone](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/p/606060/32.png) [@pablonardone](https://forum.alternetsoft.com/u/pablonardone)\
**Post date:** [April 12, 2018, 12:00am UTC](https://forum.alternetsoft.com/t/package-roslyn/166/1 "2018-04-12T00:00:00Z")

</div>

I found an error in the syntax editor. I made a simple WPF application with the syntax editor showin syntax highlighting for C#. It is working fine until the moment I install the nuget package Roslyn "Microsoft.CodeAnalysis.CSharp.Scripting". Once this package is installed, the editor no longer applies the syntax highlighting.  
Regards,  
Pablo

---

<div class="post-metadata">

**Author:** ![pablonardone](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/p/606060/32.png) [@pablonardone](https://forum.alternetsoft.com/u/pablonardone)\
**Post date:** [April 12, 2018, 12:00am UTC](https://forum.alternetsoft.com/t/package-roslyn/166/2 "2018-04-12T00:00:00Z")

</div>

If you wish I can send you the example projects that I use to test the problem. To what email address can I send you this project?  
Regards,  
Pablo

---

<div class="post-metadata">

**Author:** ![pablonardone](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/p/606060/32.png) [@pablonardone](https://forum.alternetsoft.com/u/pablonardone)\
**Post date:** [April 12, 2018, 12:00am UTC](https://forum.alternetsoft.com/t/package-roslyn/166/3 "2018-04-12T00:00:00Z")

</div>

Ok, I think I managed to find a solution myself. It seems that I have also to install the nuget package "Microsoft.CodeAnalysis.CSharp.Workspaces v2.7.0"  
Regards,  
Pablo

---

<div class="post-metadata">

**Author:** ![andrew.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/andrew.medvedev/32/28_2.png) [@andrew.medvedev](https://forum.alternetsoft.com/u/andrew.medvedev)\
**Post date:** [April 13, 2018, 12:00am UTC](https://forum.alternetsoft.com/t/package-roslyn/166/4 "2018-04-13T00:00:00Z")

</div>

Hi Pablo,  
Could you please send me the demo project that had a problem with syntax highlighting toandrew.medvedev@alternetsoft.com?  
  
The problem might be related to the fact not all references to Microsoft/Roslyn dlls were added to the project, here is the list of required dlls for C#/Visual Basic parsers to work correctly:  
Microsoft.CodeAnalysis.dll   
Microsoft.CodeAnalysis.Workspaces   
System.ComponentModel.Composition   
System.Composition.AttributedModel.dll   
System.Composition.Convention.dll  
System.Composition.Hosting.dll  
System.Composition.Runtime.dll   
System.Composition.TypedParts.dll   
System.Reflection.Metadata.dll   
for C#  
Microsoft.CodeAnalysis.CSharp   
Microsoft.CodeAnalysis.CSharp.Workspaces   
for VB:  
Microsoft.CodeAnalysis.VisualBasic   
Microsoft.CodeAnalysis.VisualBasic.Workspaces,   
regards,  
Andrew

---

<div class="post-metadata">

**Author:** ![pablonardone](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/p/606060/32.png) [@pablonardone](https://forum.alternetsoft.com/u/pablonardone)\
**Post date:** [April 13, 2018, 12:00am UTC](https://forum.alternetsoft.com/t/package-roslyn/166/5 "2018-04-13T00:00:00Z")

</div>

Thank you Andrew, It was indeed a DLL problem. Once I installed the packages "Microsoft.CodeAnalysis.CSharp.Scripting" and "Microsoft.CodeAnalysis.CSharp.Workspaces  
" all those DLLs you mention were installed.  
Regards,  
Pablo
