Skip to content

PackFolder MSBuild Task(s) for embedding Sciter packed binaries into Project resources.

Notifications You must be signed in to change notification settings

wdcossey/SciterCore.PackFolder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SciterCore.PackFolder

PackFolder MSBuild Task(s) for embedding Sciter packed binaries into Project resources.

Build status Nuget

Command Options Default Description
SciterCorePackType binary binary The PackFolder option; Only binary is currently supported, to disable folder packing use any other value (i.e none).
SciterCorePackDirectory absolute or relative path wwwroot Path to the folder you would like to pack.
SciterCorePackCopyToOutput true or false false Useful if you do not want to pack the files and simply want them copied to the $(TargetDir) during the build process.
SciterCoreResourceName SciterResource Name of the resource to be embedded in the output assembly
SciterCorePackFileName $(ProjectName) Name of output file from packfolder (when using binary packing)

Notes:

Unlike Sciter[Sharp], the default directory used for packing/copying is wwwroot (like ASP.Net Core), this can be modified using the SciterCorePackDirectory option.

Example(s):

  1. Default settings
<PropertyGroup>
  <SciterCorePackDirectory>wwwroot</SciterCorePackDirectory>
  <SciterCorePackType>binary</SciterCorePackType>
  <SciterCorePackCopyToOutput>false</SciterCorePackCopyToOutput>
</PropertyGroup>
  1. Packs the folder located at $(ProjectDir)..\common\wwwroot, using binary packing option, conditionally copying the specified folder to the output directory (when debugging)
<PropertyGroup>
  <SciterCorePackDirectory>..\common\wwwroot</SciterCorePackDirectory>
  <SciterCorePackType>binary</SciterCorePackType>
  <SciterCorePackCopyToOutput Condition=" '$(Configuration)' == 'Debug' ">true</SciterCorePackCopyToOutput>
</PropertyGroup>
  1. Copies the folder located at $(ProjectDir)res to the output directory w/o packing
<PropertyGroup>
  <SciterCorePackDirectory>res</SciterCorePackDirectory>
  <SciterCorePackType>none</SciterCorePackType>
  <SciterCorePackCopyToOutput>true</SciterCorePackCopyToOutput>
</PropertyGroup>

About

PackFolder MSBuild Task(s) for embedding Sciter packed binaries into Project resources.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published