Skip to content

Fix NETMF 4.3 bug in interop compilation with "." in assembly name

NicolasG3 edited this page Jun 7, 2013 · 3 revisions

A bug in NETMF 4.3 code must be corrected to compile interop project with name containing dot characters like "Community.Hardware".

The bug is located in Microsoft.SPOT.tasks.dll

This can be fix by changing line 87 in "C:\MicroFrameworkPK_v4_3_Travail\Framework\Tools\BuildTasks\CreateInteropFeatureProj.cs"

bpg.AddProperty(m_name.ToUpper().Replace('.', '_') + "_FEATUREPROJ", "True");

Rebuild on command line

C:\>cd MicroFrameworkPK_v4_3

C:\MicroFrameworkPK_v4_3>setenv_vs 11 Compiler: VS 11

C:\MicroFrameworkPK_v4_3>cd framework\tools\buildtasks

C:\MicroFrameworkPK_v4_3\Framework\Tools\BuildTasks>msbuild buildtasks.csproj

Then copy C:\MicroFrameworkPK_v4_3\BuildOutput\public\Debug\Server\dll\Microsoft.SPOT.tasks.dll (and .pdb) to C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Tools

You can now build your managed code for interop.