Skip to content

Instantly share code, notes, and snippets.

@epidemicz
Created April 7, 2016 15:48
Show Gist options
  • Save epidemicz/a5d1989f97efe654ed17aca11eb2e338 to your computer and use it in GitHub Desktop.
Save epidemicz/a5d1989f97efe654ed17aca11eb2e338 to your computer and use it in GitHub Desktop.
@ECHO off
REM You will need to change this
SET VsDevCmd="D:\vs2015\Common7\Tools\VsDevCmd.bat"
REM ---------------------------------------------------
SET xml_file=%1
CALL %VsDevCmd%
FOR %%i IN ("%xml_file%") DO (
SET filename=%%~ni
)
SET xsd_file=%filename%.xsd
REM ECHO xsd_file=%xsd_file%
xsd %xml_file%
xsd %xsd_file% /classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment