Mono - missing file gnome-sharp at the momment to compile the gnome sample application - mono

Latter of to create a new sample solution in monodevelop.
Mono -> New Solution -> C# -> Examples -> Gnome 2.0 Project
I found the next errors at the momment to compile the gnome sample application.
Building: test (Debug)
Construyendo solución test
Building: test (Debug)
Realizando compilación principal...
Compilation failed: 2 error(s), 0 warnings
/Projects/test/test/MyProgram.cs(8,7): error CS0246: The type or namespace name `Gnome' could not be found. Are you missing a using directive or an assembly reference?
Construcción finalizada -- 2 errores, 0 advertencias
The gnome-sharp file, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f was not found or is invalid.
Construcción: 2 errors, 0 warnings
Anyone know how to fix this issue?
My environment is: Monodevelop 2.0 (Alpha 1), Linux Fedora 10
[root#internet sandovaledwin]# rpm -qa mono*
monodoc-2.2-2.fc10.i386
monodevelop-1.9-8.fc10.i386
mono-core-2.2-2.fc10.i386
mono-winforms-2.2-2.fc10.i386
mono-addins-0.3.1-3.fc10.3.i386
mono-data-2.2-2.fc10.i386
mono-web-2.2-2.fc10.i386
mono-nunit22-2.2.10-7.fc10.i386
mono-extras-2.2-2.fc10.i386
mono-basic-2.2-1.fc10.i386
mono-data-sqlite-2.2-2.fc10.i386

you need to install the gnome-sharp package

Related

wine tells me to install .NET and mono gives error "File does not contain a valid CIL image."

i want to run hunterpie.exe . I've test wine (i've installed wine-mono) which tells me :
A fatal error occurred. The required library hostfxr.dll could not be found.
If this is a self-contained application, that library should exist in [Z:\home\osafaimal\.local\share\Steam\steamapps\common\MonsterHunterRise\HunterPie\].
If this is a framework-dependent application, install the runtime in the global location [C:\Program Files\dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation].
The .NET runtime can be found at:
- https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=win7-x64&apphost_version=5.0.1
002c:err:eventlog:ReportEventW L"Description: A .NET application failed.\nApplication: HunterPie.exe\nPath: Z:\\home\\osafaimal\\.local\\share\\Steam\\steamapps\\common\\MonsterHunterRise\\HunterPie\\HunterPie.exe\nMessage: A fatal error occurred. The required library hostfxr.dll could not be found.\nIf this is a self-co"...
i've test to install .NET on my computer (Ubuntu 21.10 x86_64), Same error.
i've test to run with mono and it gives:
Cannot open assembly 'HunterPie.exe': File does not contain a valid CIL image.
Can someone explains what I should to do?

vs2019 wxwidgets sample hello world -> "wxstrcoll not found"

Seems like many people hit this and there seems to be no solution that I can find.
Follow exact instructions, downloaded precompiled libs, v 3.0.5 - latest stable build
set wxwin env var
make new 32bit empty project
copy the hello world app into new source file
set additional include
set preproc defintions -> UNICODE & _UNICODE on
set linker libs
build ->
1>------ Build started: Project: wxtest, Configuration: Debug Win32 ------
1>Source.cpp
1>c:\work\wxwin\include\wx\wxcrt.h(487): error C3861: 'wxStrcoll': identifier not found
1>c:\work\wxwin\include\wx\wxcrt.h(487): message : 'wxStrcoll': function was not declared in the template definition context and can be found only via argument-dependent lookup in the instantiation context
1>c:\work\wxwin\include\wx\wxcrt.h(496): message : see reference to function template instantiation 'int wxStrcoll_String<const wchar_t*>(const wxString &,const T &)' being compiled
1> with
1> [
1> T=const wchar_t *
1> ]
1>Done building project "wxtest.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Unfortunately you need to manually modify the header to fix the build with MSVS 2019 in 3.0.5 and remove defined(__VISUALC__) || part of the check before wxNEEDS_DECL_BEFORE_TEMPLATE definition in wx/wxcrt.h.
FWIW this problem was fixed since a long time (~6 years) in wx 3.1 and you can compile 3.1.3 or the soon to be released 3.1.4 out of the box with MSVS 2019.

VSTS build failing with error "Process 'msbuild.exe' exited with code '1'."

Getting that build failed error because I have 4 warnings that read the same.
##[warning]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Python Tools\Microsoft.PythonTools.Django.targets(120,5): Warning : Errors while resolving environments: Some project interpreters failed to load:
Interpreter d:\a\1\s\"name of project"\env\ has invalid value for 'Id': env
Interpreter reference has invalid path: Global|PythonCore|3.4
I am using Python 3.4.4 64-bit if that makes a difference.
The build is failing during the Build solution **\*.sln section of the build.
Thank you in advance for any help.
Edit pyproj file to change 10.0 to 15.0
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>

Issues with running nunit-console.exe with Mono

I could make a dll for NUnit NUnit test under mono, but when I tried to run in with nunit-console.exe I get the following error message.
Runtime Environment -
OS Version: Unix 10.3.0.0
CLR Version: 2.0.50727.1433 ( 2.6.4 (tarball Thu Apr 22 13:24:33 MDT 2010) )
ProcessModel: Default DomainUsage: Single
Execution Runtime: mono-2.0
** (/Users/smcho/bin/NUnit-2.5.5.10112/bin/net-2.0/nunit-console.exe:36800): WARNING **: The following assembly referenced from /private/var/folders/m4/m4u1hmP+FHOQaiZbHj1UCk+++TI/-Tmp-/nunit20/ShadowCopyCache/36800_634111616836311880/Tests_-22323139/assembly/shadow/54274fc2/118e035c_45a94c9e_00000001/mut.dll could not be loaded:
Assembly: nunit.framework (assemblyref_index=1)
Version: 2.5.5.10112
Public Key: 96d09a1eb7f44a77
System error: Invalid argument
** (/Users/smcho/bin/NUnit-2.5.5.10112/bin/net-2.0/nunit-console.exe:36800): WARNING **: Could not load file or assembly 'nunit.framework, Version=2.5.5.10112, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies.
What might be wrong? I have nunit.framework.dll under /Users/smcho/bin/NUnit-2.5.5.10112/bin/net-2.0/framework, but it doesn't seem to know about this.
This is another frustrating point about using NUnit in Mono. As far as I've been able to tell, you need to have all of those missing files (there will be more than just nunit.framework.dll) in the same directory as nunit-console.exe.
There might be a command line option either in mono or nunit-console.exe to specify another directory to search for missing DLLs -- I'm not sure. Barring that, you'll have to copy the missing DLLs into the same folder as nunit-console.exe, or you'll have to cd into the framework folder and use mono ../nunit-console.exe /path/to/my/tests.dll
Once nuget is installed, you can use it to install nunit.console like so:
(This is from my .circlci/config.yml file)
- run: mono --runtime=v4.0 nuget.exe install nunit.console
- run: msbuild MySolution.sln
- run: mono --runtime=v4.0 NUnit.ConsoleRunner.3.12.0/tools/nunit3-console.exe FirstModule.Tests/bin/Debug/FirstModule.Tests.dll
- run: mono --runtime=v4.0 NUnit.ConsoleRunner.3.12.0/tools/nunit3-console.exe SecondModule.Tests/bin/Debug/SecondModule.Tests.dll
The trick is to specify the entire path for the NUnit.ConsoleRunner and to watchout for the - changing into a . by version 3

Building libopenmetaverse on CentOS 5

I'm trying to build libopenmetaverse on CentOS however I get the following error. I'm not this kind of developer and am installing this for someone else to use. This is just the part of the build that fails. Any ideas?
[nant] /opt/libomv/Programs/WinGridProxy/WinGridProxy.exe.build build
Buildfile: file:///opt/libomv/Programs/WinGridProxy/WinGridProxy.exe.build
Target framework: Mono 2.0 Profile
Target(s) specified: build
build:
[echo] Build Directory is /opt/libomv/bin
[csc] Compiling 15 files to '/opt/libomv/bin/WinGridProxy.exe'.
[resgen] Error: Invalid ResX input.
[resgen] Position: Line 2700, Column 5.
[resgen] Inner exception: An exception was thrown by the type initializer for System.Drawing.GDIPlus
BUILD FAILED
External Program Failed: /tmp/tmp5a71a509.tmp/resgen.exe (return code was 1)
Total time: 0.4 seconds.
BUILD FAILED
Nested build failed. Refer to build log for exact reason.
Total time: 47 seconds.
Build Exit Code: 1
You might need to install libgdiplus, or ensure that your system can find it.
Ok, dont know why, but installing libgdiplus-devel seemed to fix it.