Or from the code://css_co /warnaserror+; using System; using System.Diagnostics; using System.Windows.Forms; class Script { ...
Keep in mind that if you execute standalone scripts (not hosted) the global default CS-Script settings for the DefaultArgiuments has an explicit warnings suppression, which may not be what you want Though it is not your case as you are using hosting CS-Script engine.
Regards,
OlegI generate some VB.NET file, which is compiled using CSSCript.
Everything happens programmatically (ie CSScript is used as a library).
Sometimes, the VB.NET that is generated contains warnings such as:
warning BC42322: Runtime errors might occur when converting 'String' to 'System.Collections.Generic.IEnumerable(Of UserDataLayer.IPeak)'
And indeed, the code compiles well but has runtime error!
I would like to avoid running code with such warning.
I thought that
CSScript.GlobalSettings.= false;
would solve my issue, but it does not.
Would it be possible that CSSCript library returns the warnings when compiling the VB.NET piece of code so that we avoid execution?
--
You received this message because you are subscribed to the Google Groups "CS-Script" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cs-script+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.