Edit the project’s csproj file, and after

 

<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

 

add the following line:


<Import Project="$(DuoCodeDir)\DuoCode.targets" Condition="Exists('$(DuoCodeDir)\DuoCode.targets')" />