How to run Nuget's "reinstall" command on PowerShell or CMD

281 Views Asked by At

I want to package my base assemblies. However I have to reinstall this packages on project when assembly update. Because I don't change version of assembly.

For this I try adding

Update-Package -reinstall

to pre-build event.

But I took "

The command Update-Package -Reinstall" exited with code 9009.

error.

And I try run

nuget Update-Package -Reinstall

on PowerShell.

This time I took

Unknown command: 'Update-Package'

error.

Any help will be much appreciated.

Thanks in advance.

0

There are 0 best solutions below