Visual Studio 2013.
I have an external DLL that I reference in the csproj file:
<ItemGroup> <Reference Include="NameOfDll"> <HintPath>Path\To\Dll\NameOfDll.dll</HintPath> </Reference>
I want this link to function when the compiler symbol exists and not function when this compiler symbol does not exist. (To answer the first comment, below, let's say the compiler symbol is called Fred.)
This question [ Conditional link ] made me think that I can add the Condition attribute to the link element shown above, but I canβt determine what value this attribute will give to accomplish what I want.
I would be very happy if you would be given a way to do this in the VS UI, but I will take any method.
c # visual-studio-2013 csproj compiler-directives
cja
source share