8. How to include application in TinyCLR

SH7264 RSK NETMF

8.    How to include application in TinyCLR

Change below red lines appropriate for your application

 
   The application can be included into tinyclr.abs. The simplest thing to do is just to add the PE files to your TinyCLR.proj file.

   1) Build generic application in the Porting Kit

      Change current folder to “C:\MicroFrameworkPK_v4_1’ and execute below command,

          MSBUILD.EXE build.dirproj

   2) Build an application without Visual Studio 2010.

      Build your application by following command,

          MSBUILD.EXE build.dirproj

      For example, if you want to build HelloWorld Sample application, use following commands,

            Change current folder to “C:\MicroFrameworkPK_v4_1\Product\Sample’

            and execute below command,

               MSBUILD.EXE build.dirproj

    3) How to include application into tinyclr.abs

      Please add the following red lines after the property section of the TinyCLR.proj file. You will have to make sure the .pe files have been built. 

  <Import Condition="" Project="$(SPOCLIENT)\Framework\Features\Diagnostics.featureproj" />

  <Import Condition="" Project="$(SPOCLIENT)\Framework\Features\Core.featureproj" />

  <Import Condition="" Project="$(SPOCLIENT)\Framework\Features\Serialization.featureproj" />

 

  <ItemGroup>

    <MMP_DAT_CreateDatabase Include="$(BUILD_TREE_CLIENT)\pe\$(ENDIANNESS)\mscorlib.pe"/>

    <MMP_DAT_CreateDatabase Include="$(BUILD_TREE_CLIENT)\pe\$(ENDIANNESS)\Microsoft.SPOT.Native.pe"/>

    <MMP_DAT_CreateDatabase Include="$(BUILD_TREE_CLIENT)\pe\$(ENDIANNESS)\Microsoft.SPOT.Net.pe"/>

    <MMP_DAT_CreateDatabase Include="$(BUILD_TREE_CLIENT)\pe\$(ENDIANNESS)\Microsoft.SPOT.HelloWorld.pe"/>

    <MMP_DAT_CreateDatabase Include="$(BUILD_TREE_CLIENT)\pe\$(ENDIANNESS)\System.pe"/>

    <MMP_DAT_CreateDatabase Include="$(BUILD_TREE_CLIENT)\pe\$(ENDIANNESS)\Microsoft.SPOT.Graphics.pe"/>

    <MMP_DAT_CreateDatabase Include="$(BUILD_TREE_CLIENT)\pe\$(ENDIANNESS)\Microsoft.SPOT.TinyCore.pe"/>

    <MMP_DAT_CreateDatabase Include="$(BUILD_TREE_CLIENT)\pe\$(ENDIANNESS)\Microsoft.SPOT.Hardware.pe"/>

  </ItemGroup>

  <Import Project="$(SPOCLIENT)\tools\targets\Microsoft.SPOT.System.Interop.Settings" />