Created
June 19, 2020 15:15
-
-
Save ArtemAvramenko/e0ba5b516a79bbc2e3c547fe8f2302f8 to your computer and use it in GitHub Desktop.
Creates binding redirect xml from failed msbuild log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msBuildLog.replace(/^.*"([\w\.]+), Culture=(\w+), PublicKeyToken=(\w+)".*to Version "([\d\.]+)".*/gm, | |
`<dependentAssembly> | |
<assemblyIdentity name="$1" publicKeyToken="$3" culture="$2" /> | |
<bindingRedirect oldVersion="0.0.0.0-$4" newVersion="$4" /> | |
</dependentAssembly>`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment