Skip to content

Instantly share code, notes, and snippets.

@TheWover
Last active October 12, 2020 16:00
Show Gist options
  • Save TheWover/bd171acc3c0863136fb0f99eb769f704 to your computer and use it in GitHub Desktop.
Save TheWover/bd171acc3c0863136fb0f99eb769f704 to your computer and use it in GitHub Desktop.
msbuild XSLT Execute From URL. Courtesy of an ephemeral Casey Smith tweet
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Target Name="Example">
<ItemGroup>
<XmlFiles Include="https://gist.githubusercontent.com/caseysmithrc/d6ef2fdffa6c054c6996b0f2fb7dd45d/raw/6ce40c15487d67df6771ff205de5ea8a8c6f29c0/customers.xml" />
</ItemGroup>
<PropertyGroup>
<XslFile>https://gist.githubusercontent.com/caseysmithrc/d6ef2fdffa6c054c6996b0f2fb7dd45d/raw/48abcd2a9575e1e5db25596cbaa02f6066bbe9e2/script.xsl</XslFile>
</PropertyGroup>
<XslTransformation
OutputPaths="output.%(XmlFiles.FileName).html"
XmlInputPaths="%(XmlFiles.Identity)"
XslInputPath="$(XslFile)"
/>
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment