Skip to content

Instantly share code, notes, and snippets.

@davepermen
Created April 4, 2024 19:01
Show Gist options
  • Save davepermen/b3a524932b4dccb2179042b7994966b2 to your computer and use it in GitHub Desktop.
Save davepermen/b3a524932b4dccb2179042b7994966b2 to your computer and use it in GitHub Desktop.
<Project>
<PropertyGroup>
<Domain>files.conesoft.net</Domain>
<Hosting>D:\Hosting\Deployment\Websites</Hosting>
<WebPublishMethod>FileSystem</WebPublishMethod>
<PublishUrl>bin\Release\net8.0\publish\</PublishUrl>
</PropertyGroup>
<Target Name="ZipPublishOutput" AfterTargets="FileSystemPublish">
<ZipDirectory Overwrite="true" SourceDirectory="$(publishUrl)" DestinationFile="$(Hosting)\$(Domain).zip" />
<RemoveDir Directories="$(publishUrl)" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment