[stable-2.14] Ansible.Basic.cs - Fix compile error on PS 7.3.x (#79848) (#79850)

(cherry picked from commit 83fe75db07)
pull/79972/head
Matt Clay 2 years ago committed by GitHub
parent efe09ab86e
commit 05ec8b6808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- Ansible.Basic.cs - Ignore compiler warning (reported as an error) when running under PowerShell 7.3.x.

@ -16,6 +16,10 @@ using Newtonsoft.Json;
using System.Web.Script.Serialization; using System.Web.Script.Serialization;
#endif #endif
// Newtonsoft.Json may reference a different System.Runtime version (6.x) than loaded by PowerShell 7.3 (7.x).
// Ignore CS1701 so the code can be compiled when warnings are reported as errors.
//NoWarn -Name CS1701 -CLR Core
// System.Diagnostics.EventLog.dll reference different versioned dlls that are // System.Diagnostics.EventLog.dll reference different versioned dlls that are
// loaded in PSCore, ignore CS1702 so the code will ignore this warning // loaded in PSCore, ignore CS1702 so the code will ignore this warning
//NoWarn -Name CS1702 -CLR Core //NoWarn -Name CS1702 -CLR Core

Loading…
Cancel
Save