You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CodeConv/CodeConvProgram.cs
-43Lines changed: 0 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -56,9 +56,6 @@ public partial class CodeConvProgram
56
56
[Option("-f|--force","Wipe the output directory before conversion",CommandOptionType.NoValue)]
57
57
publicboolForce{get;}
58
58
59
-
[Option(CoreOptionDefinition,"Force dot net core build if converting only .NET Core projects and seeing pre-conversion compile errors",CommandOptionType.NoValue)]
60
-
publicboolCoreOnlyProjects{get;}
61
-
62
59
[Option("-b|--best-effort","Overrides warnings about compilation issues with input, and attempts a best effort conversion anyway",CommandOptionType.NoValue)]
63
60
publicboolBestEffort{get;}
64
61
@@ -74,12 +71,6 @@ public partial class CodeConvProgram
74
71
75
72
privateasyncTask<int>ExecuteAsync()
76
73
{
77
-
// Ideally we'd be able to use MSBuildLocator.QueryVisualStudioInstances(DiscoveryType.VisualStudioSetup) from .NET core, but it will never be supported: https://github.com/microsoft/MSBuildLocator/issues/61
78
-
// Instead, if MSBuild 16.0+ is available, start a .NET framework process and let it run with that
79
-
if(_runningInNetCore&&!CoreOnlyProjects){
80
-
awaitConsole.Error.WriteLineAsync($"Net Framework projects detected. This is not supported after codeconv 9.2.7. Run an older version from github.com/icsharpcode/CodeConverter");
netFrameworkExe=File.Exists(debugNetFrameworkExe)?debugNetFrameworkExe:thrownewFileNotFoundException($"Cannot find net framework exe at `{netFrameworkExe}`. Using the --core-only flag to get work around this.");
0 commit comments