* Consolidate Restore/Build/Pack methods in Tests
Test Fixture now has similar API surface across Restore/Build/Pack commands
* Fix 'dotnet pack' tests when testing under VS IDE
The NuGet Pack artifacts aren't being copied to the test SDK layout,
when building/testing under VS IDE locally and not on CI/CLI.
* Rename 'OutputPath' to 'ProjectExtensionsPath' in 'SimpleTestProjectContext'
The 'OutputPath' property under 'SimpleTestProjectContext' is an alias of 'MSBuildProjectExtensionsPath',
but there is an 'OutputPath' property already in MSBuild project system.
So, Rename 'OutputPath' to 'ProjectExtensionsPath' to better reflect it's intent.
* Refactor 'CreateDotnetToolProject' method & calls in 'DotNetToolTests'
Rename 'source' param to 'packageSources'
Make 'packageSources' param to accept null
Fix template's 'MSBuildProjectExtensionsPath' with explicit Sdk import
Remove redundant parameter labels on 'CreateDotnetToolProject' in 'DotNetToolTests'
* Miscellaneous refactoring and whitespace fixes
cosmetic refactors that are leftover from this patch tree
* Trim trailing whitespaces
Only files in this patch have been trimmed for trailing whitespace
* Fix for issue 8260
* Unit test changes
* Feedback
* Small change to trigger a new test run.
* Fix for issue 8260
* Unit test changes
* Feedback
* Small change to trigger a new test run.
* Add more comments and update Unit Tests.
generating/ updating project lock file
consuming project lock file during restore in VS
Validation of package's sha512 and added error messages as appropriate
Test infra for legacy PackageReference func tests
Base workflow is completed
Added telemetry events for project lock file feature
* 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.
* Use Array.Empty<string>() instead of new string[0]
* Use MSBuildProjectExtensionsPath for RestoreOutputPath
* Change meaning of IVsProjectRestoreInfo.BaseIntermediatePath rather than add a new property to the interface
* update microsoft.build.runtime package to latest stable
* fix tests
* sort project references, remove restore settings from the package spec writer
* Add test for project reference sorting
* Add test for package types affecting the writing of the lock file
Additional sources and fallback folders are added conditionally on TargetFramework, to collect those values the following properties will now be read from the inner build
* RestoreAdditionalProjectSources
* RestoreAdditionalProjectFallbackFolders
* RestoreAdditionalProjectFallbackFoldersExcludes
RestoreAdditionalProjectFallbackFoldersExcludes is a new property added in this change, it will remove values from RestoreAdditionalProjectFallbackFolders.
Fixes https://github.com/NuGet/Home/issues/5596
* 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.
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.