Macro to identifier LINQPad/Visual Studio?
I have a simple code that want to copy/share between LINQPad/Jenkins DotNet as script
(https://plugins.jenkins.io/dotnet-as-script/) plugin without modify, is there any macro that check compiling environment is LINQPad?
as in picture, JenkinsManager is a virtual class in Jenkins Dotnet as script
plugin, if provide something like #if LINQPad6
/#if LINQPad
could make this possible(without modify).
Comments
(all uppercase.)
You can add
#if NETCORE
to determine whether you're running LINQPad under .NET Core (i.e., LINQPad 6 rather than LINQPad 5).