Page 1 of 1

Using build events to copy into the Content directory

Posted: Tue Apr 13, 2021 10:23 am
by wbarichak
I've been trying out the Salesforce plugin for publishing flare topics directly to Salesforce and have come across an issue with our table styles. If a topic contains a large table, the topic will inevitably exceed the character limit imposed by Salesforce due to all the inline styles. These topics are shared with our HTML and PDF targets, so I don't really want to have to redesign our table styles to be more "lightweight".

What I'm trying to do is use pre-build events to overwrite our default table stylesheet with a "lightweight" version, then use a post-build event to put the original one back.

However, I can't seem to be able to get the prebuild event to overwrite it in the first place.

Code: Select all

for %I in ("$(ProjectDirectory)\Content\Resources\TableStyles\Salesforce\Basic.css") do copy %I "$(ProjectDirectory)\Content\Resources\TableStyles"
Does there look to be anything wrong with this script? Or is the issue that I'm not allowed to write data to the Content directory?