try-convert still rejecting projects that reference System.Web
See original GitHub issueHello, I am using version 0.4.125402 for try-convert and still having rejection of projects that reference System.Web :
λ try-convert -w ImageViewer.sln C:\Users\xxx\Documents\GitHub\ClearCanvas\Common\ClearCanvas.Common.csproj contains a reference to System.Web, which is not supported on .NET Core. You may have significant work ahead of you to fully port this project. System.IO.IOException: The file ‘C:\Users\xxx\Documents\GitHub\ClearCanvas\Common\ClearCanvas.Common.csproj.old’ already exists. at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite) at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) at System.IO.File.Copy(String sourceFileName, String destFileName) at MSBuild.Abstractions.MSBuildWorkspace…ctor(ImmutableArray`1 paths, Boolean noBackup) in //src/MSBuild.Abstractions/MSBuildWorkspace.cs:line 41 at MSBuild.Abstractions.MSBuildWorkspaceLoader.LoadWorkspace(String path, Boolean noBackup) in //src/MSBuild.Abstractions/MSBuildWorkspaceLoader.cs:line 45 at MSBuild.Conversion.Program.Run(String project, String workspace, String msbuildPath, String tfm, Boolean allowPreviews, Boolean diffOnly, Boolean noBackup) in /_/src/try-convert/Program.cs:line 93
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
@MaherJendoubi Thanks. This error happens when you have nonstandard imports. There’s no telling what kinds of targets are getting loaded and if they’re compatible with .NET Core, so the tool rejects projects when it sees this. It does mean that even if the targets are runnable on .NET Core, the project gets rejected. This might be something that can be handled more intricately, but since you can specify pretty much anything in a target we take the safe route and just actively reject it.
@cartermp The project is open-source https://github.com/ClearCanvas/ClearCanvas