<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <VersionSvgTemplate>$(RepoRoot)/resources/images/version_badge.svg</VersionSvgTemplate>
  </PropertyGroup>

  <Target Name="GenerateVersionBadge"
          DependsOnTargets="Init">
    <Message Text="$(VersionBadge)"  />

    <ReplaceFileContents
      InputFile="$(VersionSvgTemplate)"
      DestinationFile="$(VersionBadge)"
      ReplacementPatterns="ver_number"
      ReplacementStrings="$(SdkVersion)" />
  </Target>
</Project>