c# - Cannot define a class or member that utilizes 'dynamic' compiler required type 'System.Runtime.CompilerServices.DynamicAttribute' not found -
i'm facing issue asp.net core targeting framework 4.6.1.
cannot define class or member utilizes 'dynamic' because compiler required type 'system.runtime.compilerservices.dynamicattribute' cannot found. missing reference? + public class _views_home_index_cshtml : microsoft.aspnetcore.mvc.razor.razorpage predefined type 'system.boolean' not defined or imported + public class _views_home_index_cshtml : microsoft.aspnetcore.mvc.razor.razorpage type 'object' defined in assembly not referenced. must add reference assembly 'mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089'. + public class _views_home_index_cshtml : microsoft.aspnetcore.mvc.razor.razorpage type 'object' defined in assembly not referenced. must add reference assembly 'mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089'. + public microsoft.aspnetcore.mvc.viewfeatures.imodelexpressionprovider modelexpressionprovider { get; private set; } predefined type 'system.object' not defined or imported + public microsoft.aspnetcore.mvc.viewfeatures.imodelexpressionprovider modelexpressionprovider { get; private set; } predefined type 'system.void' not defined or imported + public microsoft.aspnetcore.mvc.viewfeatures.imodelexpressionprovider modelexpressionprovider { get; private set; } type 'object' defined in assembly not referenced. must add reference assembly 'mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089'.
the project on bitbucket , when teammate pull project doesn't facing issue.
you need reference microsoft.csharp dll .net 4.6.1 project dynamic work.
Comments
Post a Comment