mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 22:13:23 -07:00
Comment Template Replacement
This commit is contained in:
parent
ea65d39ff7
commit
feb498374a
1 changed files with 6 additions and 5 deletions
|
@ -1,30 +1,31 @@
|
|||
<Project>
|
||||
|
||||
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')"/>
|
||||
|
||||
<!--
|
||||
<Target Name="ProcessTemplates" BeforeTargets="PrepareForBuild" Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')">
|
||||
<Message Text="Processing: $(ProjectDir)$(ProjectName).Credentials.template" Importance="high"/>
|
||||
<TemplateFile Template="$(ProjectDir)$(ProjectName).Credentials.template" OutputFilename="$(ProjectDir)$(ProjectName).Credentials.cs" Tokens="@(Tokens)" />
|
||||
|
||||
|
||||
<!-- Read the content of the template -->
|
||||
<!- - Read the content of the template - ->
|
||||
<ReadLinesFromFile File="$(ProjectDir)$(ProjectName).Credentials.template">
|
||||
<Output TaskParameter="Lines" ItemName="TemplateLines"/>
|
||||
</ReadLinesFromFile>
|
||||
|
||||
<!-- Output each line of the file to the log -->
|
||||
<!- - Output each line of the file to the log - ->
|
||||
<Message Text="Contents of $(ProjectDir)$(ProjectName).Credentials.template:" Importance="high"/>
|
||||
<Message Text="%(TemplateLines.Identity)" Importance="high"/>
|
||||
|
||||
|
||||
|
||||
<!-- Read the content of the generated file -->
|
||||
<!- - Read the content of the generated file - ->
|
||||
<ReadLinesFromFile File="$(ProjectDir)$(ProjectName).Credentials.cs">
|
||||
<Output TaskParameter="Lines" ItemName="FileLines"/>
|
||||
</ReadLinesFromFile>
|
||||
|
||||
<!-- Output each line of the file to the log -->
|
||||
<!- - Output each line of the file to the log - ->
|
||||
<Message Text="Contents of $(ProjectDir)$(ProjectName).Credentials.cs:" Importance="high"/>
|
||||
<Message Text="%(FileLines.Identity)" Importance="high"/>
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue