Skip to content

Instantly share code, notes, and snippets.

@jkotas
Last active May 9, 2017 22:57
Show Gist options
  • Save jkotas/d6b5d9584137252d2351c47471c41ef1 to your computer and use it in GitHub Desktop.
Save jkotas/d6b5d9584137252d2351c47471c41ef1 to your computer and use it in GitHub Desktop.
@pushd bin\Release\netcoreapp2.0\win7-x64\publish
rem !!! 2.0.0-preview2-002093-00 version below needs to be updated to the version actually used by the app !!!
copy %userprofile%\.nuget\packages\runtime.win-x64.microsoft.netcore.app\2.0.0-preview2-002093-00\tools\crossgen.exe
@FOR %%I in (*.dll) DO call :RunCrossGen %%~nI
del crossgen.exe
popd
@goto :Exit
:RunCrossGen
crossgen /platform_assemblies_paths %cd% %1.dll
@if %1==System.Private.CoreLib goto: Exit
@if %1==System.Private.CoreLib.ni goto: Exit
@if not exist %1.ni.dll goto :Exit
@del %1.dll
ren %1.ni.dll %1.dll
:Exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment