Reputation:
Until last year we used a an MsBuild file for our build definitions. Since this year we want to use the new vNext buildsystem in the TFS 2015.
And this is my question:
In the xaml file we have a line like
<UsingTask TaskName="ReplaceTextInFile" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
to use it later in the xaml like
<ReplaceTextInFile
InputFilename="$(someFolder)$(someOtherFolder)\someFile.config"
OutputFilename="$(someFolder)$(someOtherFolder)\someFile.config"
MatchExpression="$(somePattern)"
ReplacementText="$(someText)"
/>
How do I implement this to the new vNext???
Upvotes: 1
Views: 187
Reputation: 114641
Because this is an MsBuild snippet you've posted, you could simply use the Run MsBuild task and execute the old project file.
But if you are set on porting, then you have a few options:
-match
and -replace
.Upvotes: 3