* test fixes
* This pr reflects updates to changelog and readme based on the addition of the format feature flag
* Addition of the pr link in the changelog
* Revert "test fixes (#982)"
This reverts commit 02b49ff0ed.
* Git revert to reduce noise and make log fixes
* reintroduction of file fixes
* Revert formatting changes in README.md
* Revert formatting changes in README.md
* Revert formatting changes in README.md
* Revert formatting changes in README.md
* Revert formatting changes in README.md
* Revert formatting changes in Changelog.md
* Reword format parameters option
* inclusion of html format for readme explanation
* Nit Formatting
* Nit Formatting
* Nit Formatting
* Nit Formatting
* Nit Formatting
* Nit Formatting
* Nit Formatting
Co-authored-by: Sunanda Balasubramanian <subal@microsoft.com>
This change separates out the MSBuild path into the WorkspaceOptions
object and refactors the logic into IConfigureOptions<> implementations
so that they will be cached automatically by the system.
This adds an analyzer (without code fix provider) for identifying and flagging usage of configured namespaces, types, or members and creating diagnostics with associated messages.
This will allow easily notifying users if they're using namespace, types, or members that are known to require manual changes.
Fixes#621Fixes#502Fixes#65Fixes#69Fixes#75
This updates the RazorSourceUpdater and SourceUpdaterStep to alert users via warnings of any diagnostics that were produced by registered analyzers but didn't have a code fix available. This allows UA analyzers to alert users of code patterns requiring manual updates.
This replaces the AllowHtmlAttribute analyzer and code fixer with a more general purpose analzyers/code fix provider that will update or remove any attribute types listed in typemaps.
Fixes#493Fixes#499Fixes#501Fixes#504Fixes#638
This makes a few updates to the HttpContext.Current analyzer and code fix provider:
1. Don't add AddHttpContextAccessor to Startup.cs. It's still nice to have that there to make it easier to use IHttpContextAccessor from DI, but it's not required by HttpContextHelper anymore and it seems best to make as few changes as possible to users' startup files.
2. Update HttpContext.Current analyzer to also identify ControllerBase.HttpContext.Current as needing updated since that's a pattern we can arrive at mid-upgrade.
3. Fix HttpContextHelper to include using System.
Fixes#452
This consolidates all the analyzers derived from `IdentifierUpgradeAnalyzer` and replaces them with a single analyzer/code fix provider for identifying and updating all cases where a type name needs replaced with a more modern equivalent.
It also updates this new `TypeUpgradeAnalyzer` to read the types to be replaced dynamically from additional texts so that users can easily extend the mapping of types to be replaced (by including a .typemap file in their project, including a .typemap additional file in their extension, or by registering an `AdditionalText` file with in UA's DI container).
* Add Pre-Upgrade Analysis Design doc
* Address Feedback
* Initial wiring of analyze command
* Fix merge conflicts
* More Merge Conflicts
* Some indentation changes
* More merge conflicts
* Move Analysis project under components
* Changes to UpgradeContext
* Merge Main
* Remove older package analyzer files
* Merge main for shared common files
* More merge main
* More merge issues
* Make analyze aware of user selected entry points
* Addressing some of the PR feedback
* More PR feedback and edits to Changelog, ReadMe
* Removing Analysis project
* PR feedback
This adds an additional codefixe for HttpContext.Current that helps to
refactor its usage to instead use method injection. The codefixe will
update calling methods to pass in HttpContext.Current, which can be
called multiple times to move HttpContext.Current up the stack.
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.
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