diff --git a/src/Core/RevEng.Core.80/RevEng.Core.80.csproj b/src/Core/RevEng.Core.80/RevEng.Core.80.csproj index 1992c3e70..ba06eee6a 100644 --- a/src/Core/RevEng.Core.80/RevEng.Core.80.csproj +++ b/src/Core/RevEng.Core.80/RevEng.Core.80.csproj @@ -30,7 +30,7 @@ - + diff --git a/src/Core/RevEng.Core.90/RevEng.Core.90.csproj b/src/Core/RevEng.Core.90/RevEng.Core.90.csproj index 1ea538bc1..3426773eb 100644 --- a/src/Core/RevEng.Core.90/RevEng.Core.90.csproj +++ b/src/Core/RevEng.Core.90/RevEng.Core.90.csproj @@ -30,7 +30,7 @@ - + @@ -43,7 +43,7 @@ - + diff --git a/src/GUI/RevEng.Shared/Providers.cs b/src/GUI/RevEng.Shared/Providers.cs index e63b57199..196bdcd6a 100644 --- a/src/GUI/RevEng.Shared/Providers.cs +++ b/src/GUI/RevEng.Shared/Providers.cs @@ -460,6 +460,10 @@ public static List GetNeededPackages(DatabaseType databaseType, bo pkgVersion = "11.0.0"; break; + case CodeGenerationMode.EFCore9: + pkgVersion = "12.0.0-beta1"; + break; + default: throw new NotImplementedException(); } diff --git a/tools/code-sign.md b/tools/code-sign.md new file mode 100644 index 000000000..bab12093c --- /dev/null +++ b/tools/code-sign.md @@ -0,0 +1,43 @@ +## VSIX code signing + +This is notes about using code signing for a VSIX (and also with NuGet packages, not doing this at the moment, to bound to local PC) + +### VSIX extension code signing + +- Download built .vsix from VSIX Gallery + +- Log in to SimplySign Desktop + +- Run sign (.NET global tool) + +`sign code certificate-store -cfp 0Fxxx -k DEEDXXXX -csp "SimplySign CSP" -t http://time.certum.pl "EF Core Power Tools v2.6.750.vsix" -fl fileslist.txt` + +- Upload to MarketPlace + +## Notes + +fileslist.txt contents: +EFCorePowerTools.dll +RevEng.Common.dll + +-k = Key container id and -csp both displayed by certutil: + +`certutil -user -store my ""` + +-cfp = cert fingerprint, to get, save as binary .cer, then run this PowerShell command: + +`Get-FileHash -Algorithm SHA256 | Format-Table -AutoSize` + +## Certificate renewal notes + +- 365 day cert must be bought again every year +- select automatic identity validation, using face recognition +- required documents: + - utility bill with my name and address on it + - PDF file with link to GitHub profile (profile has my full name on it) + +## Nupkg code signing + +dotnet nuget sign "ErikEJ.EntityFramework.SqlServer.6.6.7.nupkg" --certificate-fingerprint xxxx --timestamper http://time.certum.pl + +--certificate-fingerprint = certificate thumbprint vist i Certmgr/SimplySign diff --git a/tools/code-sign.txt b/tools/code-sign.txt deleted file mode 100644 index 079f1ee9c..000000000 --- a/tools/code-sign.txt +++ /dev/null @@ -1,29 +0,0 @@ -VSIX: - -1: Log in to SimplySign - -2: Export .cer via CertMgr as p7b file - -3: Get info from - -certutil -user -store my "thumbprint" - -4: Run sign - -sign code certificate-store -cfp 0Fxxx -k DEEDXXXX -csp "SimplySign CSP" -t http://time.certum.pl "EF Core Power Tools v2.6.414.vsix" -fl fileslist.txt - -fileslist.txt: -EFCorePowerTools.dll -RevEng.Common.dll - --k = Key container id vist af certutil - certutil -user -store my "" - --cfp = fingerprint: Get-FileHash -Algorithm SHA256 | Format-Table -AutoSize - -5: Upload to MarketPlace - -NUPKG: - -dotnet nuget sign "ErikEJ.EntityFramework.SqlServer.6.6.7.nupkg" --certificate-fingerprint xxxx --timestamper http://time.certum.pl - ---certificate-fingerprint = certificate thumbprint vist i Certmgr/SimplySign