Skip to content

Instantly share code, notes, and snippets.

@rynowak
Created June 30, 2016 21:16
Show Gist options
  • Save rynowak/1300285fcfe97ad2612a5fa36ae393b7 to your computer and use it in GitHub Desktop.
Save rynowak/1300285fcfe97ad2612a5fa36ae393b7 to your computer and use it in GitHub Desktop.
$sdk_dir = get-item "C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.0.0"
$crossgen_exe = get-item "C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.0.0\crossgen.exe"
$pwd = get-item .
foreach ($file in gci . -r -include *.dll)
{
$out =[io.path]::ChangeExtension($file.Name, ".ni.dll")
write-host $crossgen_exe /Platform_Assemblies_Paths """$sdk_dir""" /App_Paths """$pwd"""/out $out $file
& $crossgen_exe /Platform_Assemblies_Paths """$sdk_dir""" /App_Paths """$pwd"""/out $out $file
mv $out $file -force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment