parent
9a52c6a6f6
commit
632b9f953b
@ -0,0 +1,11 @@
|
||||
<Project>
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>2.15</Version>
|
||||
<Company>Tyrrrz</Company>
|
||||
<Copyright>Copyright (c) Alexey Golub</Copyright>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@ -1,12 +0,0 @@
|
||||
param([string] $newVersion)
|
||||
|
||||
function Replace-TextInFile {
|
||||
param([string] $filePath, [string] $pattern, [string] $replacement)
|
||||
|
||||
$content = [IO.File]::ReadAllText($filePath)
|
||||
$content = [Text.RegularExpressions.Regex]::Replace($content, $pattern, $replacement)
|
||||
[IO.File]::WriteAllText($filePath, $content, [Text.Encoding]::UTF8)
|
||||
}
|
||||
|
||||
Replace-TextInFile "$PSScriptRoot\DiscordChatExporter.Cli\DiscordChatExporter.Cli.csproj" '(?<=<Version>)(.*?)(?=</Version>)' $newVersion
|
||||
Replace-TextInFile "$PSScriptRoot\DiscordChatExporter.Gui\DiscordChatExporter.Gui.csproj" '(?<=<Version>)(.*?)(?=</Version>)' $newVersion
|
Loading…
Reference in new issue