0

I copy code from project to another project to use it in our project but I face issue in view , I get this error

'HtmlHelper' does not contain a definition for 'CodeEffects' and no accessible extension method 'CodeEffects' accepting a first argument of type 'HtmlHelper' could be found

(are you missing a using directive or an assembly reference?)

I get this error in when I write

Html.CodeEffects().Styles()
        .Render();

And I get this error

The name 'RuleType' does not exist in the current context

    Html.CodeEffects().RuleEditor()
            .Id("ruleEditor")
            .Mode(RuleType.Execution)
            .ClientOnly(true)
            .Rule(ViewBag.Rule)
            .Render();
Ferdinando
  • 964
  • 1
  • 12
  • 23
Satish
  • 1
  • 1
  • Please make sure you have the same Code Effects references as the demo project has – Alex Jan 11 '21 at 05:48
  • I do it by add reference Install-Package CodeEffects.Rule.Editor.Mvc Install-Package CodeEffects.Rule.Engine.Standard.Trial and add scripts and style – Satish Jan 11 '21 at 07:00
  • I get this error The given ruleset does not contain any rules with type Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (#106)' – Satish Jan 11 '21 at 08:29

0 Answers0