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

557 Коммитов

Автор SHA1 Сообщение Дата
Taylor Southwick dbb1bba3ea
Separate command options for upgrade and analyze (#688)
This change abstracts the command line options so that additional commands don't have to rely on the same options object.
2021-07-08 13:15:33 -07:00
Sunanda Balasubramanian 2fc597a6ac
Fix Add SDK method to handle empty string (#687) 2021-07-06 16:24:59 -07:00
dotnet-maestro[bot] e8ab5e4599
Update dependencies from https://github.com/dotnet/arcade build 20210701.2 (#686)
[main] Update dependencies from dotnet/arcade
2021-07-06 23:21:13 +00:00
Sunanda Balasubramanian 7abf4c359d
Update changelog with latest release details 2021-06-30 18:17:51 -07:00
Sunanda Balasubramanian 35adc897e3
First Iteration to write analyze output to sarif log (#671)
* First Iteration to write analyze output to sarif log

* Some cleanups

* Fix signing failure
2021-06-30 16:54:53 -07:00
dotnet-maestro[bot] 77369a6bc9
Update dependencies from https://github.com/dotnet/arcade build 20210624.3 (#670)
[main] Update dependencies from dotnet/arcade
2021-06-28 16:47:00 +00:00
Taylor Southwick d621fc1ae0
Move UpgradeOptions into CLI class (#666)
UpgradeOptions should be an implementation detail of the CLI as it is tightly bound to the command line parsing. The names on it cannot be changed without breaking that binding, and has ended up being a bag of a bunch of options.

This change introduces new options for the parts of the system that needed it and flows the values to them via:

- Directly configuring the options in the ConfigureServices
- Setting them up as extension options for values that are needed in extensions and cannot be directly set
2021-06-25 14:02:19 -07:00
Sunanda Balasubramanian ed131abba5
Update recent changes in changelog 2021-06-25 13:31:43 -07:00
Sunanda Balasubramanian 9feb7acb09
Make SetProperty Remove an element if passed as Null or Empty (#668)
* Make SetProperty Remove an element if passed as Null or Empty

* Make RemoveProperty a separate method
2021-06-25 13:26:11 -07:00
Taylor Southwick 161dffef70
Organize host builder patterns (#665)
This separates out the commands to separate classes to clean up what is done in Program.cs
2021-06-25 12:44:23 -07:00
Taylor Southwick 608b619499
Add documentation for --option argument (#667) 2021-06-25 11:01:42 -07:00
Mike Rousos a8f00be1bd
Alert users of diagnostics that don't have a code fix (#662)
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.
2021-06-24 16:30:42 -04:00
Ken Schlobohm ddbe3c38c9
Update roslyn_best_practices.md (#661) 2021-06-24 09:06:59 -05:00
Ken Schlobohm 0ba924111c
added changelog msg (#658) 2021-06-23 12:57:05 -05:00
Ken Schlobohm b236fbc20d
Roslyn best practices doc (#603) 2021-06-23 11:51:21 -05:00
Mike Rousos 723cc4b64a
Add analyzer/code fix for updating or removing old attribute types (#641)
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 #493
Fixes #499
Fixes #501
Fixes #504
Fixes #638
2021-06-23 12:12:32 -04:00
Ken Schlobohm 0bfbdf260b
Addresses VB class library compile errors from My. namespace (#629) 2021-06-23 11:09:43 -05:00
Sunanda Balasubramanian b48b11707f
Expose SDK as an ICollection to enable extention (#642)
* Expose SDK as an ICollection to enable extention

* Fix Tests

* PR Feedback

* Change IsSDK implementation

* Fix Integration tests

* More fixes for tests

* Change to ICollection from List

* PR Feedback

* Remove usage of list in the Remove method

* Remove isSDK

* Reverting the IsSdk removal

* Modifying contains calls

* Add some basic tests for SdkCollection

* Fix tests

* Fix tests

* Missed setting

* PR Feedback

* Add some more tests
2021-06-22 16:25:59 -07:00
Hylian e109a56a9c
Fix Quotes missing (#655)
Co-authored-by: Hylian MESMOUDI <hylian.mesmoudi@studi.fr>
2021-06-22 10:27:43 -07:00
Mike Rousos d73f487540
Revert Microsoft.CodeAnalysis version to 3.8.0 (#653) 2021-06-22 13:08:59 -04:00
Ken Schlobohm 93824bcaa0
Increase awareness about unsupported technologies (#617) 2021-06-22 12:07:33 -05:00
Taylor Southwick 1ff1a917b9
Reduce dependencies in BackupStep tests (#652) 2021-06-22 10:03:00 -07:00
Taylor Southwick c86075b5a6
Add optional command line to pass options through (#651)
Create an ad hoc extension from the current directory that will pass options through.
2021-06-21 13:56:02 -07:00
Mike Rousos e9d2cc7edf
Fix analyzer package to hide typemap files (#632)
Fixes #631
2021-06-21 14:19:28 -04:00
dotnet-maestro[bot] d273ae7070
Update dependencies from https://github.com/dotnet/arcade build 20210619.2 (#647)
[main] Update dependencies from dotnet/arcade
2021-06-21 18:02:22 +00:00
Taylor Southwick ebd65766cc
ExtensionManager should be a singleton (#645)
This was making it so that extensions were loaded twice. Only one of them was used, but the ExtensionManager should be a singleton to only load extensions once.
2021-06-21 10:58:28 -07:00
Taylor Southwick 8ca6bab411
Split for + when parsing version (#646) 2021-06-18 20:34:32 -07:00
Taylor Southwick 136aeeb68a
Create zip folder on build for extension (#643) 2021-06-18 13:32:47 -07:00
Taylor Southwick 6df70761d1
Add usage telemetry (#644)
This change adds usage telemetry to help identify needs within Upgrade
Assistant. For more details, please see https://aka.ms/upgrade-assistant-telemetry
2021-06-18 13:32:24 -07:00
Mike Rousos bca9991a94
Don't add AddHttpContextAccessor to Startup.cs (#628)
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
2021-06-17 18:21:11 -04:00
Taylor Southwick 7b4db6c125
Add support for a minimum required version in extension (#637) 2021-06-16 15:17:40 -07:00
Taylor Southwick ef31c22633
Add option to search for unlisted packages (#636) 2021-06-16 13:34:46 -07:00
Taylor Southwick c234927fac
Lazily load extensions when needed (#623)
This change moves the extension loading into a child scope. This allows
for things like logging to be available while we are loading extensions.
2021-06-16 11:28:02 -07:00
Taylor Southwick e71d6c50ad
Remove direct dependency on step (#627) 2021-06-15 13:28:04 -07:00
Taylor Southwick 2bca807392
Surface an extension version if present (#625) 2021-06-14 16:57:18 -07:00
Taylor Southwick e4f35035dd
Add API to get package metadata (#626) 2021-06-14 15:51:03 -07:00
Sunanda Balasubramanian daf3dbfd40
Update Changelog with latest release version 2021-06-14 14:39:39 -07:00
Mike Rousos 991185f80d
Reload project file before simplifying it in source update step (#616)
This updates SourceUpdaterStep to reload the csproj (to make sure any changes made by code fixes are picked up) prior to simplifying the file.

Fixes #553
2021-06-14 17:23:23 -04:00
Mike Rousos 1264a65226
Update MSBuildProject.NuGetPackages APIs to work with packages.config (#619)
This updates INuGetReferences implementation to handle project files using packages.config package references. Also, updated some comments to more clearly explain what the different APIs on that interface do.

Fixes #554
2021-06-14 17:22:43 -04:00
Mike Rousos 57152ce9c7
Update pkg loader to not filter out packages with empty dependency sets (#620)
This was causing PackageLoader.GetLatestVersionAsync to not find any versions of analyzer packages (which don't typically have dependency sets).

Fixes #555
2021-06-14 17:22:12 -04:00
dotnet-maestro[bot] 13529f4332
Update dependencies from https://github.com/dotnet/arcade build 20210611.3 (#618)
Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk
 From Version 6.0.0-beta.21304.1 -> To Version 6.0.0-beta.21311.3

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-06-14 14:16:53 -07:00
Taylor Southwick 46f1546d4f
Make the VS interop lib private (#609)
This package is a build time component only and provides COM types that
are used to identify where VS is.
2021-06-14 13:34:40 -07:00
Sunanda Balasubramanian ee9618b1fb
Expose Imports in IProjectFile (#615)
* Simple implementation to expose Imports in IProjectFile

* Change to use a custom Collection for Imports

* Add a null check to fix tests

* Add implementation for CopyTo

* Changing GetEnumerator impl to fix tests
2021-06-14 13:31:11 -07:00
Sunanda Balasubramanian a9a1b91303
Make Package Analyzers TFM aware (#608)
* Make Package Analyzers TFM aware

* Fix tests

* Add TFM to IDependencyAnalysisState

* Remove unnecessary imports

* Remove unnecessary imports

* PR Feedback

* Fix tests
2021-06-10 15:47:03 -07:00
Taylor Southwick c2b38597b9
Update and reorganize extension documentation (#605) 2021-06-09 11:58:05 -07:00
Taylor Southwick 29580acdc5
Add better support for zip extensions (#607)
- AssemblyLoadContext requires assemblies to be seekable, so we now will copy assemblies to byte arrays if they are not seekable
- We check for pattern that occurs when a zip file is created from a folder where the top level directory is a simple folder

This change also consolidates loading logic all into the assembly load context where it will attempt to load the assemblies from the manifest.
2021-06-08 11:53:53 -07:00
Sunanda Balasubramanian 060d1d22f1
Add a link to Chem Integration design doc 2021-06-08 10:49:02 -07:00
Sunanda Balasubramanian 4b01f7721c
Rename Chem Integration.md to Chem_Integration.md 2021-06-08 10:47:56 -07:00
Taylor Southwick 9fa2cbeff0
Redirect bin/obj folders for extensions to minimize file write races (#602)
When building on the CI, there are some race conditions that occur
periodically to write files to disk. This is because the extensions are
built separately for their own projects and for when they are being
included in the CLI. This change sets a custom OutDir and
IntermediateOutputPath when needed so there are separate places these
get written.
2021-06-07 12:02:26 -07:00
dotnet-maestro[bot] 75e904a5e1
Update dependencies from https://github.com/dotnet/arcade build 20210604.1 (#600)
Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk
 From Version 6.0.0-beta.21278.1 -> To Version 6.0.0-beta.21304.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-06-07 11:09:34 -07:00