Open soroshsabz opened 3 years ago
Cake .NET Tool, Cake runner for .NET Core
1.30
Linux, Windows
64-Bit
No response
ITNOA
I have below code
#if (HOO) #tool "nuget:?package=NUnit.ConsoleRunner&version=3.11.1" #tool "nuget:?package=vswhere&version=2.8.4" #addin nuget:?package=Cake.EntityFramework&version=0.3.0 #endif
As you can see HOO is define anywhere.
but Cake.EntityFramework installed anyway. :(
Cake.EntityFramework
I expect if HOO does not define, all directive in #if statement does not run.
HOO
#if
addin
related to #1860
related to https://github.com/dotnet/roslyn/issues/57467#issue-1039501645
related to #1766
Prerequisites
Cake runner
Cake .NET Tool, Cake runner for .NET Core
Cake version
1.30
Operating system
Linux, Windows
Operating system architecture
64-Bit
CI Server
No response
What are you seeing?
ITNOA
I have below code
As you can see HOO is define anywhere.
but
Cake.EntityFramework
installed anyway. :(What is expected?
I expect if
HOO
does not define, all directive in#if
statement does not run.Steps to Reproduce
#if
directive on undefined symboladdin
in#if
scopeOutput log
No response