Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip loading a project in MonoDevelop/Visual Studio

I have a Visual Studio (2010/2012) solution that contains multiple projects; some are in WPF and therefore incompatible with MonoDevelop (version 3.0.5) or Mono.

When I open the solution in MonoDevelop, I get a popup saying (for each project that is incompatible):

Could not load project '{project path}' with unknown item type {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}

I could remove the specific projects from the solution file, but then I would need to maintain two solution files (one for Visual Studio, one for MonoDevelop).

I already know how to skip specific projects during the build (in the build configuration); I am looking for any similar way to silently fail/skip specific projects when loading the solution, to avoid the popup. Your help is appreciated.

like image 775
Erwin Mayer Avatar asked Dec 30 '25 23:12

Erwin Mayer


2 Answers

After installing Unity 5.4.2f2 on OSX El Capitan 10.11.16 and creating and opening my first script in MonoDevelop 5.9.6 I got the same popup error: Could not load project'Assembly-CSharp.csproj' with unknown item type '{...}'

I solved it by navigating to the following menu and enabling MonoDevelop Assembly Browser:

MonoDevelop-Unity > Add-in Manager > Installed > IDE Extensions > MonoDevelop Assembly Browser > Enable

like image 135
Luke Schoen Avatar answered Jan 01 '26 12:01

Luke Schoen


You can open the solution in Visual Studio, right click on the projects you need to exclude one by one and select Unload Project from the menu. Save your solution and open it in MonoDevelop.

All you need to do is to click on Load Project in the same location when you open the solution again in Visual Studio.

Unload Project

like image 42
Moslem Ben Dhaou Avatar answered Jan 01 '26 11:01

Moslem Ben Dhaou