Граф коммитов

214 Коммитов

Автор SHA1 Сообщение Дата
Yang Lyu 67e8286cdb Change some dependency versions to resolve build issue 2018-06-05 17:19:34 -07:00
Yang Lyu d0ae8bed2c Merge with the master's new updated 2018-06-05 16:50:58 -07:00
Yang Lyu 87a27f2143 Log a bug for re-open solution issue 2018-06-05 16:26:06 -07:00
Yang Lyu 4c551898a8 Retarget to etstandard 2.0, netcoreapp2.0;net461 2018-06-05 15:11:48 -07:00
bhsubra ebf1784f57 Enable UI 2018-06-05 09:43:51 -07:00
Raquel Almeida 2daa8f720f
Stress and Perf fixes (#85)
* Move package versions to build/dependencies.props

* Move common properties to a shared props file.

* Adds LibraryManager.msbuild to orchestrate the build.
  - Allows building the VSIX or the Build package separately.
Move common msbuild properties to dir.props
Moves the NerdBank.GitVersioning package to dir.props so it
is included in all source packages.

* Add global tool project
- Adds support for building custom msbuild tasks in the repo.
- Adds Shim Generation for global tool.

* Extract PackageVersion from NerdBank.GitVersioning tasks
- Generate a RepoInfo.props as part of building the RepoTasks project.
- Enables passing the right version to the Shim Generation

* Implementation for Init, Restore and Clean commands
Encapsulate IO operations in HostEnvironment

* Update Appveyor.yml to download CLI version 2.1.300

* Command Implementations
- Implemented Install and Uninstall
- Changed LibraryInstallationState to be a public class
- Added overloaded uninstall method to uninstall based on provider

* Early PR Feedback
- renamed dir.props to Directory.Build.props
- better handling for --debug option
- merged testdependencies.props to dependencies.props
- return ProductVersion for --version
- report no-ops during uninstall
- removed Nerdbank.GitVersioning reference from individual project files

* Implementations of Cache clean and list commands.

* Rename dotnet-libman to libman

* Replace dotnet libman to libman in help text

* Exposed api to install a Library via Manifest.
- Reverted LibraryInstallationState to be internal again.
- Reverted AddLibrary() method to be internal again.
Install command validates library ids and provides suggesstions
Changed Cache List command to accept --libraries and --files options

* Add tests for libman commands.
Fixes issues with InstallLibrary api in Manifest.
 - Prevents installing duplicate libraries.
 - Removes unnecessary provider and destination from library if it matches the defaults.

* Handle malformed libman.json file in BaseCommand

* Change appveyor build script to use newer dotnet install

* Fix appveyor.yml to run tests
Also fix a unit test in ManifestTests

* - Fix string comparison to normalize newlines
- Add a target to build Test projects
- Change Appveyor to run tests on individual assemblies
- Downgrade mstest to 1.1.14'

* Use search results to resolve partial name to libraryId
during Install

* Add support for using library display name for uninstall
command.
- Add LibraryResolver to resolve installed libraries using a 'display name'
- Add user choice prompt for uninstall when more than one libraries are resolved.

* Add Update command implementation
- Add UpdateLibraryToLatestVersion to Manifest

* Add support to specify --to-version with Update command

* Add xml documentation in libman project

* Command fixes:
- Update validates that the new library can actually be installed before uninstalling old one.
- Install Command outputs what was installed and where
- Uninstall command outputs what was uninstalled
- Install command validates that the files specified are correct for the library
  - If not, shows a list of valid files for that library.

* Add tests for validating Install and Update changes

* Fix HostInteraction to delete empty folders

* Changed LibraryResolver behavior to return id matches and resolved
name matches together.

Added TestCleanup for tests in libman.Test

* Prevent installing different versions of same library in same location

* Fix LibmanInstallTests.TestInstall_Duplicate test

* Stress and Perf fixes
Adding a CacheService
Ading Unit Tests for Cache Service
Deleting Empty folders (Not working for all peoject types yet!)
Improving Logging
Adding detection for up to date files

* Removing a file that was checked in by mistake

* Fix InstallCommand message to not print displayName

* Add description to cache command

* Fix validation message in Update command.

* Change help text
- Remove provider option from uninstall and update commands
- Change remarks for uninstall and update commands
- Change --to-version => --to

* Move conflicting library checks to Manifest
- Restore now fails with error for conflicting libraries.
- InstallAsync checks conflicting libraries.

* Update restore library message to indicate destination

* Change library conflict detection to be file based
Also, update messages for install and restore failures

* Added tests for file based conflict detection

* Addressing code review feedback

* More code review feedback

* More changes on File deleting from Project

* Batching of adding files to project to improve perf.

* Batching of adding files to project to improve perf.

* Few more fixes

* Renaming of methods

* Refactoring and fixes:
- Fix SaveAsync method to preserve null values for
destination and provider for libraries.
- Use FileHelpers for HostInteraction

* Move invalid files check from CLI to only CDNJS provider.

* Remove invalid file check from CLI update command

* Change update command to use manifest snapshots

* Remove unused UpdateLibrary code and tests

* PR Feedback
 - Changed expiration for cache.
 - Fixed CacheServiceMetadataComparer
 - Removed IDisposable from WebRequestHandler
 - Fix awaits on null conditional operator
 - Moved hard coded strings to resources files

* More feedback changes

* Code clean up

* Fixing unit tests

* Fixing Unit Tests

* More code review updates

* Deleting unused strings

* Updating resource files

* Updating resource files

* strings updates
2018-06-05 07:24:48 -07:00
Yang Lyu 08b6f3c617 Change the namespace according to the project name change. Adding the testinitialize function. 2018-06-04 10:53:08 -07:00
Yang Lyu 01fa85aa72 Change back to use the active completion list because for large list it will first be invoked as Loading... 2018-06-03 21:34:51 -07:00
Yang Lyu 0400c6bcc8 Modify the test file content 2018-06-03 16:42:45 -07:00
Yang Lyu f697eaa22a Resolve the reviewed issues 2018-06-01 19:29:03 -07:00
Yang Lyu 3c05cf84b6 Exclude the integration test. 2018-06-01 11:26:13 -07:00
Yang Lyu 268f8c83eb Test package load failure 2018-05-31 17:43:15 -07:00
Yang Lyu 11bae355c2 Testing package load failure 2018-05-31 16:41:02 -07:00
Yang Lyu 1bf8ca42eb Adding the nuget.config to the project 2018-05-31 10:50:13 -07:00
Yang Lyu b9e332d08e Adding the integration tests project 2018-05-30 16:13:53 -07:00
Raquel Almeida 81d5eba3cb
Version validation and error handling. (#51)
* Version validation and error handling.

* Fixes based on Unit Tests failures.

* Code review feedback.
2018-04-05 16:50:32 -07:00
Raquel Almeida babccc1d6d
Dev/raquela/unit tests (#28)
* Set EmbedInteropType to true for some of the VS binaries.

* Fixing product bug and Unit tests.
Bug 585258: Cache is not populated if Files library property is specified.
2018-03-16 16:37:35 -07:00
Jimmy Lewis 1d7c239d75 Add Nerdbank.GitVersioning to all projects 2018-03-14 15:22:52 -07:00
Raquel Almeida e31e7fcd54
Dev/raquela/schema changes (#20)
* Manifest schema changes and crash fix.

* Few more changes for manifest schema changes

* Addressing code review feedback
2018-03-13 18:22:29 -07:00
alexgav 54da9012bd Fixing bug 568284 (nullref on Clean command). (#14)
* Fixing bug 568284 (nullref on Clean command).

It's a bit ugly but I think it's OK for preview 3. Not sure if we should propagate the update failure out and fail the entire Clean operation (may have cleaned some but not all libraries - success or failure?).

We should test the FileSystem provider though as well. The code says Files should be required, not sure if it's enforced.

* Addressing code review feedback.

* Addressing code review feedback.
2018-03-13 17:18:27 -07:00
Raquel Almeida 613faea7cc Changing manifest file name from library.json to libman.json (#18) 2018-03-12 13:07:11 -07:00
Raquel Almeida 3d07b28405
Updating github url after repo rename. (#9) 2018-02-26 11:04:57 -08:00
Raquel Almeida baf5b4bc5c
Dev/raquela/rebranding (#8)
* Renaming namespaces, project names, class  names and strings: PackageInstaller -> PackageManager

* Renaming one more namespace: Microsoft.Web.LibraryManager.Vsix

* Renaming solution and folders

* Fixing project paths in the .sln and test test projects

* Renaming test folders

* Renaming few more references to Package Installer.

* More renaming to LibraryManager

* Addressing more code review feedback. Few more places to rename.

* Undo of unintended change (local workaround for crash bug 568284).
2018-02-22 10:16:50 -08:00
Mike Lorbetske 7fa229bdf6 All UI basically working (#2)
* All UI basically working

* Fix some focus issues and file provider search results

* Undo change to treeview

* Add watermarks, fix focus behaviors & flyout sizes

* Cleanup, fix tests
2017-05-10 10:55:14 -07:00
Mads Kristensen 66541b67f2 Updated NuGet packages 2017-05-04 11:27:36 -07:00
Mads Kristensen 332a95c7df Disallow paths outside working directory
Added line numbers to errors
2017-05-03 08:51:05 -07:00
Mads Kristensen 2b8bb76421 Added NuGet package id property to providers 2017-04-21 13:56:13 -07:00
Mads Kristensen 34dc9b2bf6 Fixing threading issue in build task 2017-04-20 14:16:40 -07:00
Mads Kristensen 0ec113a9a4 Added build task unit test project 2017-04-20 08:56:53 -07:00
Mads Kristensen f07b0e77c4 Updated readme 2017-04-19 13:50:22 -07:00
Mads Kristensen 59aab0c3a0 Fixed unit test 2017-04-19 09:44:14 -07:00
Mads Kristensen cf1ee800ab Fixed JSON completion for "path" value 2017-04-18 11:41:08 -07:00
Mads Kristensen 972fc826ae Added more tests 2017-04-18 10:58:22 -07:00
Mads Kristensen c5359fa276 Added more tests 2017-04-18 09:31:39 -07:00
Mads Kristensen 63290d2213 Added completion to filesystem library id 2017-04-17 14:24:08 -07:00
Mads Kristensen c52b964ed2 Added CompletionController 2017-04-17 10:47:47 -07:00
Mads Kristensen 974e169aaf Added more unit tests 2017-04-17 08:29:30 -07:00
Mads Kristensen c02405cb17 Added more tests 2017-04-17 08:13:15 -07:00
Mads Kristensen eb215eee67 Fixed issues from static code analysis 2017-04-14 21:22:41 -07:00
Mads Kristensen 4d0901a45c Refactorings 2017-04-14 20:01:48 -07:00
Mads Kristensen 95e962150a Refactorings 2017-04-14 15:13:42 -07:00
Mads Kristensen 5df9eaac91 Namespace renmae 2017-04-10 13:21:05 -07:00
Mads Kristensen 4a5bd2c8c1 cross-compiling unit tests to include .NET4.6 2017-04-07 15:12:57 -07:00
Mads Kristensen f4b62ae6ce Refactorings 2017-04-07 08:55:46 -07:00
Mads Kristensen 583b40a966 Support for default provider 2017-04-06 16:11:33 -07:00
Mads Kristensen 90117db66c Made files array optional for Cdnjs provider 2017-04-06 13:58:53 -07:00
Mads Kristensen db312873c9 Added MSBuild project 2017-04-05 20:50:00 -07:00
Mads Kristensen 9b7b0e3088 Made mocks vitual 2017-04-05 15:41:11 -07:00
Mads Kristensen 7fe58a55e3 Added mock for ILibraryCatalog 2017-04-05 15:40:06 -07:00
Mads Kristensen 24c2a862d6 Added support for prerelease updates 2017-04-05 14:23:53 -07:00
Mads Kristensen 0f280cd7b3 Light bulb for checking updates 2017-04-05 10:30:53 -07:00
Mads Kristensen 6de844716e Added ILibraryGroup mock class 2017-04-03 20:43:57 -07:00
Mads Kristensen c2fb383661 Removed ILibraryDisplayInfo 2017-04-03 20:38:18 -07:00
Mads Kristensen 9bfb5dd247 Refactorings 2017-04-03 09:03:07 -07:00
Mads Kristensen 7b6b473aea Simplified contracts 2017-04-03 08:27:09 -07:00
Mads Kristensen 3b31a39343 Updates based on initial code review 2017-03-31 14:23:51 -07:00
Mads Kristensen 54bfe1a491 Renamed CompletionSpan -> Completion 2017-03-31 11:36:07 -07:00
Mads Kristensen a4bedec996 Added Uninstall method on Manifest.cs 2017-03-31 11:34:47 -07:00
Mads Kristensen 846e8186dd Updated nuget package links 2017-03-31 10:30:59 -07:00
Mads Kristensen 6954ed7443 Added repo URLs to vsix and nuget packages 2017-03-31 10:25:27 -07:00
Mads Kristensen d97099b14b Added license headers to all .cs files 2017-03-31 10:22:15 -07:00
Mads Kristensen 383124caca Added DeleteFile method to IHostInteraction 2017-03-31 09:20:56 -07:00
Mads Kristensen d5aca7b277 Added description to completion 2017-03-31 08:49:42 -07:00
Mads Kristensen b8ec6208be Add project files. 2017-03-31 08:05:13 -07:00