Skip to content

Commit

Permalink
Change .props version
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Oct 13, 2024
1 parent 031a651 commit 7435bc4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/BuildToolsTasks/BuildMGCBTask.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Text.RegularExpressions;

namespace BuildScripts;

Expand All @@ -7,6 +8,12 @@ public sealed class BuildMGCBTask : FrostingTask<BuildContext>
{
public override void Run(BuildContext context)
{
context.ReplaceRegexInFiles(
@"<MonoGameVersion>([^\s]*)<\/MonoGameVersion>",
"Tools/MonoGame.Content.Builder.Task/MonoGame.Content.Builder.Task.props",
$"<MonoGameVersion>{context.Version}</MonoGameVersion>",
RegexOptions.Singleline
);
context.DotNetPack(context.GetProjectPath(ProjectType.Tools, "MonoGame.Content.Builder"), context.DotNetPackSettings);
context.DotNetPack(context.GetProjectPath(ProjectType.Tools, "MonoGame.Content.Builder.Task"), context.DotNetPackSettings);
}
Expand Down

0 comments on commit 7435bc4

Please sign in to comment.