CommentComponent
An additional boxed comments for scripts.
!
Although SobaScript initially process only specified language constructs among the main data stream (this is one of the main features of the language), for example,
some regular data here, except #[var isGit = #[IO cmd("git rev-parse 2>&1")]]
or here #[File get(".version")]
but
#[var revBuild = #[$(
[System.TimeSpan]::FromTicks('$(
[MSBuild]::Subtract($(tNow), $(tBase))
)')
.TotalMinutes.ToString('0')
)]]
also here #[var FirstName]
and here #[File write("packages/__checked"): ]
anything and everything, there is a comment here,
except for the language constructs you see above.
this component provides additional (container) way to comment something over it.
Available syntax
Multiline container comment:
#[""]
To avoid evaluation for the entire block:
##[" ... "]
Samples,
#["
Example
" Description 1 "
" Description 2 "
"]
#[" Example "]
#["
To restore packages with GetNuTool
It's important for packages of solution-level in VS2015
https://github.com/NuGet/Home/issues/522
TODO: later it can be as part of engine...
"]
#[($([System.Convert]::ToInt32("$(VisualStudioVersion.Replace('.', ''))")) >= 140)
{
#[var msbuild = "$(MSBuildToolsPath)\msbuild.exe"]
#[IO scall(#[var msbuild], "gnt.core /p:ngconfig=\".nuget/packages.config\"", 60)]
}]