I created a multi-project template and connected it with a wizard.
Everything is working fine, and I can restore packages using update-package -reinstall
in the package console manager.
I'm trying to add Elmah & ApplicationInsights with a condition in the .csproj
file of the template, so that it'll add Elmah or ApplicationInsights based on the answer to the wizard.
I tried doing the following which didn't work:
<Reference Include="elmah, Version=1.2.2, Culture=neutral" Condition="$($ext_custommessage$) == 'LAN'" />
I tried adding it in a <ItemGroup>
element but no dice.
What should I do in this case to add these packages to the .csproj
file?