[Mono-list] Welcome to the "Mono-list" mailing list
Timotheus Pokorra
timotheus.pokorra at solidcharity.com
Mon Sep 26 08:58:06 UTC 2016
>
> https://drive.google.com/file/d/0B9ZH5Mkh7TZRZG5uUXd2dnpXT3M/view?usp=sharing
I had a quick look.
When I first compiled it in MonoDevelop on Fedora 23, I got errors like these:
CSC: error CS0518: The predefined type `System.Object' is not defined
or imported
CSC: error CS0518: The predefined type `System.ValueType' is not
defined or imported
CSC: error CS0518: The predefined type `System.Attribute' is not
defined or imported
CSC: error CS0518: The predefined type `System.Int32' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt32' is not defined
or imported
CSC: error CS0518: The predefined type `System.Int64' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt64' is not defined
or imported
The solution to this issue is:
Select in the menu, Project, mmh_cxx2vtk Options. in the dialog, under
Build / General, see Target Framework.
change that from Mono .Net 4.0 to Mono/ .NET 4.5.
Now I can build the project, and I can start the executable on Linux.
If you don't have MonoDevelop available on CentOS6, you can do it like
this from the command line:
apply this patch:
--- mmh_ccx2vtk.csproj.orig 2016-09-26 10:55:41.794861460 +0200
+++ mmh_ccx2vtk.csproj 2016-09-26 10:56:00.530232239 +0200
@@ -9,6 +9,7 @@
<OutputType>Exe</OutputType>
<RootNamespace>mmh_ccx2vtk</RootNamespace>
<AssemblyName>mmh_ccx2vtk</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
and then build it:
xbuild mmh_ccx2vtk.sln
cd bin/Release
mono mmh_ccx2vtk.exe
hope this helps,
Timotheus
More information about the Mono-list
mailing list