Last active
May 9, 2017 22:57
-
-
Save jkotas/d6b5d9584137252d2351c47471c41ef1 to your computer and use it in GitHub Desktop.
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
@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