Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
283 views
in Technique[技术] by (71.8m points)

visual studio - Renaming project in solution and check it in to azure devops in TFS

I have a solution with 2 projects: Project1 and Project2. Both projects and the solution are currently in one TFS branch in Azure Devops. Project1 is a .net Core App while Project2 is a .Net Framework App. I want to migrate Project2 to .net Core and upload it to the repository, ideally using the same name, what's the best way to go about this? This is what I've tried so far:

  1. Renaming the current .net framework Project2 to Project2NetFramework.
  2. Renaming the folder where .net framework Project2 was stored
  3. Creating a new .net core project and naming it Project2
  4. Checking in Project2 to AzureDevops.

I get conflicts when checking in and when I check Azure Devops, Project2NetFramework is missing. Which steps do I have to follow to do this?

question from:https://stackoverflow.com/questions/65870691/renaming-project-in-solution-and-check-it-in-to-azure-devops-in-tfs

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

[UPDATE]

Follow your idea, you can try like as the steps below:

  1. Before beginning the steps, make sure you have backup the .Net Framework project.

  2. Delete the .Net Framework project from the solution.

  3. Commit and push the changes to the repository on your TFS to check there is no any conflict or error can prevent the changes from being committed.

  4. Create a .Net Core project in the solution.

  5. Copy the required codes from the files in the backup .Net Framework project to the corresponding files in the .Net Core project.

  6. Commit and push the changes to the repository on your TFS.

With this way, you can try to avoid the conflicts and confusions as much as possible.


You can reference to the following articles to try the migration from .NET Framework to .NET Core:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...