<Project>



	<Target Name="PostPublish" AfterTargets="Publish">
		<ItemGroup>
			<!-- setting up the variable for convenience -->
			<PluginsFiles Include="bin\$(Configuration)\$(TargetFramework)\Plugins\**" />
			<GatewayPluginsFiles Include="bin\$(Configuration)\$(TargetFramework)\GatewayPlugins\**" />
		</ItemGroup>
		<PropertyGroup>
		</PropertyGroup>
		<Copy SourceFiles="@(PluginsFiles)" DestinationFolder="$(PublishDir)Plugins\%(RecursiveDir)" />
		<Copy SourceFiles="@(GatewayPluginsFiles)" DestinationFolder="$(PublishDir)GatewayPlugins\%(RecursiveDir)" />

	</Target>


	<Target Name="RemoveXmlDocs1" AfterTargets="Build">
		<ItemGroup>
			<XmlFilesToDelete Include="$(TargetDir)*.xml" />
		</ItemGroup>
		<Delete Files="@(XmlFilesToDelete)" />
	</Target>

	<Target Name="RemoveXmlDocs2" AfterTargets="Publish">
		<ItemGroup>
			<XmlFilesToDelete Include="$(PublishDir)*.xml" />
		</ItemGroup>
		<Delete Files="@(XmlFilesToDelete)" />
	</Target>

	
</Project>
