Skip to content

Instantly share code, notes, and snippets.

@milannankov
Last active March 4, 2016 12:51
Show Gist options
  • Save milannankov/3d1d0ad2ee85a0e08b3d to your computer and use it in GitHub Desktop.
Save milannankov/3d1d0ad2ee85a0e08b3d to your computer and use it in GitHub Desktop.
Developing Logi Plugins With Visual Studio
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Path to Logi app that uses the plugin-->
<PluginDestionationPath>C:\dev\projects\falafel\avail\logi\app\_Plugins</PluginDestionationPath>
<BuildDependsOn>
StopIIS;
CopyPluginFilesToDestination;
$(BuildDependsOn);
StartIIS;
</BuildDependsOn>
</PropertyGroup>
<Target Name="StopIIS">
<Message Text="Stopping IIS..." Importance="normal"/>
<Exec Command="iisreset /stop"/>
</Target>
<Target Name="CopyPluginFilesToDestination">
<ItemGroup>
<PluginFiles Include="$(OutputPath)**\*"></PluginFiles>
</ItemGroup>
<Message Text="Copying plugin files to destination..." Importance="normal"/>
<Copy SourceFiles="@(PluginFiles)" DestinationFolder="$(PluginDestionationPath)\%(RecursiveDir)"></Copy>
</Target>
<Target Name="StartIIS">
<Message Text="Starting IIS..." Importance="normal"/>
<Exec Command="iisreset /start"/>
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment