coapp / coapp.powershell

ClrPlus Signing
52 stars 43 forks source link

Missing packages when building CoApp.Powershell.Tools #57

Open yodantauber opened 10 years ago

yodantauber commented 10 years ago

I'm trying to build CoApp.Powershell.Tools from the source currently in the master branch of this GitHub project. It fails due to some missing DLLs; these can be obtained by adding these missing packages to the said project via the NuGet package manager:

However, even after adding these packages, the build fails with the following error:

EXEC : SignTool error : No certificates were found that met all the given criteria.

How can I get this to build?

yodantauber commented 10 years ago

Solution for the signing error: add a self-signed certificate to the Windows key store.

makecert -n "CN=My CA" -a sha1 -eku 1.3.6.1.5.5.7.3.3 -r -sv root.pvk root.cer -ss Root -sr localMachine
makecert -n "CN=My-PowerShell" -ss MY -a sha1 -eku 1.3.6.1.5.5.7.3.3 -iv root.pvk -ic root.cer

The missing packages are still a bug, I guess.

gordonwatts commented 10 years ago

This is old, but what I found was some packages don't come down from nuget during the build! Open up the "manage nuget packages" for the solution. You'll see at the top the little "restore packages" button. Click it. And after that the undefined references disappeared for me.