mono / monodevelop

MonoDevelop is a cross platform .NET IDE
http://www.monodevelop.com
2.84k stars 1.02k forks source link

Can not debug Mono base class library #7414

Open joyinfo opened 5 years ago

joyinfo commented 5 years ago

OS: macOS 10.14.4 MonoDevelop 7.6.9

I set up the following the link below: https://www.mono-project.com/docs/advanced/bcl-debugging/

After I changed the Active Runtime, I can not build or clean my project.

I also tried with Visual Studio for Mac 8.0.4, there was same result, I checked the Ide.log of Visual Studio for Mac, there are lots of error below:

ERROR [2019-04-22 11:53:23Z]: Clean failed. System.Exception: Did not find MSBuild for runtime Mono 5.18.1.3 at MonoDevelop.Projects.MSBuild.MSBuildProjectService.GetMSBuildBinPath (MonoDevelop.Core.Assemblies.TargetRuntime runtime) [0x00000] in /Users/vsts/agent/2.149.2/work/1/s/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildProjectService.cs:1069 at MonoDevelop.Projects.MSBuild.RemoteBuildEngineManager.GetBuildEngine (MonoDevelop.Core.Assemblies.TargetRuntime runtime, System.String minToolsVersion, System.String solutionFile, System.String group, System.Object buildSessionId, System.Boolean setBusy, System.Boolean allowBusy) [0x00074] in /Users/vsts/agent/2.149.2/work/1/s/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/RemoteBuildEngineManager.cs:176 at MonoDevelop.Projects.MSBuild.RemoteBuildEngineManager.GetRemoteProjectBuilder (System.String projectFile, System.String solutionFile, MonoDevelop.Core.Assemblies.TargetRuntime runtime, System.String minToolsVersion, System.Object buildSessionId, System.Boolean setBusy, System.Boolean allowBusy) [0x000c7] in /Users/vsts/agent/2.149.2/work/1/s/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/RemoteBuildEngineManager.cs:156 at MonoDevelop.Projects.Project.GetProjectBuilder (System.Threading.CancellationToken token, MonoDevelop.Projects.OperationContext context, System.Boolean setBusy, System.Boolean allowBusy) [0x000b5] in /Users/vsts/agent/2.149.2/work/1/s/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:1634 at MonoDevelop.Projects.Project+<>c__DisplayClass151_0.b__0 () [0x000d9] in /Users/vsts/agent/2.149.2/work/1/s/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:1388 at MonoDevelop.Projects.Project.RunMSBuildTarget (MonoDevelop.Core.ProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.TargetEvaluationContext context) [0x00270] in /Users/vsts/agent/2.149.2/work/1/s/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:1375 at MonoDevelop.Projects.Project.DoRunTarget (MonoDevelop.Core.ProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.TargetEvaluationContext context) [0x002a2] in /Users/vsts/agent/2.149.2/work/1/s/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:1345 at MonoDevelop.Projects.Project.OnClean (MonoDevelop.Core.ProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.OperationContext buildSession) [0x0004b] in /Users/vsts/agent/2.149.2/work/1/s/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:2237 at MonoDevelop.Projects.SolutionItem.CleanTask (MonoDevelop.Core.ProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.OperationContext operationContext) [0x001b7] in /Users/vsts/agent/2.149.2/work/1/s/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs:767 at MonoDevelop.Ide.ProjectOperations.CleanAsync (MonoDevelop.Projects.IBuildTarget entry, MonoDevelop.Core.ProgressMonitor monitor, MonoDevelop.Core.Instrumentation.ITimeTracker tt, System.Boolean isRebuilding, MonoDevelop.Projects.OperationContext operationContext) [0x0005f] in /Users/vsts/agent/2.149.2/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs:1258 ERROR [2019-04-22 11:53:23Z]: Clean failed.

Therzok commented 5 years ago

Is this using Mono 6.x? MSBuild 16.0 is not supported yet in master.