public override async Task <IAsset <string> > Process(BuildContext context, IAsset <string> asset) { var content = await asset.Load(); var processed = $"{Path.GetFileNameWithoutExtension(content)}!!"; return(context.Asset(asset.Identifier, asset.Configuration, processed)); }
public override Task <IEnumerable <IAsset> > Import(BuildContext context, AssetSource source) { var asset = context.Asset(source.Path, source.Configuration, source.Path); return(Task.FromResult(Enumerable.Repeat((IAsset)asset, 1))); }