Missing Templates " Console Application"

After installation the 4.2 sdk I found that under the " MicroFramework --> Online Templates -->"…missing templates here…". I am using VS2010 and attached the screen shot. Am I missing any installation here?

If I remember correctly, there is no templates anymore in 4.2

You can start with console application instead

Getting some error ( The name ’ Debug’ does not exist in the current context), amy I know which reference do I need to add?

I actually just tried 4.2 and I see the templates.

Found some setup steps in the “TINYCLR WIKI - First Project”. No errors but now I trying to “Select Transport”. In the properties but I don’t see the “.Net Micro Framework” tab.

Do you have the Visual Studio “11” beta or RC installed? There are other threads here that talk about how critical install order is for those (but I can’t remember what the order was meant to be)

You need to install the Microsoft SDK before GHI SDK. See steps again please.

I reinstalled the " GHI NETMF v4.2 and .NET Gadgeteer Package (Beta 6-22-2012)" and now I can see the templates.
In the project properties I can see the “.Net Micro Framewor” tab.

Gus, you’re right. I could have installed in wrong sequence earlier and when I reinstall the GHI SDK ( suppose as after microsoft sdk) everything works fine. Thanks.

I have connected FEZ Cerb40 to external 3.3 and usb while waiting for the 3.3 regulator. Able to detect using MFdeploy. Then on the VS2010 setup the properties for “USB” and detected the device. Using the Debug.Print statement, I tried to deploy to the device. I am getting error as below…

Error 1 Cannot deploy the base assembly ‘mscorlib’, or any of his satellite assemblies, to device - USB:Gadgeteer twice. Assembly ‘mscorlib’ on the device has version 4.2.0.0, while the program is trying to deploy version 4.1.2821.0 .

You answered yourself. Look at your question. Your ate loading 4.1 where the device is 4.2

You need to use 4.2

I have uninstalled the SDK4.1 and GHI 4.1 and reinstall the SDK4.2 followed by GHI 4.2 ( which I noticed includes 4.1). Changed the properties to 4.2 and ran the program. So far so good, no errors except some messages at the Output window and I don’t see the word “Amazing” displayed. Below are the message from each Output stage.

-------> Output - Build

------ Deploy started: Project: MFConsoleApplication2, Configuration: Debug Any CPU ------
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========

-------> Output - Debug

Create TS.

Loading start at 802d938, end 8041f6c

Assembly: mscorlib (4.2.0.0)Assembly: Microsoft.SPOT.Native (4.2.0.0)Assembly: Microsoft.SPOT.Hardware (4.2.0.0)
Assembly: Microsoft.SPOT.Graphics (4.2.0.0)Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0)
Assembly: Microsoft.SPOT.Net (4.2.0.0)Assembly: System (4.2.0.0)Assembly: Microsoft.SPOT.Hardware.Usb (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1)Loading Deployment Assemblies.

Attaching deployed file.

Assembly: Microsoft.SPOT.IO (4.2.0.0)Attaching deployed file.

Assembly: MFConsoleApplication2 (1.0.0.0)Attaching deployed file.

Assembly: GHI.Premium.System (4.2.1.0)Attaching deployed file.

Assembly: GHIElectronics.NETMF.IO (4.1.8.0)Attaching deployed file.

Assembly: System.IO (4.2.0.0)Attaching deployed file.

Assembly: GHIElectronics.NETMF.Hardware (4.1.8.0)Attaching deployed file.

Assembly: Gadgeteer (2.41.0.0)Attaching deployed file.

Assembly: GHI.Premium.Hardware (4.2.1.0)Attaching deployed file.

Assembly: GHIElectronics.NETMF.System (4.1.8.0)Resolving.

Link failure: some assembly references cannot be resolved!!

Assembly: GHIElectronics.NETMF.IO (4.1.8.0) needs assembly ‘mscorlib’ (4.1.2821.0)

Assembly: GHIElectronics.NETMF.IO (4.1.8.0) needs assembly ‘GHIElectronics.NETMF.System’ (4.1.8.0)

Assembly: GHIElectronics.NETMF.Hardware (4.1.8.0) needs assembly ‘mscorlib’ (4.1.2821.0)

Assembly: GHIElectronics.NETMF.Hardware (4.1.8.0) needs assembly ‘Microsoft.SPOT.Hardware’ (4.1.2821.0)

Assembly: GHIElectronics.NETMF.Hardware (4.1.8.0) needs assembly ‘GHIElectronics.NETMF.System’ (4.1.8.0)

Assembly: Gadgeteer (2.41.0.0) needs assembly ‘mscorlib’ (4.1.2821.0)

Assembly: Gadgeteer (2.41.0.0) needs assembly ‘Microsoft.SPOT.TinyCore’ (4.1.2821.0)

Assembly: Gadgeteer (2.41.0.0) needs assembly ‘Microsoft.SPOT.Graphics’ (4.1.2821.0)

Assembly: Gadgeteer (2.41.0.0) needs assembly ‘Microsoft.SPOT.Native’ (4.1.2821.0)

Assembly: Gadgeteer (2.41.0.0) needs assembly ‘Microsoft.SPOT.Hardware’ (4.1.2821.0)

Assembly: Gadgeteer (2.41.0.0) needs assembly ‘Microsoft.SPOT.Net’ (4.1.2821.0)

Assembly: Gadgeteer (2.41.0.0) needs assembly ‘Microsoft.SPOT.IO’ (4.1.2821.0)

Assembly: Gadgeteer (2.41.0.0) needs assembly ‘System.IO’ (4.1.2821.0)

Assembly: Gadgeteer (2.41.0.0) needs assembly ‘Microsoft.SPOT.Hardware.SerialPort’ (4.1.2821.0)

------> Output - Micro Framework Device Deployment

Incrementally deploying assemblies to device
Deploying assemblies for a total size of 85732 bytes
Assemblies successfully deployed to device.

going from 4.1 to 4.2 is more complex than just changing the project property.

the GHI namespaces(using) have changed and the dll names (references) have changed.

best approach is to to create a new 4.2 project and copy your code to the project.

your output shows that the was a problem in the deployment. link failure.

Take a look again to the post where you downloaded 4.2. You skipped step 2

Did all over again…install SDK 4.1, SDK 4.2, GHI 4.2. It works and also “Sample Emulator” appears briefly and disappears.
Also in ‘Output-Build’ the -------Deploy started: runs twice ??..

Below the listing of the Output window…

--------> Output - Debug

Found debugger!

The debugging target runtime is loading the application assemblies and starting execution.
Loading Deployment Assemblies.

Resolving.

The debugging target runtime is loading the application assemblies and starting execution.
Ready.

‘Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\mscorlib.dll’, Symbols loaded.
‘Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Native.dll’, Symbols loaded.
‘Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe’ (Managed): Loaded ‘c:\my documents\visual studio 2010\Projects\MFConsoleApplication3\MFConsoleApplication3\bin\Debug\le\MFConsoleApplication3.exe’, Symbols loaded.
The thread ‘’ (0x2) has exited with code 0 (0x0).
Done.

Amazing!
The thread ‘’ (0x1) has exited with code 0 (0x0).
The program ‘[3760] Micro Framework application: Managed’ has exited with code 0 (0x0).

--------->Output - Build

------ Deploy started: Project: MFConsoleApplication3, Configuration: Debug Any CPU ------
------ Deploy started: Project: MFConsoleApplication3, Configuration: Debug Any CPU ------
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========

---------Output - Micro Framework Device Deployment

Launching emulator with command line: ‘“C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Tools\Microsoft.SPOT.Emulator.Sample.SampleEmulator.exe” “/waitfordebugger” “/load:c:\my documents\visual studio 2010\Projects\MFConsoleApplication3\MFConsoleApplication3\bin\Debug\le\MFConsoleApplication3.pe” “/load:C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Native.pe” “/load:C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\mscorlib.pe”’

You are not listing step2. Microsoft NETMF 4.2 SDK QFE1 Are you sure you have this installed?

Look under required installations please http://www.tinyclr.com/forum/topic?id=7982

No I didn’t. My install steps are

  1. SDK 4.1 ( QFE1)
  2. SDK 4.2 (RTM)
  3. GHI NETMF v4.2 and .NET Gadgeteer Package (Beta 6-22-2012)

Your steps are for July 23rd

  1. Uninstall SDK 4.1 and all existing GHI.
  2. Install SDK 4.2 ( QE1 ??).
  3. GHI 4.2 July 23rd .

…right ? Is it pssiible to install the GHI July 23rd only for the newer update?

Please follow my previous answer and go back to that page and carefully check and install the 3 required steps. If you do not follow the steps it is simply not going to work.

They are hyper-linked, so just click on it and install.

You do NOT need to install 4.1 SDK at all, and you must install 4.2 SDK QFE1.

I uninstall all SDK and GHI. Then install SDK 4.2 ( QFE1) and followed by GHI July 23rd. Start new program in VS2010. No change in properties except for transport to USB. No assemblies added ( default Microsoft.SPOT.Native). Ran the program …Debug.Print(“Amazing!”)…and the results as below.

-------> Output - Build

------ Build started: Project: MFConsoleApplication4, Configuration: Debug Any CPU ------
MFConsoleApplication4 → c:\my documents\visual studio 2010\Projects\MFConsoleApplication4\MFConsoleApplication4\bin\Debug\MFConsoleApplication4.exe
------ Deploy started: Project: MFConsoleApplication4, Configuration: Debug Any CPU ------
------ Deploy started: Project: MFConsoleApplication4, Configuration: Debug Any CPU ------
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========

-------> Output - Debug

Create TS.

Loading start at 802d938, end 8041f6c

Assembly: mscorlib (4.2.0.0)Assembly: Microsoft.SPOT.Native (4.2.0.0)Assembly: Microsoft.SPOT.Hardware (4.2.0.0)
Assembly: Microsoft.SPOT.Graphics (4.2.0.0)Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0)
Assembly: Microsoft.SPOT.Net (4.2.0.0)Assembly: System (4.2.0.0)Assembly: Microsoft.SPOT.Hardware.Usb (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1)Loading Deployment Assemblies.

Attaching deployed file.

Assembly: MFConsoleApplication4 (1.0.0.0)Resolving.

The debugging target runtime is loading the application assemblies and starting execution.
Ready.

‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\mscorlib.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Native.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Graphics.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.SerialPort.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Net.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.Usb.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.PWM.dll’, Symbols loaded.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (Managed): Loaded ‘c:\my documents\visual studio 2010\Projects\MFConsoleApplication4\MFConsoleApplication4\bin\Debug\le\MFConsoleApplication4.exe’, Symbols loaded.
A first chance exception of type ‘System.NotImplementedException’ occurred in Microsoft.SPOT.Native.dll
The thread ‘’ (0x2) has exited with code 0 (0x0).
Amazing!
The thread ‘’ (0x1) has exited with code 0 (0x0).
Done.

Waiting for debug commands…

The program ‘[1] Micro Framework application: Managed’ has exited with code 0 (0x0).

--------> Output - Micro Framework Device Deployment

Incrementally deploying assemblies to device
Deploying assemblies for a total size of 760 bytes
Assemblies successfully deployed to device.