close

1. Select Visaul C#, Windows, Universal

2. Double click on Install Universal Windows Tools

image

image

Another 8GB is used. It requires really large SPACE for the installation.

image

image

Create a new C# project

image

image

image

image

image

image

image

SEARH powershell

Run PowerShell as administrator

You may need to start the WinRM service on your desktop to enable remote connections.

From the PS console type the following command:

net start WinRM

image

From the PS console, type the following, substituting  with the appropriate value (using your

machine-name is the easiest to use, but if your device is not uniquely named on your network, try the IP address):

Set-Item WSMan:\localhost\Client\TrustedHosts -Value <machine-name or IP Address>

Set-Item WSMan:\localhost\Client\TrustedHosts -Value 192.168.43.222

image

Now you can start a session with your Windows IoT Core device. From you administrator PS console, type:

Enter-PSSession -ComputerName <machine-name or IP Address> -Credential <machine-name or IP Address or localhost>\Administrator

Enter-PSSession -ComputerName 192.168.43.222 -Credential 192.168.43.173\Administrator

In the credential dialog enter the following default password: p@ssw0rd

NOTE: The connection process is not immediate and can take up to 30 seconds.

image

Now we login the IoT device sucessfully

image

You will need to reboot the device for the change to take effect. You can use the shutdown command as follows:

shutdown /r /t 0

image

-------------------------------------------


image

image

---------------------------------------------------------------------

Build->Deploy->

1>  HelloWorldCSharpUniWin -> E:\IoT\HelloWorldCSharpUniWin\HelloWorldCSharpUniWin\bin\ARM\Release\HelloWorldCSharpUniWin.exe
1>  Starting .NET Native compilation
1>  Processing application code
1>  Computing application closure and generating interop code
1>  Generating serialization code
1>  Compiling interop code
1>  Cleaning up unreferenced code
1>  Generating native code
1>  Generating fixups for native code
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========


1>------ Deploy started: Project: HelloWorldCSharpUniWin, Configuration: Release ARM ------
1>Creating a new clean layout...
1>Copying files: Total 16 mb to layout...
1>Checking whether required frameworks are installed...
1>Framework: Microsoft.NET.Native.Framework.1.3/ARM, app package version 1.3.23901.0 is not currently installed.
1>Framework: Microsoft.NET.Native.Runtime.1.3/ARM, app package version 1.3.23901.0 is not currently installed.
1>Framework: Microsoft.VCLibs.140.00/ARM, app package version 14.0.23816.0 is not currently installed.
1>Installing missing frameworks...

The screen shot of Hello World sample code

IMG_20160522_221438

References

1. https://developer.microsoft.com/en-us/windows/iot/win10/samples/helloworld

2. https://developer.microsoft.com/en-us/windows/iot/win10/samples/powershell

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 me1237guy 的頭像
    me1237guy

    天天向上

    me1237guy 發表在 痞客邦 留言(0) 人氣()