Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

Commented Issue: Remove Lines take 10 minutes to execute [12665]

$
0
0
I have a 1.3 MB SQL file that I am using the RemoveLines task to remove 5 lines of text from the file. For some reason this is taking upwards of 8 minutes. What can I do to figure out why it's taking so long?

```
<ItemGroup>
<!-- schema file-->
<FilesToParse Condition="'$(FileToParse)'!=''" Include="$(FileToParse)"/>
<FilesToParse Condition="'@(FilesToParse)'==''" Include="$(CVToolsOutputDir)\CV Schema\*.sql"/>

<!-- Lines to remove-->
<LinesToRemove Include=":setvar DatabaseName "Blackbaud.CustomFx.CV.Staging.Schema""/>
<LinesToRemove Include=":setvar DefaultFilePrefix "Blackbaud.CustomFx.CV.Staging.Schema""/>
<LinesToRemove Include=":setvar DefaultDataPath """/>
<LinesToRemove Include=":setvar DefaultLogPath """/>
<LinesToRemove Include=":on error exit"/>
</ItemGroup>

<Message Text="$(FileToParse)" />

<!-- Remove lines from a file based on regular expressions -->
<MSBuild.ExtensionPack.FileSystem.File TaskAction="RemoveLines"
Files="@(FilesToParse)"
Lines="@(LinesToRemove)"/>


```
Comments: ** Comment from web user: mikeFourie **

I just uploaded https://www.nuget.org/packages/MSBuild.Extension.Pack/1.4.0


Viewing all articles
Browse latest Browse all 1211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>