init.ps1 1.1 KB

1234567891011121314151617
  1. param($installPath, $toolsPath, $package, $project)
  2. # NOTE: the design assemblies must be in a \Design folder within \lib.
  3. # But if we do that, the IDEs will add a reference to it (supposedly
  4. # to be fixed in VS2015 Update 1, but we need to make it backwards
  5. # compatible). Therefore, we just copy the assemblies from within
  6. # an init.ps1 (so that it's done after install, every time a user
  7. # opens up the project, since it can be the product of a restore,
  8. # rather than install) to the Design folder.
  9. xcopy /D /Y "$toolsPath\*.Design.dll" "$installPath\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Design\"
  10. xcopy /D /Y "$toolsPath\*.Design.dll" "$installPath\lib\MonoAndroid10\Design\"
  11. xcopy /D /Y "$toolsPath\*.Design.dll" "$installPath\lib\Xamarin.iOS10\Design\"
  12. xcopy /D /Y "$toolsPath\*.Design.dll" "$installPath\lib\MonoTouch10\Design\"
  13. xcopy /D /Y "$toolsPath\*.Design.dll" "$installPath\lib\WP80\Design\"
  14. xcopy /D /Y "$toolsPath\*.Design.dll" "$installPath\lib\wpa81\Design\"
  15. xcopy /D /Y "$toolsPath\*.Design.dll" "$installPath\lib\win81\Design\"