42 Commits
Author SHA1 Message Date
Jeff Kluge cc8f616db8 Fix false error for transitively pinned dependency with no version (#7004) 2025-12-12 21:35:31 +00:00
Andy Zivkovic ba112de7ee Make nullable enabled by default across entire repo (#6960) 2025-11-20 21:13:26 +10:30
Nikolche Kolev 544bf8be42 Remove the 3rd framework from all projects, target .NET 9.0 as the only .NET Core framework. (#6703) 2025-08-14 09:47:59 -07:00
Nikolche Kolev 139771d57f PrunePackageReference improvements - Pack applies PrivateAssets=all to prunable direct references (#6540) 2025-07-10 19:41:07 -07:00
Nikolche KolevandSimon Cropp d762526b40 Simplify Linq expressions and enable the IDE0120 rule (#6214)
Co-authored-by: Simon Cropp <simon.cropp@gmail.com>
2025-01-14 14:23:59 -08:00
Nikolche Kolev db124df742 Fix reporting of downgrades for dependencies with VersionRange.All (#6045) 2024-09-23 22:19:38 +00:00
Jonatan GonzalezandAndy Zivkovic c8dccb7126 Enable GenerateDocumentationFile (#6000)
Enable GenerateDocumentationFile, allowing for IDE0005 to be caught during builds. Cleaned up unnecessary using statements. 

Co-authored-by: Andy Zivkovic <zivkan@users.noreply.github.com>
2024-09-09 12:05:32 -07:00
Donnie Goodson 6af47d6bf6 Transitive dependencies in GPF are automatically source mapped by actions in PM UI (#5459) 2023-10-27 08:20:31 -07:00
Donnie Goodson 4499a40459 Test architecture improvements, flakiness reduction, and VSSDKTestFx adoption (#4994) 2023-01-17 13:01:16 -08:00
Nikolche Kolev aad349b574 Remove NuGet.Core from the NuGet.Commandline.Test (#4577) 2022-04-19 10:06:53 -07:00
Fernando Aguilar a7572c4cec Adds local package source to failing tests in NuGetPackageManagerTests (#4561)
Fixes https://github.com/NuGet/Home/issues/11739 ; added async prefix to tests:
- TestPacManPreviewUpdate_AllowedVersionsConstraint_RestrictHighestVersionAsync
- TestPacManPreviewUpdateWithAllowedVersionsConstraintAsync
2022-04-12 19:49:42 -07:00
Nikolche Kolev 702e250d00 Add restore support for C++/CLI .NET Core projects (#4076) 2021-06-08 15:49:39 -07:00
heng-liu fc2672f9c8 Enable more tests in PackageExtractorTests for net5.0 (#3669) 2020-09-16 16:06:03 -07:00
Kat Marchán 65abcc61f7 automatic formatting (#3587)
Fixes: https://github.com/NuGet/Client.Engineering/issues/487
2020-08-26 15:08:11 -07:00
Kat Marchán 1f12139600 net5.0-platform support (#3479)
Fixes: https://github.com/NuGet/Home/issues/9682
2020-07-10 11:22:01 -07:00
donnie-msft 5650cf88fa Functional Test improvements for Snupkg and File Not Found scenarios (#3129) 2019-11-21 17:00:37 -08:00
Kartheek Penagamuri 7c4add7c54 new error code 5037 to notify users of missing nuspec file during restore (#2969)
* Added new error code 5037 to notify users of missing nuspec file during restore.
2019-08-12 11:06:37 -07:00
Damon Tivel 84e79d2a3c Test: clean up after test execution (#2947)
Fix https://github.com/NuGet/Home/issues/8363.
2019-07-22 12:13:14 -07:00
Nikolche Kolev f6e732f928 FrameworkReference support in pack & restore (#2745) 2019-03-27 21:44:39 -07:00
Ashish Jain 4872d5c1c7 Installing a development dependency should skip compile time assets (#2466) 2018-10-12 09:58:44 -07:00
Patricio Beltran f7143c48d8 Refactor AllowListVerificationProvider (#2454)
* SignedPackageVerifierSettings should not have allowList information

* allowListVerificationProvider should only receive one allowList
2018-10-09 15:32:05 -05:00
Ashish Jain ad246e6c0d Fix dotnet add package command to commit restore (#2394)
* Fix dotnet add package command to commit restore

Currently dotnet add package runs a preview restore, update project file, but doesn't commit the restore artifacts. So next time, a restore happens, it runs a full restore again and then commit.

This PR fixes it by committing restore as part of add package command.
2018-08-24 09:51:19 -07:00
Patricio Beltran e634dc3334 Add e2e apex tests for repository signatures and countersignatures (#2165) 2018-04-17 15:13:47 -07:00
Patricio Beltran 91316ff8e9 Change CreatePackage to CreatePackageAsync and make every caller async (#2162) 2018-04-13 17:17:47 -07:00
Ankit Mishra d970cfdf3b Add support for verifying signed package against Repository Signature Info (#2139)
## Bug
Fixes: https://github.com/NuGet/Home/issues/6700
Regression: No

## Fix
Details: This PR adds the following - 

1.  Updates SignedPackageVerifierSettings to contain 4 additional fields -
     - `bool AllowNoRepositoryCertificateList`
     - `bool AllowNoClientCertificateList`
     - `IReadOnlyList<VerificationAllowListEntry> RepositoryCertificateList`
     - `IReadOnlyList<VerificationAllowListEntry> ClientCertificateList`
     The new fields allow us to pass client and repository allow lists to `AllowListVerificationProvider`
2. Refactor `ISignatureVerificationProvider` to accept allow lists via `SignedPackageVerifierSettings`
3. Add `RepositorySignatureInfoUtility` to process `RepositorySignatureInfo` and generate effective `SignedPackageVerifierSettings`.
4. Update `PackageExtractor` to check if the download source has `RepositorySignatureInfo` and use that to verify signed packages.
5. Supporting refactoring and tests.
2018-04-06 09:10:58 -07:00
Zhi Li 1f323c6644 pass source to PackageExtractor and create RepoSignInfoProvider 2018-03-27 10:20:17 -07:00
Patricio Beltran 748ceea1e4 Enable repository countersignatures that can be timestamped (#2090) 2018-03-14 14:52:35 -07:00
Patricio Beltran f11c10c3d9 Change signer methods to SigningUtility (#2058)
Change signer methods to SigningUtility
2018-02-28 18:51:29 -08:00
Patricio Beltran 9f5c5b0a93 Let signer decide if a signature needs to be overwritten (#2051)
* Let signer decide if a signature needs to be overwritten
2018-02-27 16:10:31 -08:00
Zhi Li 98fd6e140c added signing telemetry data 2018-02-06 16:12:12 -08:00
Patricio Beltran f17fda1950 Add apex tests for signing (#1938)
Add apex tests for signing
2018-01-23 18:21:07 -06:00
Nikolche Kolev b82a7274e5 Dotnet Tool impementation (#1900)
We introduce a new package type for dotnet tools, with compatible asset as "tools/tfm/rid/any.extension.

That package is only compatible with a special project type that the CLI will create, DotnetToolReference.
1 package per project, that package has to be a dotnettool.
DotnetTooReference works almost exactly the same way as Package Reference with the above restrictions in place.
Notable: Tool Restore does not generate Msbuild props and targets, for failures
No no-op artifacts for tool restore.
2018-01-18 12:52:07 -08:00
Justin Emgarten c28753f030 Merge branch 'dev' into dev-feature-signing 2017-11-21 11:43:14 -08:00
Jose 9b8c7a834e Fix pack to preserve timestamps (#1811)
* Fix pack to preserve timestamps

See Bug#5240

* Add LastWriteTime to IPackageFile

* Initialize _lastWriteTime at declaration point
2017-11-17 10:36:21 -08:00
Zhi Li e91dbf3ec3 Add sign verification for unzip 2017-10-31 12:56:36 -07:00
Justin Emgarten 923a314ff3 Add support for package signing with X509 certificates 2017-10-23 23:37:29 -07:00
Ankit Mishra 8d714434df Revert "add verify for package install and restore"
This reverts commit fe4f5cc78a.
2017-10-13 16:57:04 -07:00
Zhi Li fe4f5cc78a add verify for package install and restore 2017-10-13 16:30:35 -07:00
Justin Emgarten e85b8d1580 Add basic signed package APIs
* Package signer
* Test signature verification
2017-10-12 01:36:18 -07:00
Ankit Mishra bfaa227808 Adding Test coverage to Warnings and Errors code paths and improving filtering/logging code (#1484)
* Adds functional tests on NuGet.CommandLine to cover scenarios related to warning properties.
* Improved Console and RestoreSummary logging code to use helper methods.
* Added more filtering in WarningPropertiesCollection to not upgrade Warnings if their NuGetLogCode is Undefined.
* Improved the default NuGetLogCode for RestoreLogMessages which are below LogLevel.Warning to NuGetLogCode.Undefined.
2017-06-12 14:18:24 -07:00
Damon Tivel b82c33ef0d Make PackageReaderBase and helper classes async (#1362) 2017-05-05 11:04:27 -07:00
Justin Emgarten 7c5404ba65 Merging test utilities into Test.Utility
Merging all test utilities together. Test.Utility is now a common layer that all tests can use that sits between the product projects and test projects.
2017-03-30 18:03:12 -07:00