* Signing: Support signature verification on .NET Core
Remove 2nd N.B.T.P package (#2984)
remove WorkaroundNetStandard target, change SDK for build from 3.0 preview to 3.1 stable (#3161)
* remove WorkaroundNetStandard target, change SDK for build from 3.0 preview to 3.1 stable version, fix error; change LockSDKVersion default value from empty string to false; apply Linux workaround in my change
Retarget to netcore5.0 (#3162)
* retarget to netcore5.0; Linux script workaround need to apply for downloading SDK for build
add pkcs and cng packages
Temporary fix on patching SDK, add System.Security.Cryptography.Pkcs.dll and update deps.json, use dll from .nuget/packages
Address PR comments
implement add cert to store on Mac; display openssl version (#3166)
Implement timestamp integrity verification; Implement an equivalent NativeCms; enable signing APIs and tests (#3168)
* implement timestamp integrity verification; implement ManagedCms; enable signing APIs and tests
fix xplat verification branch after rebase (#3191)
Fixes: https://github.com/NuGet/Home/issues/9012
check different cross-platform error messages for self-signed cert test (#3208)
Fixes: https://github.com/NuGet/Home/issues/8933
Xplat Signing/Verification : Fix broken tests for setting privatekey of a X509Certificate2 (#3195)
use workaround to set private key for X509Certificate2 (netcore), change ToRSA to workaround for netcore(especially for non-windows)
enable PathTooLongException test (#3216)
Fixes: https://github.com/NuGet/Home/issues/8920
enable TrustedSignerActionsProvider on netcore, along with tests (#3213)
Fixes: https://github.com/NuGet/Home/issues/8921
Enable SignedPackageIntegrityVerificationTests for netcore5.0 (#3220)
Enable SignedPackageIntegrityVerificationTests for netcore, remove extra preprocessors
Enable timestamp provider test and fix 3 broken tests (#3210)
enable all unit tests; enable 8 more tests; enable timestampProviderTest; fix 3 broken tests in TimestampProviderTests
Fix 4 tests in SignatureTrustAndValidityVerificationProviderTests (#3242)
fix untrusted msg for different platforms
fixed broken tests using utility methods (#3263)
disable outdated tests (#3274)
enable 4 tests on Mac (#3275)
fix 5 broken tests in SignatureTrustAndValidityVerificationProviderTests, add workaround for Linux (#3252)
fix broken test case ExecuteCommandAsync_WithAmbiguousMatch_ThrowsAsync (#3291)
* Enable test ExecuteCommandAsync_WithMultiplePackagesAndInvalidCertificate_RaisesErrorsOnceAsync (#3342)
* enable a test, change the comments; extend test limitation on Linux
* Updated SDK version and removed the hardcoded version when reading from JSON file (#3372)
* update Pkcs package to the preview3 version (#3382)
* fix 2 warnings in CodeAnalysis (#3388)
* fix 2 warnings in CodeAnalysis
* disable dynamic revoke tests on Mac (#3373)
* fix 1 test (#3371)
* Fix more warnings reported by CodeAnalysis (#3393)
* fix string warnings raised by CodeAnalysis
* Retarget xplat verification to netcoreapp5.0 (#3386)
* retarget netcoreapp5.0 (a workaround for net5.0)
* fix all the rest warnings raised by code analysis (#3401)
* Suppress CA1307 warning for string.GetHashCode() method (#3404)
* Linux test failure due to generic exception (#3405)
* add TFM netcoreapp5.0 to N.B.T.Console and N.P.Core projects (#3419)
* add TFM netcoreapp5.0 to N.B.T.Console and N.P.Core projects
* add PIN prompt for netcore (#3389)
* Run dotnet nuget tests on multiple TFMs (#3387)
* enabled mac assertions
* Revert "enabled mac assertions"
This reverts commit d8a52e20c204720f106eaf116d1895f68b557d56.
* Enable test GetCertificateChain_WithUntrustedRoot_Throws on Mac (#3428)
* run signing integration tests cross plat (#3415)
* added GetNonce() to IRfc3161TimestampRequest interface (#3427)
* disable test for netcore (#3445)
* log Status and StatusInformation, fix 2 tests (#3268)
* Disable verification during extraction for Mono, disable a test on Mono (#3451)
* disable verification during extraction on mono,disable a mono test on Mac
* adapt 2 newly added dotnet integration tests for multiple TFMs (#3460)
* remove useless Sdk2x.targets
* get TimestampTests working again (#3218)
* get TimestampTests working again
Fixes: https://github.com/NuGet/Home/issues/8935
* change GetTimestampAsync into internal
* fix runFuncTests.sh and InstallCLIforBuild.sh
* address feedback
* upgrade dotnet 5 to preview4 as preview5 is broken
* Fix exception thrown in SigningTestFixture during disposing (#3464)
Co-authored-by: Kartheek Penagamuri <52756182+kartheekp-ms@users.noreply.github.com>
Co-authored-by: Andy Zivkovic <zivkan@users.noreply.github.com>
Co-authored-by: Kat Marchán <kzm@zkat.tech>
* Move xplat libraries to netstandard2.0 and netcoreapp2.1
* Update dotnet cli to 2.2.200
* Remove CandidateAssemnblyFiles from RAR search paths
Microsoft.Build.Runtime package has an mscorlib.dll content file that
ends up winning over mscorlib.dll in .NET Framework targeting pack
mscorlib.dll if CandidateAssemblyFiles are searched.
Legacy project search paths are left unchanaged because they were not
impacted by this and some of the rely on resolution in GAC or
AssemblyFolders.
* Initialize ILMerge with appropriate reference assemblies
Previously, ILMerge was always default-initialized with current machine's
C:\Windows\Microsoft.NET\Framework\v4.0.30319. Furthermore, in the .NET
Standard case, it was mixed with implementation assemblies on /lib from
a one-off CoreCLR implementation. It was pure luck that the resulting
assembly used to work.
This also removes the one-off CLI that carries the one-off CoreCLR from
the build altogether.
* Disabled failing signing tests on macOS
* Remove explicity reference to system.collections.immutable
* Add the ability to insert to multiple CLI/SDK branches
* try running all tests from dotnet vstest
* use xunitxml.logger to output vstest results in xml format
* modify build to only output xml results across all tests
* keep xplat test format as trx
* fix xml tag
* provide explicit path to xunit xml logger adapter
* change name of test files when they are generated on linux/mac
* update git commit status description
* obtain test run details via rest api
* try powershell task on linuux
* Revert "try powershell task on linuux"
This reverts commit 11a03c75935d6ef7469424562fedf15152a611bb.
* make getting test run id resilient to failures
* enable yaml based builds and testing for nuget
* add retry logic to installation and downgrading of vsix
* fix delay signing on apex DLLs
* add admin switch for vsix installation
* install nuget vsix should not fail on standard error
* fix publishing of e2e result step
* disable v2feedparser third party server tests by not downloading config files
* add initial build number format
* fix e2e publishing for real
* keep running tests on unix if unit or func tests fail
* exit with error if mono tests fail
* remove flaky assertion from mono test
* fix flakiness of mono push command assertion
* fix exit condition
* check non 0 amount of credentials in http request
* fix output location of test results when running mono on mac
* fixing exit code in case of mono failures
* fix error code asignment
* check error code after xunit exits
* remove clearing recycle bin
* add logging for vso
* kill running instances of vs regardless
* do not fail if a test times out
* fix logging typo
* more powershell fixes
* re-enable uwp specific tests
* fix termination condition of tests
* change how test result file gets copied to CI machine
* breaking out of while loop and more logging
* fix path issue for results.html
* more fixes in termination condition
* diagnosing parsing errors for first two tests
* log currently running test and fix log.txt logging
* log to console from log.txt using currentTestId
* trying to fix initial logging issue with one line in realtimeresults
* remove unnecesary diag logging
* fix log formatting and add back write-error in case of failure
* fix count of tests and logging
* fix numbering of test and re-enable commented code
* count tests after all assemblies have been loaded
* adding try catch block
* fix try-catch
* fix numbering for test case factory scenario
* changes to parsing realtimeresults
* first pass at junit xml results
* write out junit test result file
* implement missing API in InternalApiTestHook for project.json migrator
* fix logging test results duration to junit
* start copying log and results file to nuget drop share
* update UwpPackageRefClassLibrary template
* fix project.json migrator uwp e2e test
* fix uwp package ref test
* fix new-item cmdlet to create directory instead of file
* change where to output full log in build drop
* change name of uwpclasslibrary project template
* get screenshot if test times out
* get screenshot only iff running on CI
* fix uwp migrator project json test
* fix nit
* don't queue functional tests via rest api
* fix screen capture type not found exception
* add mono to path explicitly
* echo path in mono and mac and output version
* no need to add mono to path