Skip to content

A PowerShell Script for the Migration of C#-based .NET Framework projects to .NET Core or .NET 5.0

License

Notifications You must be signed in to change notification settings

HSchwichtenberg/.NETFrameworkTo.NETCoreMigrationPowerShellScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET Framework to .NET Core/.NET 5/.NET 6/.NET 7 Migration PowerShell Script

A PowerShell Script for the Migration of C#-based .NET Framework projects to .NET Core or .NET 5.0 or .NET 6.0 or .NET 7.0

  • creates a clean .NET SDK-style project file (.csproj) in a new folder
  • customizable templates for project file
  • copies all files from the original folder except /bin, /ob, .sln, .csproj and .vspscc
  • handles all files in the /Assets folder as Resource
  • migrates icon, rootnamespace, project references and packages references from original project
  • includes the Windows Compatibility Pack by default
  • does NOT set any build action (e.g. for EDMX, Typed DataSets)
  • does NOT exclude any files
  • does NOT integrate any other project settings e.g. Build Events
  • you can easily change these defaults or add additional settings

Supported Project Types

  • WPF
  • Windows Forms
  • Console
  • Library
  • Unit Tests

Not supported yet

  • Webprojects (ASP.NET)

Installation

  1. Make sure you enabled PowerShell scripts on your system (e.g using: set-executionpolicy unrestricted)
  2. Running the script as administrator will register the script in the Windows Explorer context menu for .csproj files.

Register Script

Running the script

Select a .csproj file in Windows Explorer and choose "Migrate this C#-Project to .NET Core/.NET 5" in the context menu.

Context Menu

Migration of a project

Migration of a project

About

A PowerShell Script for the Migration of C#-based .NET Framework projects to .NET Core or .NET 5.0

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published