Precompile Views MSBuild Task

11 views
Skip to first unread message

Kyle LeNeau

unread,
Nov 6, 2009, 2:17:44 PM11/6/09
to Spark View Engine Dev
I have created a first pass at an MSBuild precompile views task and am
wondering if the spark project is the right home for it or should I
explore the MSBuild Community Tasks? I guess I am looking for some
feedback on the topic. The task I created can be ran like any other
MSBuild along side a build or deploy process. There is a sample below
of the target I am using in the sample. If this should be a part of
the spark core, how can I submit the code and sample I have. I assume
this would also need some documentation on how to use it. I know the
project uses Git, would be as simple as submitting a branch/fork/
patch?


<Target Name="precompileviews" DependsOnTargets="build">
<Message
Text="=========================================================" />
<Message Text="Precompile Views &quot;$(project)&quot;,
configuration &quot;$(Configuration)&quot;"/>
<Message
Text="=========================================================" />

<Message Text="Get Target Input" />
<Message Text="@(targetOutputs)" />

<PrecompileSparkTask InputAssembly="@(targetOutputs)"
SettingsConfig="$(srcRoot)\web.config"
OutputAssembly="$(binDir)\PrecompiledViewsMSBuild.Views.dll"
ViewLocation="$(srcRoot)\Views"/>
</Target>

Morten Maxild

unread,
Nov 6, 2009, 4:52:31 PM11/6/09
to spar...@googlegroups.com
Fork and push to a feature branch in your public fork is the way to share:-)
Reply all
Reply to author
Forward
0 new messages