Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
363 stars 301 forks source link

Using "Execute CSharp Script Code". Removed reference to Newtonsoft.Json (which I don't use) and now get compilation error. #1098

Closed charring closed 1 month ago

charring commented 3 months ago

Describe the Bug

Error:

execute_csharp_script_code.csx(11,82): error CS0012: The type 'JToken' is defined in an assembly that is not referenced. You must add a reference to assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.

On this line:

var triggerOutputs = (await context.GetTriggerResults().ConfigureAwait(false)).Outputs;

Plan Type

Standard

Steps to Reproduce the Bug or Issue

  1. Add a CSharp Script step
  2. remove lines

    r "Newtonsoft.Json"

    and using Newtonsoft.Json.Linq;

Workflow JSON

No response

Screenshots or Videos

No response

Additional context

No response

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.