├── .gitattributes ├── .github └── workflows │ └── main.yml ├── .gitignore ├── ConvertProjectToCore3.sln ├── ConvertProjectToCore3 ├── Constants.cs ├── ConvertAppToCore3Command.cs ├── ConvertAppToCore3CommandPackage.cs ├── ConvertAppToCore3CommandPackage.vsct ├── ConvertProjectToCore3.csproj ├── Key.snk ├── ProjectData.cs ├── Properties │ └── AssemblyInfo.cs ├── Resources │ ├── ConvertAppToCore3Command.png │ └── ConvertAppToCore3CommandPackage.ico ├── VSPackage.resx ├── app.config ├── packages.config └── source.extension.vsixmanifest ├── LICENSE ├── README.md └── images └── convert-to-core-menu.jpg /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | on: 2 | issues: 3 | types: [opened] 4 | 5 | jobs: 6 | hello_world_job: 7 | runs-on: ubuntu-latest 8 | name: Add Sponsor Labels 9 | steps: 10 | - name: Add Sponsor Labels 11 | id: sponsors-labels 12 | uses: brianlagunas/sponsor-action@v1.0 13 | with: 14 | maintainers: 'brianlagunas,dansiegel' 15 | github_token: ${{ secrets.GITHUB_TOKEN }} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Dd]ebugPublic/ 19 | [Rr]elease/ 20 | [Rr]eleases/ 21 | x64/ 22 | x86/ 23 | bld/ 24 | [Bb]in/ 25 | [Oo]bj/ 26 | [Ll]og/ 27 | 28 | # Visual Studio 2015/2017 cache/options directory 29 | .vs/ 30 | # Uncomment if you have tasks that create the project's static files in wwwroot 31 | #wwwroot/ 32 | 33 | # Visual Studio 2017 auto generated files 34 | Generated\ Files/ 35 | 36 | # MSTest test Results 37 | [Tt]est[Rr]esult*/ 38 | [Bb]uild[Ll]og.* 39 | 40 | # NUNIT 41 | *.VisualState.xml 42 | TestResult.xml 43 | 44 | # Build Results of an ATL Project 45 | [Dd]ebugPS/ 46 | [Rr]eleasePS/ 47 | dlldata.c 48 | 49 | # Benchmark Results 50 | BenchmarkDotNet.Artifacts/ 51 | 52 | # .NET Core 53 | project.lock.json 54 | project.fragment.lock.json 55 | artifacts/ 56 | 57 | # StyleCop 58 | StyleCopReport.xml 59 | 60 | # Files built by Visual Studio 61 | *_i.c 62 | *_p.c 63 | *_h.h 64 | *.ilk 65 | *.meta 66 | *.obj 67 | *.iobj 68 | *.pch 69 | *.pdb 70 | *.ipdb 71 | *.pgc 72 | *.pgd 73 | *.rsp 74 | *.sbr 75 | *.tlb 76 | *.tli 77 | *.tlh 78 | *.tmp 79 | *.tmp_proj 80 | *_wpftmp.csproj 81 | *.log 82 | *.vspscc 83 | *.vssscc 84 | .builds 85 | *.pidb 86 | *.svclog 87 | *.scc 88 | 89 | # Chutzpah Test files 90 | _Chutzpah* 91 | 92 | # Visual C++ cache files 93 | ipch/ 94 | *.aps 95 | *.ncb 96 | *.opendb 97 | *.opensdf 98 | *.sdf 99 | *.cachefile 100 | *.VC.db 101 | *.VC.VC.opendb 102 | 103 | # Visual Studio profiler 104 | *.psess 105 | *.vsp 106 | *.vspx 107 | *.sap 108 | 109 | # Visual Studio Trace Files 110 | *.e2e 111 | 112 | # TFS 2012 Local Workspace 113 | $tf/ 114 | 115 | # Guidance Automation Toolkit 116 | *.gpState 117 | 118 | # ReSharper is a .NET coding add-in 119 | _ReSharper*/ 120 | *.[Rr]e[Ss]harper 121 | *.DotSettings.user 122 | 123 | # JustCode is a .NET coding add-in 124 | .JustCode 125 | 126 | # TeamCity is a build add-in 127 | _TeamCity* 128 | 129 | # DotCover is a Code Coverage Tool 130 | *.dotCover 131 | 132 | # AxoCover is a Code Coverage Tool 133 | .axoCover/* 134 | !.axoCover/settings.json 135 | 136 | # Visual Studio code coverage results 137 | *.coverage 138 | *.coveragexml 139 | 140 | # NCrunch 141 | _NCrunch_* 142 | .*crunch*.local.xml 143 | nCrunchTemp_* 144 | 145 | # MightyMoose 146 | *.mm.* 147 | AutoTest.Net/ 148 | 149 | # Web workbench (sass) 150 | .sass-cache/ 151 | 152 | # Installshield output folder 153 | [Ee]xpress/ 154 | 155 | # DocProject is a documentation generator add-in 156 | DocProject/buildhelp/ 157 | DocProject/Help/*.HxT 158 | DocProject/Help/*.HxC 159 | DocProject/Help/*.hhc 160 | DocProject/Help/*.hhk 161 | DocProject/Help/*.hhp 162 | DocProject/Help/Html2 163 | DocProject/Help/html 164 | 165 | # Click-Once directory 166 | publish/ 167 | 168 | # Publish Web Output 169 | *.[Pp]ublish.xml 170 | *.azurePubxml 171 | # Note: Comment the next line if you want to checkin your web deploy settings, 172 | # but database connection strings (with potential passwords) will be unencrypted 173 | *.pubxml 174 | *.publishproj 175 | 176 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 177 | # checkin your Azure Web App publish settings, but sensitive information contained 178 | # in these scripts will be unencrypted 179 | PublishScripts/ 180 | 181 | # NuGet Packages 182 | *.nupkg 183 | # The packages folder can be ignored because of Package Restore 184 | **/[Pp]ackages/* 185 | # except build/, which is used as an MSBuild target. 186 | !**/[Pp]ackages/build/ 187 | # Uncomment if necessary however generally it will be regenerated when needed 188 | #!**/[Pp]ackages/repositories.config 189 | # NuGet v3's project.json files produces more ignorable files 190 | *.nuget.props 191 | *.nuget.targets 192 | 193 | # Microsoft Azure Build Output 194 | csx/ 195 | *.build.csdef 196 | 197 | # Microsoft Azure Emulator 198 | ecf/ 199 | rcf/ 200 | 201 | # Windows Store app package directories and files 202 | AppPackages/ 203 | BundleArtifacts/ 204 | Package.StoreAssociation.xml 205 | _pkginfo.txt 206 | *.appx 207 | 208 | # Visual Studio cache files 209 | # files ending in .cache can be ignored 210 | *.[Cc]ache 211 | # but keep track of directories ending in .cache 212 | !*.[Cc]ache/ 213 | 214 | # Others 215 | ClientBin/ 216 | ~$* 217 | *~ 218 | *.dbmdl 219 | *.dbproj.schemaview 220 | *.jfm 221 | *.pfx 222 | *.publishsettings 223 | orleans.codegen.cs 224 | 225 | # Including strong name files can present a security risk 226 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 227 | #*.snk 228 | 229 | # Since there are multiple workflows, uncomment next line to ignore bower_components 230 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 231 | #bower_components/ 232 | 233 | # RIA/Silverlight projects 234 | Generated_Code/ 235 | 236 | # Backup & report files from converting an old project file 237 | # to a newer Visual Studio version. Backup files are not needed, 238 | # because we have git ;-) 239 | _UpgradeReport_Files/ 240 | Backup*/ 241 | UpgradeLog*.XML 242 | UpgradeLog*.htm 243 | ServiceFabricBackup/ 244 | *.rptproj.bak 245 | 246 | # SQL Server files 247 | *.mdf 248 | *.ldf 249 | *.ndf 250 | 251 | # Business Intelligence projects 252 | *.rdl.data 253 | *.bim.layout 254 | *.bim_*.settings 255 | *.rptproj.rsuser 256 | 257 | # Microsoft Fakes 258 | FakesAssemblies/ 259 | 260 | # GhostDoc plugin setting file 261 | *.GhostDoc.xml 262 | 263 | # Node.js Tools for Visual Studio 264 | .ntvs_analysis.dat 265 | node_modules/ 266 | 267 | # Visual Studio 6 build log 268 | *.plg 269 | 270 | # Visual Studio 6 workspace options file 271 | *.opt 272 | 273 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 274 | *.vbw 275 | 276 | # Visual Studio LightSwitch build output 277 | **/*.HTMLClient/GeneratedArtifacts 278 | **/*.DesktopClient/GeneratedArtifacts 279 | **/*.DesktopClient/ModelManifest.xml 280 | **/*.Server/GeneratedArtifacts 281 | **/*.Server/ModelManifest.xml 282 | _Pvt_Extensions 283 | 284 | # Paket dependency manager 285 | .paket/paket.exe 286 | paket-files/ 287 | 288 | # FAKE - F# Make 289 | .fake/ 290 | 291 | # JetBrains Rider 292 | .idea/ 293 | *.sln.iml 294 | 295 | # CodeRush personal settings 296 | .cr/personal 297 | 298 | # Python Tools for Visual Studio (PTVS) 299 | __pycache__/ 300 | *.pyc 301 | 302 | # Cake - Uncomment if you are using it 303 | # tools/** 304 | # !tools/packages.config 305 | 306 | # Tabs Studio 307 | *.tss 308 | 309 | # Telerik's JustMock configuration file 310 | *.jmconfig 311 | 312 | # BizTalk build output 313 | *.btp.cs 314 | *.btm.cs 315 | *.odx.cs 316 | *.xsd.cs 317 | 318 | # OpenCover UI analysis results 319 | OpenCover/ 320 | 321 | # Azure Stream Analytics local run output 322 | ASALocalRun/ 323 | 324 | # MSBuild Binary and Structured Log 325 | *.binlog 326 | 327 | # NVidia Nsight GPU debugger configuration file 328 | *.nvuser 329 | 330 | # MFractors (Xamarin productivity tool) working folder 331 | .mfractor/ 332 | 333 | # Local History for Visual Studio 334 | .localhistory/ 335 | -------------------------------------------------------------------------------- /ConvertProjectToCore3.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28010.2050 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConvertProjectToCore3", "ConvertProjectToCore3\ConvertProjectToCore3.csproj", "{4BE75BD6-173F-4BF4-845E-55D1F35666ED}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {4BE75BD6-173F-4BF4-845E-55D1F35666ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {4BE75BD6-173F-4BF4-845E-55D1F35666ED}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {4BE75BD6-173F-4BF4-845E-55D1F35666ED}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {4BE75BD6-173F-4BF4-845E-55D1F35666ED}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {EA6D76A3-D7D7-4ED6-8AE8-C1985B298D04} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/Constants.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Immutable; 3 | 4 | namespace ConvertProjectToCore3 5 | { 6 | class Constants 7 | { 8 | public const string AssemblyInfoFilePath = "Properties\\AssemblyInfo.cs"; 9 | public const string AssemblyAttributeSearchPattern = "[assembly: Assembly"; 10 | public const string AssemblyName = "AssemblyName"; 11 | public const string AssemblyVersion = "AssemblyVersion"; 12 | public const string CommentPrefix = "//"; 13 | public const string NetFramework = ".NETFramework, Version=v4.5"; 14 | public const string NetCoreApp3 = "netcoreapp3.0"; 15 | public const string NuGetPackagesConfigFileName = "packages.config"; 16 | public const string OutputType = "OutputType"; 17 | public const string PackageReference = "PackageReference"; 18 | public const string ProjectGuid = "ProjectGuid"; 19 | public const string ProjectReference = "ProjectReference"; 20 | public const string ProjectTypeGuids = "ProjectTypeGuids"; 21 | public const string Reference = "Reference"; 22 | public const string Resource = "Resource"; 23 | public const string Sdk = "Microsoft.NET.Sdk.WindowsDesktop"; 24 | public const string TargetFramework = "TargetFramework"; 25 | public const string True = "true"; 26 | public const string UseWPF = "UseWPF"; 27 | public const string Version = "Version"; 28 | //public const string WinFormsProjectGuidString = "FAE04EC0-301F-11D3-BF4B-00C04F79EFBC"; //this is technically any library C# 29 | public const string WpfProjectGuidString = "60DC8134-EBA5-43B8-BCC9-BB4BC16C2548"; 30 | 31 | public static ImmutableArray PropertiesNotNeeded => ImmutableArray.Create( 32 | "ProjectGuid", // Guids are in-memory 33 | "ProjectTypeGuids", // Not used - capabilities are used instead 34 | "TargetFrameworkIdentifier", // Inferred from TargetFramework 35 | "TargetFrameworkVersion", // Inferred from TargetFramework 36 | "TargetFrameworkProfile" // Inferred from TargetFramework 37 | ); 38 | 39 | public static ImmutableArray ItemTypesNotNeeded => ImmutableArray.Create( 40 | "Compile", 41 | "EmbeddedResource", 42 | "None", 43 | "Reference", 44 | "ApplicationDefinition", 45 | "Page" 46 | ); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/ConvertAppToCore3Command.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.Design; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Xml; 7 | using EnvDTE; 8 | using Microsoft.Build.Construction; 9 | using Microsoft.VisualStudio; 10 | using Microsoft.VisualStudio.Shell; 11 | using Microsoft.VisualStudio.Shell.Flavor; 12 | using Microsoft.VisualStudio.Shell.Interop; 13 | using Task = System.Threading.Tasks.Task; 14 | 15 | namespace ConvertProjectToCore3 16 | { 17 | /// 18 | /// Command handler 19 | /// 20 | internal sealed class ConvertAppToCore3Command 21 | { 22 | /// 23 | /// Command ID. 24 | /// 25 | public const int CommandId = 0x0100; 26 | 27 | /// 28 | /// Command menu group (command set GUID). 29 | /// 30 | public static readonly Guid CommandSet = new Guid("9f281125-01d6-41e6-ba9f-c4be22d0984c"); 31 | 32 | private readonly DTE _dte; 33 | 34 | /// 35 | /// VS Package that provides this command, not null. 36 | /// 37 | private readonly AsyncPackage package; 38 | 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// Adds our command handlers for menu (commands must exist in the command table file) 42 | /// 43 | /// Owner package, not null. 44 | /// Command service to add command to, not null. 45 | private ConvertAppToCore3Command(AsyncPackage package, OleMenuCommandService commandService) 46 | { 47 | this.package = package ?? throw new ArgumentNullException(nameof(package)); 48 | commandService = commandService ?? throw new ArgumentNullException(nameof(commandService)); 49 | 50 | var menuCommandID = new CommandID(CommandSet, CommandId); 51 | var menuItem = new OleMenuCommand(this.Execute, menuCommandID); 52 | menuItem.BeforeQueryStatus += MenuItem_BeforeQueryStatus; 53 | commandService.AddCommand(menuItem); 54 | } 55 | 56 | private void MenuItem_BeforeQueryStatus(object sender, EventArgs e) 57 | { 58 | ThreadHelper.ThrowIfNotOnUIThread(); 59 | 60 | var menuCommand = sender as OleMenuCommand; 61 | if (menuCommand != null) 62 | { 63 | menuCommand.Visible = false; 64 | menuCommand.Enabled = false; 65 | 66 | Project selectedProject = GetSelectedProject(); 67 | IVsSolution solution = (IVsSolution)Package.GetGlobalService(typeof(SVsSolution)); 68 | 69 | IVsHierarchy hierarchy; 70 | solution.GetProjectOfUniqueName(selectedProject.UniqueName, out hierarchy); 71 | 72 | IVsAggregatableProjectCorrected ap; 73 | ap = hierarchy as IVsAggregatableProjectCorrected; 74 | 75 | string projTypeGuids; 76 | ap.GetAggregateProjectTypeGuids(out projTypeGuids); 77 | 78 | if (projTypeGuids.ToUpper().IndexOf(Constants.WpfProjectGuidString) > 0) 79 | { 80 | menuCommand.Visible = true; 81 | menuCommand.Enabled = true; 82 | } 83 | } 84 | } 85 | 86 | /// 87 | /// Gets the instance of the command. 88 | /// 89 | public static ConvertAppToCore3Command Instance 90 | { 91 | get; 92 | private set; 93 | } 94 | 95 | /// 96 | /// Gets the service provider from the owner package. 97 | /// 98 | private Microsoft.VisualStudio.Shell.IAsyncServiceProvider ServiceProvider 99 | { 100 | get 101 | { 102 | return this.package; 103 | } 104 | } 105 | 106 | /// 107 | /// Initializes the singleton instance of the command. 108 | /// 109 | /// Owner package, not null. 110 | public static async Task InitializeAsync(AsyncPackage package) 111 | { 112 | // Switch to the main thread - the call to AddCommand in ConvertAppToCore3Command's constructor requires 113 | // the UI thread. 114 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(package.DisposalToken); 115 | 116 | OleMenuCommandService commandService = await package.GetServiceAsync((typeof(IMenuCommandService))) as OleMenuCommandService; 117 | Instance = new ConvertAppToCore3Command(package, commandService); 118 | } 119 | 120 | /// 121 | /// This function is the callback used to execute the command when the menu item is clicked. 122 | /// See the constructor to see how the menu item is associated with this function using 123 | /// OleMenuCommandService service and MenuCommand class. 124 | /// 125 | /// Event sender. 126 | /// Event args. 127 | private async void Execute(object sender, EventArgs e) 128 | { 129 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); 130 | 131 | string title = "Convert Project To .NET Core 3"; 132 | string message = "Are you sure you want to convert this project to .NET Core 3?"; 133 | 134 | var result = VsShellUtilities.ShowMessageBox(this.package, message, title, OLEMSGICON.OLEMSGICON_INFO, OLEMSGBUTTON.OLEMSGBUTTON_OKCANCEL, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST); 135 | 136 | if (result == 1) 137 | { 138 | try 139 | { 140 | Project activeProject = GetSelectedProject(); 141 | await ConvertProjectAsync(activeProject); 142 | } 143 | catch (Exception ex) 144 | { 145 | VsShellUtilities.ShowMessageBox(this.package, ex.Message, title, OLEMSGICON.OLEMSGICON_INFO, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST); 146 | } 147 | } 148 | } 149 | 150 | Project GetSelectedProject() 151 | { 152 | ThreadHelper.ThrowIfNotOnUIThread(); 153 | Project activeProject = null; 154 | DTE dte = (DTE)Package.GetGlobalService(typeof(DTE)); 155 | object[] activeSolutionProjects = dte.ActiveSolutionProjects as object[]; 156 | if (activeSolutionProjects != null) 157 | { 158 | activeProject = activeSolutionProjects.GetValue(0) as Project; 159 | } 160 | return activeProject; 161 | } 162 | 163 | async Task ConvertProjectAsync(Project project) 164 | { 165 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); 166 | IVsSolution4 solution = await ServiceProvider.GetServiceAsync(typeof(SVsSolution)) as IVsSolution4; 167 | 168 | ProjectRootElement projectRoot = ProjectRootElement.Open(project.FullName); 169 | 170 | var projectData = ReadProjectData(projectRoot); 171 | projectData.FilePath = Path.GetDirectoryName(project.FullName); 172 | projectData.AssemblyVersion = project.Properties.Item(Constants.AssemblyVersion)?.Value.ToString(); 173 | 174 | UnloadProject(solution, projectData.ProjectGuid); 175 | 176 | DeleteCSProjContents(projectRoot); 177 | 178 | UpdateCSProjContents(projectRoot, projectData); 179 | 180 | projectRoot.Save(); 181 | 182 | UpdateAssemblyInfo(projectData.FilePath); 183 | 184 | ReloadProject(solution, projectData.ProjectGuid); 185 | } 186 | 187 | ProjectData ReadProjectData(ProjectRootElement projectRoot) 188 | { 189 | var projectData = new ProjectData(); 190 | var propertyGroup = projectRoot.PropertyGroups.First(); 191 | projectData.ProjectGuid = Guid.Parse(propertyGroup.Properties.FirstOrDefault(x => x.Name == Constants.ProjectGuid)?.Value.ToString()); 192 | projectData.ProjectTypeGuids = propertyGroup.Properties.FirstOrDefault(x => x.Name == Constants.ProjectTypeGuids)?.Value.ToString(); 193 | //projectData.AssemblyName = propertyGroup.Properties.FirstOrDefault(x => x.Name == Constants.AssemblyName)?.Value.ToString(); 194 | //projectData.OutputType = propertyGroup.Properties.FirstOrDefault(x => x.Name == Constants.OutputType)?.Value.ToString(); 195 | return projectData; 196 | } 197 | 198 | void DeleteCSProjContents(ProjectRootElement projectRoot) 199 | { 200 | projectRoot.ToolsVersion = null; 201 | RemoveImports(projectRoot); 202 | RemoveProperties(projectRoot); 203 | //await RemoveReferences(projectRoot); 204 | RemoveItems(projectRoot); 205 | } 206 | 207 | void RemoveImports(ProjectRootElement root) 208 | { 209 | foreach (var import in root.Imports) 210 | { 211 | root.RemoveChild(import); 212 | } 213 | } 214 | 215 | //async Task RemoveReferences(ProjectRootElement root) 216 | //{ 217 | // await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); 218 | // var frameworkMultiTargeting = await ServiceProvider.GetServiceAsync(typeof(SVsFrameworkMultiTargeting)) as IVsFrameworkMultiTargeting; 219 | 220 | // foreach (var itemGroup in root.ItemGroups) 221 | // { 222 | // foreach (var item in itemGroup.Items) 223 | // { 224 | // if (item.ElementName == Constants.Reference) 225 | // { 226 | // bool isFrameworkReference = false; 227 | // frameworkMultiTargeting.IsReferenceableInTargetFx(item.Include, Constants.NetFramework, out isFrameworkReference); 228 | 229 | // if (isFrameworkReference) 230 | // itemGroup.RemoveChild(item); 231 | // } 232 | // } 233 | 234 | // if (itemGroup.Items.Count == 0) 235 | // { 236 | // root.RemoveChild(itemGroup); 237 | // } 238 | // } 239 | //} 240 | 241 | void RemoveItems(ProjectRootElement root) 242 | { 243 | foreach (var itemGroup in root.ItemGroups) 244 | { 245 | foreach (var item in itemGroup.Items) 246 | { 247 | if (Constants.ItemTypesNotNeeded.Contains(item.ElementName)) 248 | { 249 | itemGroup.RemoveChild(item); 250 | } 251 | } 252 | 253 | if (itemGroup.Items.Count == 0) 254 | { 255 | root.RemoveChild(itemGroup); 256 | } 257 | } 258 | } 259 | 260 | static void RemoveProperties(ProjectRootElement root) 261 | { 262 | foreach (var propGroup in root.PropertyGroups) 263 | { 264 | foreach (var property in propGroup.Properties) 265 | { 266 | if (Constants.PropertiesNotNeeded.Contains(property.Name)) 267 | { 268 | propGroup.RemoveChild(property); 269 | } 270 | } 271 | } 272 | } 273 | 274 | void UpdateCSProjContents(ProjectRootElement projectRoot, ProjectData projectData) 275 | { 276 | projectRoot.Sdk = Constants.Sdk; 277 | var propertyGroup = projectRoot.PropertyGroups.First(); 278 | 279 | propertyGroup.AddProperty(Constants.TargetFramework, Constants.NetCoreApp3); 280 | 281 | //TODO: check to see if the project type is WPF or WinForms. 282 | propertyGroup.AddProperty(Constants.UseWPF, Constants.True); 283 | 284 | if (!string.IsNullOrWhiteSpace(projectData.AssemblyVersion)) 285 | propertyGroup.AddProperty(Constants.Version, projectData.AssemblyVersion); 286 | 287 | UpdateNuGetPackageReferences(projectRoot, projectData); 288 | } 289 | 290 | void UpdateNuGetPackageReferences(ProjectRootElement projectRoot, ProjectData projectData) 291 | { 292 | //TODO: only use the top-level pacakages, not all packages 293 | var packageConfigFilePath = Path.Combine(projectData.FilePath, Constants.NuGetPackagesConfigFileName); 294 | if (File.Exists(packageConfigFilePath)) 295 | { 296 | XmlDocument document = new XmlDocument(); 297 | document.Load(packageConfigFilePath); 298 | 299 | XmlNodeList packageList = document.GetElementsByTagName("package"); 300 | 301 | ProjectItemGroupElement packageRefItemGroup = projectRoot.AddItemGroup(); 302 | foreach (XmlNode package in packageList) 303 | { 304 | var id = package.Attributes["id"].InnerText; 305 | var version = package.Attributes["version"].InnerText; 306 | var item = packageRefItemGroup.AddItem(Constants.PackageReference, id); 307 | item.AddMetadata(Constants.Version, version, true); 308 | } 309 | 310 | File.Delete(packageConfigFilePath); 311 | } 312 | } 313 | 314 | void UpdateAssemblyInfo(string projectFilePath) 315 | { 316 | String assemblyInfoFilePath = Path.Combine(projectFilePath, Constants.AssemblyInfoFilePath); 317 | if (File.Exists(assemblyInfoFilePath)) 318 | { 319 | var assemblyInfoLines = File.ReadLines(assemblyInfoFilePath); 320 | var updatedLines = new List(); 321 | foreach (var line in assemblyInfoLines) 322 | { 323 | string newLine = line; 324 | if (newLine.StartsWith(Constants.AssemblyAttributeSearchPattern)) 325 | { 326 | newLine = line.Insert(0, Constants.CommentPrefix); 327 | } 328 | 329 | updatedLines.Add(newLine); 330 | } 331 | File.WriteAllLines(assemblyInfoFilePath, updatedLines); 332 | } 333 | } 334 | 335 | void UnloadProject(IVsSolution4 solution, Guid projectGuid) 336 | { 337 | ThreadHelper.ThrowIfNotOnUIThread(); 338 | int hr; 339 | hr = solution.UnloadProject(ref projectGuid, (uint)_VSProjectUnloadStatus.UNLOADSTATUS_UnloadedByUser); 340 | ErrorHandler.ThrowOnFailure(hr); 341 | } 342 | 343 | void ReloadProject(IVsSolution4 solution, Guid projectGuid) 344 | { 345 | ThreadHelper.ThrowIfNotOnUIThread(); 346 | int hr; 347 | hr = solution.ReloadProject(ref projectGuid); 348 | ErrorHandler.ThrowOnFailure(hr); 349 | } 350 | } 351 | } 352 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/ConvertAppToCore3CommandPackage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.Design; 3 | using System.Diagnostics; 4 | using System.Diagnostics.CodeAnalysis; 5 | using System.Globalization; 6 | using System.Runtime.InteropServices; 7 | using System.Threading; 8 | using System.Threading.Tasks; 9 | using Microsoft.VisualStudio; 10 | using Microsoft.VisualStudio.OLE.Interop; 11 | using Microsoft.VisualStudio.Shell; 12 | using Microsoft.VisualStudio.Shell.Interop; 13 | using Microsoft.Win32; 14 | using Task = System.Threading.Tasks.Task; 15 | 16 | namespace ConvertProjectToCore3 17 | { 18 | /// 19 | /// This is the class that implements the package exposed by this assembly. 20 | /// 21 | /// 22 | /// 23 | /// The minimum requirement for a class to be considered a valid package for Visual Studio 24 | /// is to implement the IVsPackage interface and register itself with the shell. 25 | /// This package uses the helper classes defined inside the Managed Package Framework (MPF) 26 | /// to do it: it derives from the Package class that provides the implementation of the 27 | /// IVsPackage interface and uses the registration attributes defined in the framework to 28 | /// register itself and its components with the shell. These attributes tell the pkgdef creation 29 | /// utility what data to put into .pkgdef file. 30 | /// 31 | /// 32 | /// To get loaded into VS, the package must be referred by <Asset Type="Microsoft.VisualStudio.VsPackage" ...> in .vsixmanifest file. 33 | /// 34 | /// 35 | [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)] 36 | [InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)] // Info on this package for Help/About 37 | [ProvideMenuResource("Menus.ctmenu", 1)] 38 | [Guid(ConvertAppToCore3CommandPackage.PackageGuidString)] 39 | [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "pkgdef, VS and vsixmanifest are valid VS terms")] 40 | [ProvideAutoLoad(VSConstants.UICONTEXT.SolutionExists_string, PackageAutoLoadFlags.BackgroundLoad)] 41 | //[ProvideBindingPath] 42 | public sealed class ConvertAppToCore3CommandPackage : AsyncPackage 43 | { 44 | /// 45 | /// ConvertAppToCore3CommandPackage GUID string. 46 | /// 47 | public const string PackageGuidString = "90b0ae7a-ed9e-4348-b690-87fe62a92550"; 48 | 49 | /// 50 | /// Initializes a new instance of the class. 51 | /// 52 | public ConvertAppToCore3CommandPackage() 53 | { 54 | // Inside this method you can place any initialization code that does not require 55 | // any Visual Studio service because at this point the package object is created but 56 | // not sited yet inside Visual Studio environment. The place to do all the other 57 | // initialization is the Initialize method. 58 | } 59 | 60 | #region Package Members 61 | 62 | /// 63 | /// Initialization of the package; this method is called right after the package is sited, so this is the place 64 | /// where you can put all the initialization code that rely on services provided by VisualStudio. 65 | /// 66 | /// A cancellation token to monitor for initialization cancellation, which can occur when VS is shutting down. 67 | /// A provider for progress updates. 68 | /// A task representing the async work of package initialization, or an already completed task if there is none. Do not return null from this method. 69 | protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress progress) 70 | { 71 | // When initialized asynchronously, the current thread may be a background thread at this point. 72 | // Do any initialization that requires the UI thread after switching to the UI thread. 73 | await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 74 | await ConvertAppToCore3Command.InitializeAsync(this); 75 | } 76 | 77 | #endregion 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/ConvertAppToCore3CommandPackage.vsct: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 33 | 34 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 56 | 65 | 66 | 67 | 68 | 69 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/ConvertProjectToCore3.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 15.0 6 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) 7 | 8 | 9 | true 10 | 11 | 12 | true 13 | 14 | 15 | Key.snk 16 | 17 | 18 | 19 | Debug 20 | AnyCPU 21 | 2.0 22 | {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 23 | {4BE75BD6-173F-4BF4-845E-55D1F35666ED} 24 | Library 25 | Properties 26 | ConvertProjectToCore3 27 | ConvertProjectToCore3 28 | v4.6.2 29 | true 30 | true 31 | true 32 | true 33 | true 34 | false 35 | Program 36 | $(DevEnvDir)devenv.exe 37 | /rootsuffix Exp 38 | 39 | 40 | true 41 | full 42 | false 43 | bin\Debug\ 44 | DEBUG;TRACE 45 | prompt 46 | 4 47 | 48 | 49 | pdbonly 50 | true 51 | bin\Release\ 52 | TRACE 53 | prompt 54 | 4 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | Designer 69 | 70 | 71 | 72 | 73 | False 74 | 75 | 76 | False 77 | 78 | 79 | False 80 | 81 | 82 | False 83 | 84 | 85 | ..\packages\Microsoft.Build.15.8.166\lib\net46\Microsoft.Build.dll 86 | 87 | 88 | ..\packages\Microsoft.Build.Framework.15.8.166\lib\net46\Microsoft.Build.Framework.dll 89 | 90 | 91 | 92 | False 93 | 94 | 95 | ..\packages\Microsoft.VisualStudio.CoreUtility.15.0.26228\lib\net45\Microsoft.VisualStudio.CoreUtility.dll 96 | 97 | 98 | ..\packages\Microsoft.VisualStudio.Imaging.15.0.26228\lib\net45\Microsoft.VisualStudio.Imaging.dll 99 | 100 | 101 | ..\packages\Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime.14.3.25408\lib\net20\Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime.dll 102 | True 103 | 104 | 105 | ..\packages\Microsoft.VisualStudio.OLE.Interop.7.10.6071\lib\Microsoft.VisualStudio.OLE.Interop.dll 106 | 107 | 108 | ..\packages\Microsoft.VisualStudio.Setup.Configuration.Interop.1.16.30\lib\net35\Microsoft.VisualStudio.Setup.Configuration.Interop.dll 109 | True 110 | 111 | 112 | ..\packages\Microsoft.VisualStudio.Shell.15.0.15.0.26228\lib\Microsoft.VisualStudio.Shell.15.0.dll 113 | 114 | 115 | ..\packages\Microsoft.VisualStudio.Shell.Framework.15.0.26228\lib\net45\Microsoft.VisualStudio.Shell.Framework.dll 116 | 117 | 118 | ..\packages\Microsoft.VisualStudio.Shell.Interop.7.10.6071\lib\Microsoft.VisualStudio.Shell.Interop.dll 119 | 120 | 121 | ..\packages\Microsoft.VisualStudio.Shell.Interop.10.0.10.0.30319\lib\Microsoft.VisualStudio.Shell.Interop.10.0.dll 122 | True 123 | 124 | 125 | ..\packages\Microsoft.VisualStudio.Shell.Interop.11.0.11.0.61030\lib\Microsoft.VisualStudio.Shell.Interop.11.0.dll 126 | True 127 | 128 | 129 | ..\packages\Microsoft.VisualStudio.Shell.Interop.12.0.12.0.30110\lib\Microsoft.VisualStudio.Shell.Interop.12.0.dll 130 | True 131 | 132 | 133 | ..\packages\Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime.14.3.25407\lib\Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime.dll 134 | True 135 | 136 | 137 | ..\packages\Microsoft.VisualStudio.Shell.Interop.8.0.8.0.50727\lib\Microsoft.VisualStudio.Shell.Interop.8.0.dll 138 | 139 | 140 | ..\packages\Microsoft.VisualStudio.Shell.Interop.9.0.9.0.30729\lib\Microsoft.VisualStudio.Shell.Interop.9.0.dll 141 | 142 | 143 | ..\packages\Microsoft.VisualStudio.TextManager.Interop.7.10.6070\lib\Microsoft.VisualStudio.TextManager.Interop.dll 144 | 145 | 146 | ..\packages\Microsoft.VisualStudio.TextManager.Interop.8.0.8.0.50727\lib\Microsoft.VisualStudio.TextManager.Interop.8.0.dll 147 | 148 | 149 | ..\packages\Microsoft.VisualStudio.Threading.15.0.240\lib\net45\Microsoft.VisualStudio.Threading.dll 150 | 151 | 152 | ..\packages\Microsoft.VisualStudio.Utilities.15.0.26228\lib\net46\Microsoft.VisualStudio.Utilities.dll 153 | 154 | 155 | ..\packages\Microsoft.VisualStudio.Validation.15.0.82\lib\net45\Microsoft.VisualStudio.Validation.dll 156 | 157 | 158 | False 159 | 160 | 161 | 162 | ..\packages\System.Collections.Immutable.1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll 163 | 164 | 165 | 166 | 167 | 168 | 169 | ..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll 170 | True 171 | True 172 | 173 | 174 | ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll 175 | True 176 | True 177 | 178 | 179 | ..\packages\System.Threading.Tasks.Dataflow.4.5.24\lib\portable-net45+win8+wpa81\System.Threading.Tasks.Dataflow.dll 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | Menus.ctmenu 192 | 193 | 194 | 195 | 196 | true 197 | VSPackage 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 228 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/Key.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brianlagunas/ConvertProjectToCore3/4b142c0c4066907eee06b49c4fe6e91e1618e697/ConvertProjectToCore3/Key.snk -------------------------------------------------------------------------------- /ConvertProjectToCore3/ProjectData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace ConvertProjectToCore3 5 | { 6 | class ProjectData 7 | { 8 | public string AssemblyName { get; set; } 9 | public string AssemblyVersion { get; set; } 10 | public string FilePath { get; set; } 11 | public string OutputType { get; set; } 12 | public Guid ProjectGuid { get; set; } 13 | public List ProjectReferences { get; set; } 14 | public string ProjectTypeGuids { get; set; } 15 | public List Resources { get; set; } 16 | public string UsePlatform { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ConvertProjectToCore3")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ConvertProjectToCore3")] 13 | [assembly: AssemblyCopyright("")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // Version information for an assembly consists of the following four values: 23 | // 24 | // Major Version 25 | // Minor Version 26 | // Build Number 27 | // Revision 28 | // 29 | // You can specify all the values or you can default the Build and Revision Numbers 30 | // by using the '*' as shown below: 31 | // [assembly: AssemblyVersion("1.0.*")] 32 | [assembly: AssemblyVersion("1.0.0.0")] 33 | [assembly: AssemblyFileVersion("1.0.0.0")] 34 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/Resources/ConvertAppToCore3Command.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brianlagunas/ConvertProjectToCore3/4b142c0c4066907eee06b49c4fe6e91e1618e697/ConvertProjectToCore3/Resources/ConvertAppToCore3Command.png -------------------------------------------------------------------------------- /ConvertProjectToCore3/Resources/ConvertAppToCore3CommandPackage.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brianlagunas/ConvertProjectToCore3/4b142c0c4066907eee06b49c4fe6e91e1618e697/ConvertProjectToCore3/Resources/ConvertAppToCore3CommandPackage.ico -------------------------------------------------------------------------------- /ConvertProjectToCore3/VSPackage.resx: -------------------------------------------------------------------------------- 1 |  2 | 12 | 13 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | text/microsoft-resx 120 | 121 | 122 | 2.0 123 | 124 | 125 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 126 | 127 | 128 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 129 | 130 | 131 | 132 | ConvertAppToCore3Command Extension 133 | 134 | 135 | ConvertAppToCore3Command Visual Studio Extension Detailed Info 136 | 137 | 138 | Resources\ConvertAppToCore3CommandPackage.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 139 | 140 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /ConvertProjectToCore3/source.extension.vsixmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Convert Project To .NET Core 3 6 | This extension converts a WPF application from the .NET Framework to .NET Core 3. 7 | https://github.com/brianlagunas/ConvertProjectToCore3 8 | wpf, .net core 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Brian Lagunas 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Convert a .NET Framework Project To .NET Core 3 2 | This Visual Studio Extension converts a WPF application built with the .NET Framework to a .NET Core 3 application. 3 | 4 | Install the extension from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=BrianLagunas.ConvertProjectToNETCore3) 5 | 6 | # Usage 7 | Simply right-click your WPF project and select the "Convert Project to .NET Core 3" option. 8 | 9 | ![Convert Project to .NET Core 3](images/convert-to-core-menu.jpg) 10 | 11 | # Details 12 | When you convert your application, the extension will update your CSPROJ file to the new .NET Core SDK style format. 13 | 14 | What it keeps: 15 | - Maintains the project version (uses AssemblyVersion) 16 | - Maintains property groups 17 | - Maintains all project references 18 | - Maintains all items where the "Build Action" is Resource (everything else is removed) 19 | - Maintains all NuGet packages (it deletes the packages.config file) 20 | - Comments out all Assembly related attributes in the AssemblyInfo.cs file -------------------------------------------------------------------------------- /images/convert-to-core-menu.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brianlagunas/ConvertProjectToCore3/4b142c0c4066907eee06b49c4fe6e91e1618e697/images/convert-to-core-menu.jpg --------------------------------------------------------------------------------