Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Timeline for Using System.Dynamic in Roslyn

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Aug 21, 2018 at 11:03 comment added Renzo Ciot I tried running the Rush code in a .net core 2.1 application console. I have added Microsoft.CSharp.dll reference in the project and also between the MetadataFileReference in the code, but I always get the same error.
Sep 24, 2017 at 7:16 comment added Jon H Exactly right. My issue was using this inside the Roslyn engine and what is referenced in the encompassing application isn't the same thing.
Sep 22, 2017 at 22:11 comment added NH. @JonH so we should add that line to AssemblyInfo.cs or somewhere instead of referencing the dll?
Apr 6, 2016 at 13:02 comment added Jon H FWIW adding Microsoft.CSharp.dll means var scriptOptions = ScriptOptions.Default.WithReferences("Microsoft.CSharp") i.e. drop the dll. Stumped me for a few mins :)
Jan 12, 2016 at 15:06 comment added Don Rolling I don't know if this fixed the issue or not, but I added <add namespace="Microsoft.CSharp" /> into my Views/Web.config <namespaces> node. The compiler error is gone now.
Sep 4, 2015 at 1:30 comment added kjbartel And if Microsoft gave an error message which told you this is would make things so much easier.
Apr 4, 2014 at 14:10 vote accept Rush Frisby
Apr 4, 2014 at 14:06 comment added khellang Yep, this is somethings that's been required since dynamic was introduced.
Apr 4, 2014 at 14:04 history answered Alberto CC BY-SA 3.0