[Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

Timotheus Pokorra timotheus.pokorra at solidcharity.com
Sat Jan 10 08:48:20 UTC 2015


On 9 January 2015 at 23:31, Alistair Bush <alistair.bush at gmail.com> wrote:
> Are there any plans on updating monodevelop and its dependent libraries to
> build with 4+.   Believe i've already seen issues building monodevelop ( or
> a submodule) with mono (git)
>
> sorry no details as I didn't really look at it.
Yes, I can confirm that MonoDevelop currently does not build with mono
from git master.

for example, https://github.com/mono/ikvm-fork/blob/master/reflect/IKVM.Reflection.csproj#L13
references <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
I filed an issue for that a while ago.
https://github.com/mono/ikvm-fork/issues/6

Another error:
/root/rpmbuild/BUILD/monodevelop-5.8/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git.csproj:
error : /root/rpmbuild/BUILD/monodevelop-5.8/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git.csproj:
The default XML namespace of the project must be the MSBuild XML
namespace. If the project is authored in the MSBuild 2003 format,
please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
to the <Project> element. If the project has been authored in the old
1.0 or 1.2 format, please convert it to MSBuild 2003 format.

This script will fix most of these project files issues:

for f in `find . -name *.csproj`
do
  sed -i 's/ToolsVersion=".*"/ToolsVersion="4.0"/g' $f
  sed -i 's#<TargetFrameworkVersion>.*</TargetFrameworkVersion>#<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>#g'
$f
  sed -i 's#<Project DefaultTargets="Build"
ToolsVersion="4.0">#<Project DefaultTargets="Build" ToolsVersion="4.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">#g' $f
  sed -i 's#<Project ToolsVersion="4.0">#<Project ToolsVersion="4.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">#g' $f
done

But then I still get these errors:

/root/rpmbuild/BUILD/monodevelop-5.8/Main.sln (default targets) ->
(Build target) ->
/root/rpmbuild/BUILD/monodevelop-5.8/src/addins/TextTemplating/Mono.TextTemplating/Mono.TextTemplating.csproj
(default targets) ->
/opt/mono/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

Mono.TextTemplating/CompiledTemplate.cs(86,53): error CS1501: No
overload for method `GetValue' takes `1' arguments

/root/rpmbuild/BUILD/monodevelop-5.8/Main.sln (default targets) ->
(Build target) ->
/root/rpmbuild/BUILD/monodevelop-5.8/external/guiunit/src/framework/GuiUnit_NET_4_5.csproj
(default targets) ->
/opt/mono/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

Internal/MethodHelper.cs(222,76): error CS0234: The type or namespace
name `AsyncStateMachineAttribute' does not exist in the namespace
`System.Runtime.CompilerServices'. Are you missing an assembly
reference?
Internal/MethodHelper.cs(222,27): error CS1501: No overload for method
`IsDefined' takes `1' arguments
Internal/Tests/TestMethod.cs(141,80): error CS0234: The type or
namespace name `AsyncStateMachineAttribute' does not exist in the
namespace `System.Runtime.CompilerServices'. Are you missing an
assembly reference?

All the best,
  Timotheus


More information about the Mono-devel-list mailing list