mrward/monodevelop-dnx-addin

Opening solution fails to load projects

jchannon opened this issue · 16 comments

See below, any ideas?

screen shot 2016-06-15 at 11 20 59

Is the DNX addin enabled? I would take a look in the Add-in Manager (Xamarin Studio - Add-ins) and see if the DNX addin is enabled. It should be in the IDE Extensions category.

I believe so:

screen shot 2016-06-15 at 11 32 27

Is there anything in the IDE log? (Help - Open Log Directory).

It looks like the DNX addin is not being loaded. The Unknown solution item type exception is thrown if it cannot find anything to load a project. Even if the project type guid is wrong in the solution, which it probably is not, the DNX addin will still handle any .xproj files.

Can you create a new .NET Core project?

Might be worth restarting Xamarin Studio and seeing if the DNX addin is loaded in the IDE log.

Doesn't look it loaded it and didn't recognise the xproj

INFO [2016-06-15 11:52:58Z]: Starting Xamarin Studio 6.0 (build 5174)
INFO [2016-06-15 11:52:58Z]: Running on Mono 4.4.0 (mono-4.4.0-branch-c7-baseline/5995f74) (64-bit)
INFO [2016-06-15 11:52:58Z]: Operating System: Mac OS X 10.11.5
Darwin MacBook-Pro.local 15.5.0 Darwin Kernel Version 15.5.0
    Tue Apr 19 18:36:36 PDT 2016
    root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
INFO [2016-06-15 11:52:58Z]: GTK: Using gtkrc from /Applications/Xamarin Studio.app/Contents/Resources/lib/monodevelop/bin/gtkrc.mac-dark
2016-06-15 11:52:58.706 XamarinStudio[35429:12916989] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 
INFO [2016-06-15 11:52:58Z]: Using GTK+ 2.24.23
INFO [2016-06-15 11:52:58Z]: Add-in loaded: MonoDevelop.Core
INFO [2016-06-15 11:52:58Z]: Add-in loaded: MonoDevelop.Ide
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.MacPlatform
INFO [2016-06-15 11:52:59Z]: Initializing Runtime Mono 4.4.0
Starting Xamarin Studio
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.Debugger
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.SourceEditor2
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.TextTemplating
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.DesignerSupport
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.Xml
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.AspNet
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.UnitTesting
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.RegexToolkit
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.Refactoring
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.CSharpBinding
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.PackageManagement
INFO [2016-06-15 11:52:59Z]: Add-in loaded: Xamarin.Ide.Insights
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.Xamarin.Ide
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.Xamarin.Ide.Mac
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.VersionControl
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.MacDev
INFO [2016-06-15 11:52:59Z]: Add-in loaded: Xamarin.TestCloud
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.Debugger.Soft
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.IPhone
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.FSharpBinding
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.MonoAndroid
INFO [2016-06-15 11:52:59Z]: Add-in loaded: Xamarin.Forms.Addin
INFO [2016-06-15 11:52:59Z]: Add-in loaded: MonoDevelop.VBBinding
INFO [2016-06-15 11:53:01Z]: Add-in loaded: MonoDevelop.Dnx
INFO [2016-06-15 11:53:01Z]: Add-in loaded: MonoDevelop.MonoMac
   Loading Workbench
INFO [2016-06-15 11:53:01Z]: Add-in loaded: Xamarin.TestCloud.NUnit
INFO [2016-06-15 11:53:01Z]: Add-in loaded: MonoDevelop.WebReferences
INFO [2016-06-15 11:53:01Z]: Add-in loaded: MonoDevelop.AssemblyBrowser
INFO [2016-06-15 11:53:01Z]: Add-in loaded: MonoDevelop.GtkCore
INFO [2016-06-15 11:53:01Z]: Add-in loaded: MonoDevelop.DocFood
INFO [2016-06-15 11:53:01Z]: Add-in loaded: MonoDevelop.VersionControl.Git
INFO [2016-06-15 11:53:01Z]: Found Xcode, version 7.3.1 (10188.1).
INFO [2016-06-15 11:53:01Z]: Found Xamarin.iOS, version 9.8.0.323.
INFO [2016-06-15 11:53:02Z]: No license found for iOS
INFO [2016-06-15 11:53:02Z]: Running license sync for iOS
INFO [2016-06-15 11:53:02Z]: ANDROID: Found Xamarin.Android 6.1.0
INFO [2016-06-15 11:53:02Z]: ANDROID: Found Android SDK. API levels: 10, 15, 19
INFO [2016-06-15 11:53:02Z]: No license found for Android
INFO [2016-06-15 11:53:02Z]: Running license sync for Android
      Initializing Main Window
INFO [2016-06-15 11:53:02Z]: Creating DefaultWorkbench
INFO [2016-06-15 11:53:02Z]: Found MonoMac.
INFO [2016-06-15 11:53:02Z]: Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
INFO [2016-06-15 11:53:02Z]: Read license: iOS Community
INFO [2016-06-15 11:53:02Z]: Read license: iOS Community
INFO [2016-06-15 11:53:02Z]: Read license: iOS Community
INFO [2016-06-15 11:53:02Z]: Updating Welcome Page from 'https://software.xamarin.com/Service/News'.
INFO [2016-06-15 11:53:02Z]: Updating Prebuilt Apps from 'https://xamarin.com/PrebuiltApps.xml'.
INFO [2016-06-15 11:53:03Z]: Read license: iOS Community
INFO [2016-06-15 11:53:03Z]: Read license: iOS Community
INFO [2016-06-15 11:53:03Z]: Add-in loaded: MonoDevelop.UnitTesting.NUnit
INFO [2016-06-15 11:53:03Z]: Welcome Page updated.
INFO [2016-06-15 11:53:03Z]: Updated license: Android Community
INFO [2016-06-15 11:53:03Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion
INFO [2016-06-15 11:53:03Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion.Unix
INFO [2016-06-15 11:53:03Z]: Prebuilt Apps image already up-to-date.
INFO [2016-06-15 11:53:03Z]: Prebuilt Apps image already up-to-date.
INFO [2016-06-15 11:53:03Z]: Updated license: iOS Business 20/10/2015 18:41:34
INFO [2016-06-15 11:53:03Z]: Checking whether iOS license valid for installed version.
INFO [2016-06-15 11:53:03Z]: Prebuilt Apps image already up-to-date.
INFO [2016-06-15 11:53:03Z]: Prebuilt Apps image already up-to-date.
ERROR [2016-06-15 11:53:03Z]: mtouch: error MT9000: This version was released after your subscription expired (20/10/2015 18:41:34).
ERROR [2016-06-15 11:53:03Z]: Read invalid license: iOS Business 2015-10-20 19:41:34Z. This version was released after your subscription expired (20/10/2015 18:41:34). (MT9000)
INFO [2016-06-15 11:53:03Z]: Found UseDefaultEdition file for iOS, downgrading
INFO [2016-06-15 11:53:04Z]: Prebuilt Apps already up-to-date.
INFO [2016-06-15 11:53:04Z]: Prebuilt Apps updated.
INFO [2016-06-15 11:53:04Z]: Prebuilt Apps image already up-to-date.
ERROR [2016-06-15 11:56:26Z]:ERROR [2016-06-15 11:56:26Z]: Error while trying to load the project /Users/jonathan/Projects/vq/src/VQConsole/VQConsole.xproj
MonoDevelop.Projects.MSBuild.UnknownSolutionItemTypeException: Unknown solution item type
  at MonoDevelop.Projects.ProjectService+<ReadSolutionItem>c__AnonStoreyB+<ReadSolutionItem>c__asyncA.MoveNext () [0x00103] in /Users/builder/data/lanes/3342/694a75f0/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:124 
 Error while trying to load the project /Users/jonathan/Projects/vq/src/Enums/Enums.xproj
MonoDevelop.Projects.MSBuild.UnknownSolutionItemTypeException: Unknown solution item type
  at MonoDevelop.Projects.ProjectService+<ReadSolutionItem>c__AnonStoreyB+<ReadSolutionItem>c__asyncA.MoveNext () [0x00103] in /Users/builder/data/lanes/3342/694a75f0/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:124 
ERROR [2016-06-15 11:56:26Z]: Error while trying to load the project /Users/jonathan/Projects/vq/src/VQCore/VQCore.xproj
MonoDevelop.Projects.MSBuild.UnknownSolutionItemTypeException: Unknown solution item type
  at MonoDevelop.Projects.ProjectService+<ReadSolutionItem>c__AnonStoreyB+<ReadSolutionItem>c__asyncA.MoveNext () [0x00103] in /Users/builder/data/lanes/3342/694a75f0/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:124 
ERROR [2016-06-15 11:56:26Z]: Error while trying to load the project /Users/jonathan/Projects/vq/src/VQViewModels/VQViewModels.xproj
MonoDevelop.Projects.MSBuild.UnknownSolutionItemTypeException: Unknown solution item type
  at MonoDevelop.Projects.ProjectService+<ReadSolutionItem>c__AnonStoreyB+<ReadSolutionItem>c__asyncA.MoveNext () [0x00103] in /Users/builder/data/lanes/3342/694a75f0/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:124 
ERROR [2016-06-15 11:56:26Z]: Error while trying to load the project /Users/jonathan/Projects/vq/src/NovellLdap2/NovellLdap2.xproj
MonoDevelop.Projects.MSBuild.UnknownSolutionItemTypeException: Unknown solution item type
  at MonoDevelop.Projects.ProjectService+<ReadSolutionItem>c__AnonStoreyB+<ReadSolutionItem>c__asyncA.MoveNext () [0x00103] in /Users/builder/data/lanes/3342/694a75f0/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:124 
WARNING [2016-06-15 11:56:26Z]: /Users/jonathan/Projects/vq/VQConsole.sln (46) : Project with guid = '{9B5D110C-40B9-4919-B205-6BD96443D0CB}' not found or not loaded. Ignoring
ERROR [2016-06-15 11:56:27Z]: Could not load Apache mime database
System.IO.IOException: Too many open files
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00335] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/FileStream.cs:290 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/FileStream.cs:97 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/File.cs:341 
  at MonoDevelop.MacIntegration.MimeMapLoader.LoadMimeMap (System.String fileName) <0x11f2dc640 + 0x00030> in <filename unknown>:0 
  at MonoDevelop.MacIntegration.MacPlatformService.LoadMimeMapAsync () [0x00034] in /Users/builder/data/lanes/3342/694a75f0/source/monodevelop/main/src/addins/MacPlatform/MacPlatform.cs:198 
ERROR [2016-06-15 11:56:27Z]: .NET Core project system initialize failed.
System.IO.IOException: Too many open files
  at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00063] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:498 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:296 
  at OmniSharp.Utilities.DirectoryEnumerator.SafeEnumerateFiles (System.String target, System.String pattern) <0x11f50ecb0 + 0x00123> in <filename unknown>:0 
  at OmniSharp.Dnx.DnxProjectSystem.ScanForProjects () <0x11f50e260 + 0x00208> in <filename unknown>:0 
  at OmniSharp.Dnx.DnxProjectSystem.Initalize () <0x11f50dfb0 + 0x000bd> in <filename unknown>:0 
  at MonoDevelop.Dnx.DnxProjectService.LoadDnxProjectSystem (MonoDevelop.Projects.Solution solution) <0x11f15edf0 + 0x0018c> in <filename unknown>:0 
  at MonoDevelop.Dnx.DnxProjectService.OnSolutionLoaded (MonoDevelop.Projects.Solution solution) <0x11f15d500 + 0x0004a> in <filename unknown>:0 
INFO [2016-06-15 11:56:32Z]: PackageRepository failure.
System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00065] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Net/HttpWebRequest.cs:1007 
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Net/HttpWebRequest.cs:1019 
  at NuGet.RequestHelper.GetResponse () <0x12bde0040 + 0x00599> in <filename unknown>:0 
  --- End of inner exception stack trace ---
---> (Inner Exception #0) System.Net.WebException: The remote server returned an error: (404) Not Found.
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00065] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Net/HttpWebRequest.cs:1007 
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Net/HttpWebRequest.cs:1019 
  at NuGet.RequestHelper.GetResponse () <0x12bde0040 + 0x00599> in <filename unknown>:0 <---

INFO [2016-06-15 11:56:32Z]: PackageRepository failure.
System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00065] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Net/HttpWebRequest.cs:1007 
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Net/HttpWebRequest.cs:1019 
  at NuGet.RequestHelper.GetResponse () <0x12bde0040 + 0x00599> in <filename unknown>:0 
  --- End of inner exception stack trace ---
---> (Inner Exception #0) System.Net.WebException: The remote server returned an error: (400) Bad Request.
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00065] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Net/HttpWebRequest.cs:1007 
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /private/tmp/source-mono-4.4.0-c7-baseline/bockbuild-mono-4.4.0-c7-baseline/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Net/HttpWebRequest.cs:1019 
  at NuGet.RequestHelper.GetResponse () <0x12bde0040 + 0x00599> in <filename unknown>:0 <---


Interesting. I can see the DNX addin being loaded.

Add-in loaded: MonoDevelop.Dnx

I can see some parts of the DNX addin being used, and failing with too many files open error, so it looks like it is available.

DnxProjectService.OnSolutionLoaded

However then your project is still failing to load for some reason

Error while trying to load the project /Users/jonathan/Projects/vq/src/VQConsole/VQConsole.xproj
MonoDevelop.Projects.MSBuild.UnknownSolutionItemTypeException: Unknown solution item type

Would you be able to send me the .sln file and the VQConsole.xproj file? I will see if I can repro it locally.

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "VQClassFactory", "src\VQClassFactory\VQClassFactory.xproj", "{9DC9AD68-0BD5-4B7D-8C33-6136479EC520}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Enums", "src\Enums\Enums.xproj", "{972009D8-8419-4FCE-99D2-EC6EAE51DDB1}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "VQViewModels", "src\VQViewModels\VQViewModels.xproj", "{25A3EBFE-1948-4383-9E54-0A244C9A3E1D}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "VQCore", "src\VQCore\VQCore.xproj", "{047043B6-DF18-41C3-8485-7681C1545C68}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "VQConsole", "src\VQConsole\VQConsole.xproj", "{B003FB22-5B24-4317-ADE2-7750A4E81B8B}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "NovellLdap2", "src\NovellLdap2\NovellLdap2.xproj", "{B9EB05EF-342E-4A59-AE63-C93B7BD9B8AD}"
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Any CPU = Debug|Any CPU
        Release|Any CPU = Release|Any CPU
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {9DC9AD68-0BD5-4B7D-8C33-6136479EC520}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {9DC9AD68-0BD5-4B7D-8C33-6136479EC520}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {9DC9AD68-0BD5-4B7D-8C33-6136479EC520}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {9DC9AD68-0BD5-4B7D-8C33-6136479EC520}.Release|Any CPU.Build.0 = Release|Any CPU
        {972009D8-8419-4FCE-99D2-EC6EAE51DDB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {972009D8-8419-4FCE-99D2-EC6EAE51DDB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {972009D8-8419-4FCE-99D2-EC6EAE51DDB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {972009D8-8419-4FCE-99D2-EC6EAE51DDB1}.Release|Any CPU.Build.0 = Release|Any CPU
        {25A3EBFE-1948-4383-9E54-0A244C9A3E1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {25A3EBFE-1948-4383-9E54-0A244C9A3E1D}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {25A3EBFE-1948-4383-9E54-0A244C9A3E1D}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {25A3EBFE-1948-4383-9E54-0A244C9A3E1D}.Release|Any CPU.Build.0 = Release|Any CPU
        {047043B6-DF18-41C3-8485-7681C1545C68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {047043B6-DF18-41C3-8485-7681C1545C68}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {047043B6-DF18-41C3-8485-7681C1545C68}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {047043B6-DF18-41C3-8485-7681C1545C68}.Release|Any CPU.Build.0 = Release|Any CPU
        {B003FB22-5B24-4317-ADE2-7750A4E81B8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {B003FB22-5B24-4317-ADE2-7750A4E81B8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {B003FB22-5B24-4317-ADE2-7750A4E81B8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {B003FB22-5B24-4317-ADE2-7750A4E81B8B}.Release|Any CPU.Build.0 = Release|Any CPU
        {9B5D110C-40B9-4919-B205-6BD96443D0CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {9B5D110C-40B9-4919-B205-6BD96443D0CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {9B5D110C-40B9-4919-B205-6BD96443D0CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {9B5D110C-40B9-4919-B205-6BD96443D0CB}.Release|Any CPU.Build.0 = Release|Any CPU
        {B9EB05EF-342E-4A59-AE63-C93B7BD9B8AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {B9EB05EF-342E-4A59-AE63-C93B7BD9B8AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {B9EB05EF-342E-4A59-AE63-C93B7BD9B8AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {B9EB05EF-342E-4A59-AE63-C93B7BD9B8AD}.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
EndGlobal





<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0.25123" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0.25123</VisualStudioVersion>
    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
  </PropertyGroup>
  <Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
  <PropertyGroup Label="Globals">
    <ProjectGuid>b003fb22-5b24-4317-ade2-7750a4e81b8b</ProjectGuid>
    <RootNamespace>VQConsole</RootNamespace>
    <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
    <OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
  </PropertyGroup>

  <PropertyGroup>
    <SchemaVersion>2.0</SchemaVersion>
  </PropertyGroup>
  <Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>

Tried another project and that seemed to work after removing a 4.6 TargetFramework in a xproj

https://github.com/jchannon/NancyVsVapor

Thanks. I can repro it with those files.

So the problem seems to be that Xamarin Studio does not like the ToolsVersion in the .xproj file:

ToolsVersion="14.0.25123"

If I change that to be ToolsVersion="14.0" then Xamarin Studio is happy and the project loads correctly.

Which version of Visual Studio were these files created in? I suspect Xamarin Studio will need to be updated to handle the new ToolsVersion.

This was created in VS2015 Update 2

On 15 June 2016 at 15:45, Matt Ward notifications@github.com wrote:

Thanks. I can repro it with those files.

So the problem seems to be that Xamarin Studio does not like the
ToolsVersion in the .xproj file:

ToolsVersion="14.0.25123"

If I change that to be ToolsVersion="14.0" then Xamarin Studio is happy
and the project loads correctly.

Which version of Visual Studio were these files created in? I suspect
Xamarin Studio will need to be updated to handle the new ToolsVersion.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#32 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGaprWo6iMQ4debvvFvQhBl8amOQeDsks5qMBAUgaJpZM4I2NYL
.

I added a workaround to the DNX addin so it can load .xproj files created by VS 2015 Update 2.

I have uploaded a build of the DNX addin to GitHub with this problem fixed:

https://github.com/mrward/temp-addin-upload/blob/master/Dnx/MonoDevelop.Dnx_0.4.1.mpack

csj commented

Experienced a similar issue with VS for Mac failing to open a legacy project that had been created in VS for Windows with some of the projects not loading.
The ones that loaded properly had: <Project ToolsVersion="12.0"
and the ones that didn't had: <Project ToolsVersion="12"

Manually patching these up caused VS for Mac to properly open the projects.

This appears to be a problem again with VS2017. The csproj files are created with <Project ToolsVersion="15.0" ... which prevents them from being loaded.

@farpoke - VS 2017 does not support xproj as far as I am aware. I believe VS 2017 will migrate it to a csproj. So in that case the DNX addin would not be used. Can you provide more information such as steps to reproduce the problem you are seeing?

@mrward - Sorry for being vague, I have a project that was developed with VS2017 that I am migrating to Mono. So the csproj file was created with toolset 15.0 by VS and Xamarin/Mono appears to choke on that. I haven't really dealt with this before and realised soon after commenting that this might have nothing to do with DNX, sorry if that's the case.

Support was added in VS Mac/MonoDevelop 7.0 for toolset 15.0. I believe Mono 5.0 and later include msbuild 15.