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

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

On 10 January 2015 at 15:26, xplicit <svg at ngs.ru> wrote:
> Mono.TextTemplating/CompiledTemplate.cs(86,53): error CS1501: No
> overload for method `GetValue' takes `1' arguments
> PropertyInfo.GetValue(object) method is from 4.5 framework. If you build
> with NET 4.5 target framework that's something wrong with NET_4_5 symbol
> definition in mono code. Look at the source, the method GetValue is wrapped
> into #if NET_4_5 conditional.

Thanks, this was a useful comment. Now I realised that I had used 4.0
framework, which does not make sense.

with this it works:
for f in `find . -name *.csproj`
  sed -i 's/ToolsVersion=".*"/ToolsVersion="4.0"/g' $f
  sed -i 's#<TargetFrameworkVersion>.*</TargetFrameworkVersion>#<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>#g'
  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

Another little patch to the file main/configure.in, to replace gmcs
with mcs, and MonoDevelop compiles fine with Mono from git master.

Should I submit pull requests to the several git submodules currently
linked in MonoDevelop?
Should we discuss this on the monodevelop develop list?


More information about the Mono-devel-list mailing list