question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

try-convert still rejecting projects that reference System.Web

See original GitHub issue

Hello, 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cartermpcommented, May 6, 2020

@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.

0reactions
MaherJendoubicommented, May 6, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to migrate .NET Framework 4.7.2 project to .NET Core ...
Migration · 1.Replace packages.config with PackageReference. · 2.Migrate to the SDK-style .csproj file. · 3.Move from .NET Framework to . · 4.In the ......
Read more >
Port from .NET Framework to .NET 7 - .NET Core
This article provides an overview of what you should consider when porting your code from .NET Framework to .NET (formerly named .NET Core)....
Read more >
Olia Gavrysh, Author at .NET Blog
Support for SDK-style projects that are using System.Web . Before, web projects that were manually converted to SDK-style but still were ...
Read more >
Problems with system.web.dll in .NET CORE 3.1 : r/dotnet
Hi! Today i start a project in .NET CORE 3.1 and i start with the basic things (login) When i call FormsAuthentication for...
Read more >
Untitled
Best american stand up comedians, Legrand under cabinet lighting system installation, ... Can't build parking lot in project highrise, 21 pilots songs 2018, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found