cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

DOTNET-SDK tutorial in developer thingworx

svisveswaraiya
17-Peridot

DOTNET-SDK tutorial in developer thingworx

Hi,

Is there any tutorial or steps to build DOTNET-SDK for ThingWorx? If available please share the link.

 

Thanks in advance,

Shalini V.

3 REPLIES 3

Please find the example builded steps in PTC article CS208249

 

•Here are the steps for the Steam Sensor example: 
1.Download and extract the latest build of the DotNetSDK
2.File -> New -> Create a Project -> Visual C# application -> Console Application
3.Delete the Program.cs in the Solution Explorer pane
4.Right click References -> Add Reference -> Add the thingworx-dotnet-common.dll (from the SDK folder)
5.Add/ copy over the SteamThing.cs and SteamSensorClient.cs from the Example folder of the SDK
6.Go to the ConsoleApplication properties 
1.Application tab -> change the target framework to .NET 4.0
2.Debug tab -> in the command line arguments, add the following:
•wss://IP:443/Thingworx/WS appKey 1000

7.Save and run the application
8.If it errors out with twApi.dll not found, copy the tw folder from the SDK (which has both x86 and x64 folders) and paste it wherever the project is saved •For example, in Windows, the default save location is in My Documents
•Copy over the folder to \Documents\Visual Studio 2013\Projects\Project_Name\bin\Debug

•Note: SSL connection is required

 

mgoel
17-Peridot
(To:yhan)

Hi @svisveswaraiya 

 

If you feel @yhan response is resolution of your question then mark this thread accept as solution for the benefit of other community users.

 

Regards,

Mohit

Announcements


Top Tags