Skip to content

Deprecate xproj migration - #4895

Merged
drewnoakes merged 7 commits into
dotnet:masterfrom
drewnoakes:remove-xproj-migration
Jun 15, 2019
Merged

drewnoakes merged 7 commits into
dotnet:masterfrom
drewnoakes:remove-xproj-migration

Conversation

@drewnoakes

@drewnoakes drewnoakes commented Jun 5, 2019 •

Copy link
Copy Markdown
Member

Fixes some parts of #4540.

With this change, when a user loads a legacy .xproj project they will be notified that the project is unsupported. The project will appear in Solution Explorer unloaded with "incompatible" alongside the name.

Tested on drewnoakes/metadata-extractor-dotnet@2be0b57

image

image


Marked as draft to prevent merging until we have alignment with CLI release.

With this change, when a user loads a legacy xproj project they will be
notified that the project is unsupported. The project will appear in
Solution Explorer unloaded with "incompatible" alongside the name.
@davkean

davkean commented Jun 5, 2019 •

Copy link
Copy Markdown
Member

I expected this to also contain deletions of:

  • MigrationError.cs
  • MigrationReport.cs
  • THIRD-PARTY-NOTICES.md (only present for MigrationError)

@davkean

davkean commented Jun 5, 2019

Copy link
Copy Markdown
Member

I think you'll want to also remove the unused strings that this code no longer uses.

@davkean davkean left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with the indicated changes.

This code was originally copied from dotnet/cli which licenses it under
MIT. Now that it is no longer used and can be removed, we can also
remove THIRD-PARTY-NOTICES.md.
It no longer performs migration.
@drewnoakes drewnoakes added this to the 16.3 milestone Jun 5, 2019
@drewnoakes

Copy link
Copy Markdown
Member Author

Thanks for the review @davkean. Updated.

I found a bunch more unused resource strings and fixed them in #4896.

@drewnoakes drewnoakes self-assigned this Jun 5, 2019
@drewnoakes drewnoakes mentioned this pull request Jun 5, 2019
4 tasks done

@davidwengier davidwengier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine. Perhaps shouldn't still be in Draft mode?

@drewnoakes

Copy link
Copy Markdown
Member Author

Keeping it in draft until master is 16.3 to prevent accidental merging.

@drewnoakes

Copy link
Copy Markdown
Member Author

@davkean

davkean commented Jun 5, 2019

Copy link
Copy Markdown
Member

You could probably que up a PR for that too if you want to have it just ready.

drewnoakes added a commit to drewnoakes/visualstudio-docs that referenced this pull request Jun 5, 2019
Starting in Visual Studio 2019 version 16.3, migration of xproj projects is no longer supported. This coincides with the removal of the `dotnet migrate` feature from CLI in .NET Core 3 preview 7.

See dotnet/project-system#4895 for reference.
Writes an error message to the migration report including a link to
documentation explaining how to manually migrate from xproj to csproj.
This project factory will only be called for projects having the xproj
extension, so testing for it again is redundant.
@drewnoakes

Copy link
Copy Markdown
Member Author

Code updated to:

  • Write an error to the upgrade log linking to documentation that explains how to manually migrate from xproj to csproj (@livarcocc to review and improve text)
  • Remove implementation of IVsProjectUpgradeViaFactory, which simplifies code a fair bit
  • Remove check for xproj file extension as this project factory should only be called for xproj files, further simplifying code

@drewnoakes
drewnoakes marked this pull request as ready for review June 15, 2019 04:02
@drewnoakes
drewnoakes requested a review from a team as a code owner June 15, 2019 04:02
@drewnoakes
drewnoakes merged commit 6ea2dfe into dotnet:master Jun 15, 2019
@drewnoakes
drewnoakes deleted the remove-xproj-migration branch June 15, 2019 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants