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

67 Коммитов

Автор SHA1 Сообщение Дата
Taylor Southwick 981dd02c4f
Ensure analyzer packaging works for CS/VB (#535)
This change removes CSharp from the name of the package as well as ensures the analzyer/codefixers are added for vb projects when added as NuGet packages.
2021-05-19 15:51:15 -07:00
Taylor Southwick acd941fd5a
Require windows TFM if MyType requires that (#529) 2021-05-18 09:11:53 -07:00
Ken Schlobohm 05c627f902
api analyzer roslyn (#515) 2021-05-17 15:19:45 -05:00
Taylor Southwick a9d1857d4d
Ensure restores are run when needed (#525)
This change moves the nuget reference retrieval back to non-async as the only async pathway we need is to ensure the restore is done. That has been moved now behind the the actual properties/methods that require that, which have in turn been turned into async.
2021-05-17 10:26:00 -07:00
David Pine 66a1a2f024
Remove the .upgrade-assistant JSON file when complete, and only create it when needed. (#522)
This should be implicit and based on whether or not it's completed. When completed, delete it - it's only useful between project runs in the context of a solution.
2021-05-17 10:23:45 -07:00
Taylor Southwick ce4801788a
Abstract away extension handling (#517)
This removes the need for extensions to be too aware of the fact that they are themselves extensions. This incorporates a builder pattern to register configuration that can be added to by other extensions and provides simpler access patterns.
2021-05-13 08:52:00 -07:00
Taylor Southwick dcd6e14abe
Move namespace for dependency analyzers (#520) 2021-05-12 16:16:45 -07:00
Taylor Southwick 4598a23e60
Expose PackageReferencesAnalyzer as IDependencyAnalyzer (#518)
This change refactors the package analyzer infrastructure to generalize it to any dependency. As part of this, the state and analyzer types are being moved to the abstractions layer so extensions may add implementations if they want.
2021-05-12 10:03:16 -07:00
Mike Rousos cf64a5bd79
Add RazorSourceUpdater tests (#491)
Fixes #456
2021-05-05 16:09:05 -04:00
Taylor Southwick 10fd0c8d40
Enable LTS/Current/Preview selection (#469)
This change does a couple of things to enable LTS/Current/Preview selection:

- Adds a command line argument to allow selection
- Maps the selected support model to identify the TFM that is needed
- Updates the PackageLoader to limit searches to results that match the TFMs in a project
2021-05-04 13:40:41 -07:00
Ken Schlobohm 16f222c550
Update try-convert (#474) 2021-04-30 17:09:08 -05:00
Mike Rousos aa9fd4e57c
Fix backup step to back up different projects to different sub-dirs (#466)
Fixes #462
2021-04-27 17:40:12 -04:00
Mike Rousos 832a8937a9
Add a RazorUpdater that applies code fixes to Razor docs (#455)
Fixes #367
2021-04-23 17:27:12 -04:00
oteinone 4b7ce32575
Backup path is now persisted in upgrade file (#447)
Path in upgrade file is checked for existing backups

Co-authored-by: Otto Teinonen <otto.teinonen@medixine.com>
2021-04-23 13:10:57 -07:00
Taylor Southwick 33b1767425
Expand TargetFrameworkMoniker record to include parts (#449)
This change replaces a simple record with `Name` to be one that includes
the parts that matter: FrameworkName, Version, Platform, PlatformVersion

This will then be formatted as needed in the property `Name`.
2021-04-22 20:59:27 -07:00
Ken Schlobohm 37febcd712
Mock nuget for integration tests (#421) 2021-04-21 09:36:12 -05:00
Taylor Southwick 2b67588eb2
Replace ITargetTFMSelector with a filter-based pattern (#438)
This change doesn't change too much for callers, but changes how a TFM is selected. Previously, one class held all the knowledge about how to select a TFM for a project. This swaps that out for a filter chain that can attempt to change the final result. Each of the filters can do whatever checks they may want, but the state that is passed through will only update the TFM if it is a higher or more constrained TFM.
2021-04-20 15:14:15 -07:00
Mike Rousos d5bdb602ad
Razor upgrade step (part 1) (#422)
* Rework `IConfigUpdater` to be a more general `IUpdater<T>`
* Add RazorUpdaterStep and RazorUpdateSubStep
* Add RazorUpdaterStep unit tests
2021-04-14 17:51:43 -04:00
Taylor Southwick 7c4a748e9f
Add globbing for entrypoint so arbitrary entrypoints can be combined (#425) 2021-04-14 12:59:49 -07:00
Ken Schlobohm ec2ed0329f
Filter features by language (#417) 2021-04-08 21:19:50 -05:00
Taylor Southwick e39e124701
Add async suffix to a couple of methods (#415) 2021-04-06 12:26:11 -07:00
Taylor Southwick e37682dd51
Restore packages if not already restored when nuget packages are retrieved (#412) 2021-04-06 07:21:50 -07:00
Ken Schlobohm eb5f7c251b
Implemented IsApplicable for PackageReferenceAnalyzers (#390) 2021-04-05 18:19:19 -05:00
Ken Schlobohm 2ebd22d7cf
using newest version of try convert (#403) 2021-04-02 10:57:44 -05:00
Taylor Southwick 30f43d296b
Remove NuGet references from packages library (#395) 2021-04-01 09:32:27 -07:00
Taylor Southwick 121e38909e
Add abstraction for INuGetReferences (#392) 2021-03-31 10:41:59 -07:00
Taylor Southwick c217b25e63
Allow multiple tfms in a project (#383) 2021-03-29 19:14:21 -07:00
Taylor Southwick bdcb0e505a
Consolidate IProject.FilePath and .Directory (#370)
We don't need separate properties for these. This change replaces these two properties with a single `IProject.FileInfo` property.
2021-03-25 12:25:58 -07:00
Ken Schlobohm 9bb5d054c9
using float range and tryParse (#371)
using float range and tryParse
2021-03-23 16:28:08 -05:00
Ken Schlobohm e5955ba8f7
Replace BinaryFormatter.UnsafeDeserialization (#339)
Adds analyzer and code fixer for BinaryFormatter UnsafeDeserialization
2021-03-17 17:53:46 -05:00
Mike Rousos cab79979f6
Update web references in libraries (#354)
This updates Upgrade Assistant to use the latest version of try-convert (which won't remove classic ASP.NET dependencies from libraries that keep a NetFx TFM) and adds additional package update analyzers to replace ASP.NET dependencies with ASP.NET Core ones after the TFM has been updated.

Fixes #347
2021-03-16 17:34:20 -04:00
Taylor Southwick 427088f081
Set an error code if the app terminates unexpectedly (#348) 2021-03-12 07:13:54 -08:00
Sunanda Balasubramanian 73817d22d7
Add a step to update package dependecies before TFM change (#342)
* Add a step to update package dependecies before TFM change

* Fix Tests

* PR Feedback

* Address SA1402

* Fix Tests Again

* Use StepId and fix tests

* Fix PCL tests

* Fix casing for NuGet
2021-03-11 17:14:22 -08:00
Mike Rousos 72c5ce0f7b
Fix broken MSBuild tests (#345) 2021-03-11 16:11:49 -05:00
Taylor Southwick 1e4f4d0a18
Add IComponentIdentifier and ProjectComponents.AspNetCore (#340) 2021-03-11 12:19:04 -08:00
Mike Rousos caef78e1ff
Add a command to select a different current project (#343)
Fixes #338
2021-03-11 14:47:37 -05:00
Mike Rousos ba5273dea2
Add ConfigUpdaterStep unit tests (#332) 2021-03-11 11:34:21 -05:00
Taylor Southwick 3e2918867c
Update try-convert target to honor version (#341)
This change honors the version of try-convert for the dev loop as well
as only downloading it once for whichever projects may need it.
2021-03-11 08:11:04 -08:00
Mike Rousos 82e2a6ed57
Update try-convert version to support PCL and add PCL integration test (#333)
Fixes #294
2021-03-10 18:50:10 -05:00
Taylor Southwick e317311f7b
Enable logging for tests (#326) 2021-03-10 14:32:52 -08:00
Taylor Southwick 9ab5255e05
Add flag to exclude MSBuild runtime libraries (#327) 2021-03-09 13:57:38 -08:00
Taylor Southwick ae478dc1d5
Include try-convert as part of build (#322)
* Include try-convert as part of build

This change adds a target that will download try-convert at build time and include it in the package output.
2021-03-08 22:29:10 -08:00
Taylor Southwick 661023a7b5
Add package map entries for configuration and EF (#324) 2021-03-08 22:27:47 -08:00
Mike Rousos d9057a34ce
Allow sub-steps to be conditional on project components (#317) 2021-03-05 17:17:13 -05:00
Ken Schlobohm 7bd4dd702b refactoring TemplateInserter process to be applied per language and per project component 2021-03-05 10:51:24 -06:00
Ken Schlobohm 698f6795c5 renaming Languages enum 2021-03-05 09:18:25 -06:00
Ken Schlobohm 51d778397a Merge branch 'main' into kschlobohm/vb-proj-error-msg 2021-03-04 09:42:25 -06:00
Mike Rousos a165c38f5c
Update ready checks to apply per-project instead of solution-wide (#309)
Fixes #308
Fixes #268
2021-03-04 10:31:20 -05:00
Ken Schlobohm 9d67cff2a1 renamed AspNetSample integration test scenario 2021-03-04 09:24:56 -06:00
Ken Schlobohm 91147f39d5 added winforms bit flag 2021-03-03 18:01:26 -06:00