mono / monodevelop

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

MonoDevelop 6 does not build on openSUSE #9517

Open Mailaender opened 4 years ago

Mailaender commented 4 years ago

I was trying to build MonoDevelop 6.0.0.4761 in the hopes that this was a version that is able to build using the source code provided. It also errors, because of unresolved dependencies:

[  185s] /home/abuild/rpmbuild/BUILD/monodevelop-6.0/external/RefactoringEssentials/RefactoringEssentials/RefactoringEssentials.csproj (default targets) ->
[  185s] /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (ResolveAssemblyReferences target) ->
[  185s] 
[  185s]    /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'System.Reflection.Metadata' not resolved
[  185s]    /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'System.Collections.Immutable' not resolved
[  185s]    /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Microsoft.CodeAnalysis.Workspaces' not resolved
[  185s]    /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Microsoft.CodeAnalysis.VisualBasic.Workspaces' not resolved
[  185s]    /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Microsoft.CodeAnalysis.VisualBasic' not resolved
[  185s]    /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Microsoft.CodeAnalysis.CSharp.Workspaces' not resolved
[  185s]    /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Microsoft.CodeAnalysis.CSharp' not resolved
[  185s]    /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Microsoft.CodeAnalysis.Workspaces.Desktop' not resolved
[  185s]    /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Microsoft.CodeAnalysis' not resolved
[  185s]    /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'System.Composition.AttributedModel' not resolved

See also https://build.opensuse.org/package/show/home:Mailaender:branches:Mono/monodevelop

scherenhaenden commented 4 years ago

https://www.nuget.org/packages?q=Microsoft.CodeAnalysis.Workspaces

those are normal packages from nuget...

Mailaender commented 4 years ago

The following packages are downloaded with the provided build scripts:

ICSharpCode.NRefactory.5.5.1/
LibGit2Sharp.NativeBinaries.1.0.81/
Microsoft.AspNet.Mvc.5.2.3/
Microsoft.AspNet.Razor.3.2.3/
Microsoft.AspNet.WebPages.3.2.3/
Microsoft.Web.Infrastructure.1.0.0.0/
Mono.Cecil.0.9.5.4/
Newtonsoft.Json.6.0.8/
NUnit.2.6.4/
NUnit.3.0.1/
NUnit.Engine.3.0.1/
NUnit.Runners.2.6.4/
SharpZipLib.0.86.0/

Microsoft.CodeAnalysis.Workspaces is clearly missing.

scherenhaenden commented 4 years ago

why usr/lib/mono/xbuild/14.0?

Mailaender commented 4 years ago

I think because Mono does not ship the proper msbuild by default.

Mailaender commented 4 years ago

https://www.nuget.org/packages?q=Microsoft.CodeAnalysis.Workspaces

"17.859 packages returned for Microsoft.CodeAnalysis.Workspaces"

Which one would you recommend?

scherenhaenden commented 4 years ago

I see you are using Monodevelop6. That might be the reason.

Is there any reason why you are using that version?

Mailaender commented 4 years ago

I thought I'd try an older version as the later ones are known to be broken. https://github.com/mono/monodevelop/issues/8600 https://github.com/mono/monodevelop/issues/6808 https://github.com/mono/monodevelop/issues/9487 https://github.com/mono/monodevelop/issues/8006 etc.

scherenhaenden commented 4 years ago

I use the 7.8.2. It works at least...