diff options
author | Nagappan Alagappan <nagappan@gmail.com> | 2012-11-29 20:44:30 -0800 |
---|---|---|
committer | Nagappan Alagappan <nagappan@gmail.com> | 2012-11-29 20:44:30 -0800 |
commit | dc234c3cc84e4e894cd01b89cbb660a193385ea9 (patch) | |
tree | 155510510cd7eb84f62ebb801f1f23dd106e1d85 /Example | |
parent | d4ecd5b632c4ab7b457c8fca119ef13a281ebe47 (diff) |
Added Example for all supported languages
Diffstat (limited to 'Example')
25 files changed, 918 insertions, 0 deletions
diff --git a/Example/C#/TestLdtpClient/TestLdtpClient.sln b/Example/C#/TestLdtpClient/TestLdtpClient.sln new file mode 100644 index 0000000..3aa37b3 --- /dev/null +++ b/Example/C#/TestLdtpClient/TestLdtpClient.sln @@ -0,0 +1,20 @@ +
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestLdtpClient", "TestLdtpClient\TestLdtpClient.csproj", "{829D3CA6-B2D5-4DA6-945A-39766C4C9233}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {829D3CA6-B2D5-4DA6-945A-39766C4C9233}.Debug|x86.ActiveCfg = Debug|x86
+ {829D3CA6-B2D5-4DA6-945A-39766C4C9233}.Debug|x86.Build.0 = Debug|x86
+ {829D3CA6-B2D5-4DA6-945A-39766C4C9233}.Release|x86.ActiveCfg = Release|x86
+ {829D3CA6-B2D5-4DA6-945A-39766C4C9233}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Example/C#/TestLdtpClient/TestLdtpClient.suo b/Example/C#/TestLdtpClient/TestLdtpClient.suo Binary files differnew file mode 100644 index 0000000..2586641 --- /dev/null +++ b/Example/C#/TestLdtpClient/TestLdtpClient.suo diff --git a/Example/C#/TestLdtpClient/TestLdtpClient/Program.cs b/Example/C#/TestLdtpClient/TestLdtpClient/Program.cs new file mode 100644 index 0000000..67bbefe --- /dev/null +++ b/Example/C#/TestLdtpClient/TestLdtpClient/Program.cs @@ -0,0 +1,63 @@ +/*
+ * WinLDTP 1.0
+ *
+ * Author: Nagappan Alagappan <nalagappan@vmware.com>
+ * Author: John Yingjun Li <yjli@vmware.com>
+ * Copyright: Copyright (c) 2011-12 VMware, Inc. All Rights Reserved.
+ * License: MIT license
+ *
+ * http://ldtp.freedesktop.org
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ * of the Software, and to permit persons to whom the Software is furnished to do
+ * so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+*/
+using System;
+using System.IO;
+using System.Threading;
+using CookComputing.XmlRpc;
+
+using Ldtp;
+
+namespace TestLdtpClient
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+
+ Ldtp.Ldtp ldtp = new Ldtp.Ldtp("*Notepad");
+ /*
+ int i;
+ string[] cmdArgs = { };
+ int ret = ldtp.LaunchApp("notepad", cmdArgs);
+ Console.WriteLine("state #45 is {0}", ret);
+ String[] windowList = ldtp.GetWindowList();
+ for (i = 0; i < windowList.Length; i++)
+ Console.WriteLine(windowList[i]);
+ String[] appList = ldtp.GetAppList();
+ for (i = 0; i < appList.Length; i++)
+ Console.WriteLine(appList[i]);
+ String[] objList = ldtp.GetObjectList();
+ for (i = 0; i < objList.Length; i++)
+ Console.WriteLine(objList[i] + " ");
+ /**/
+ Console.WriteLine("Notepad: " + ldtp.GuiExist());
+ Console.WriteLine("Notepad: " + ldtp.GuiExist("Cancel"));
+ }
+ }
+}
diff --git a/Example/C#/TestLdtpClient/TestLdtpClient/Properties/AssemblyInfo.cs b/Example/C#/TestLdtpClient/TestLdtpClient/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9e70dea --- /dev/null +++ b/Example/C#/TestLdtpClient/TestLdtpClient/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("TestLdtpClient")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("TestLdtpClient")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("295a127a-df4d-4371-8c88-6106df6ffdad")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example/C#/TestLdtpClient/TestLdtpClient/TestLdtpClient.csproj b/Example/C#/TestLdtpClient/TestLdtpClient/TestLdtpClient.csproj new file mode 100644 index 0000000..74f21a0 --- /dev/null +++ b/Example/C#/TestLdtpClient/TestLdtpClient/TestLdtpClient.csproj @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{829D3CA6-B2D5-4DA6-945A-39766C4C9233}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>TestLdtpClient</RootNamespace>
+ <AssemblyName>TestLdtpClient</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkProfile>
+ </TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="CookComputing.XmlRpcV2">
+ <HintPath>..\..\CobraWinLDTP\CookComputing.XmlRpcV2.dll</HintPath>
+ </Reference>
+ <Reference Include="Ldtp">
+ <HintPath>..\..\Ldtp\bin\Debug\Ldtp.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="app.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file diff --git a/Example/C#/TestLdtpClient/TestLdtpClient/app.config b/Example/C#/TestLdtpClient/TestLdtpClient/app.config new file mode 100644 index 0000000..8494f72 --- /dev/null +++ b/Example/C#/TestLdtpClient/TestLdtpClient/app.config @@ -0,0 +1,3 @@ +<?xml version="1.0"?>
+<configuration>
+<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
diff --git a/Example/Java/CallbackTest.java b/Example/Java/CallbackTest.java new file mode 100644 index 0000000..2ef9e1d --- /dev/null +++ b/Example/Java/CallbackTest.java @@ -0,0 +1,61 @@ +/* +LDTP v2 java callback test client. + +@author: Nagappan Alagappan <nagappan@gmail.com> +@copyright: Copyright (c) 2009-12 Nagappan Alagappan +@license: LGPL + +http://ldtp.freedesktop.org + +This file may be distributed and/or modified under the terms of the GNU Lesser General +Public License version 2 as published by the Free Software Foundation. This file +is distributed without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. + +See 'COPYING' in the source distribution for more information. + +Headers in this file shall remain intact. +*/ +import com.cobra.ldtp; + +public class CallbackTest { + public void callbackMethodNoArgs(Object... dummyArgs) { + /* With no args, getting the following exception + * java.lang.NoSuchMethodException: com.cobra.ldtp.CallbackTest.callbackMethodNoArgs([Ljava.lang.Object;) + * at java.lang.Class.getDeclaredMethod(Unknown Source) + * at com.cobra.ldtp.PollEvents$1.run(PollEvents.java:72) + * at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) + * at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) + * at java.lang.Thread.run(Unknown Source) + * and so using dummyArgs + */ + System.out.println("callbackMethodNoArgs"); + } + public void callbackMethodWithArgs(Object... args) { + System.out.println("callbackMethodWithArgs"); + for (int i=0; i<args.length; i++) { + System.out.println(args[i]); + } + } + public static void main(String[] args) { + Ldtp ldtp = new Ldtp("Open"); + CallbackTest cbTest = new CallbackTest(); + System.out.println(ldtp.onWindowCreate(cbTest, false, "callbackMethodNoArgs")); + ldtp.setWindowName("*Notepad"); + ldtp.selectMenuItem("File;Open"); + ldtp.setWindowName("Open"); + ldtp.waitTillGuiExist(); + ldtp.click("Cancel"); + ldtp.waitTillGuiNotExist(); + ldtp.removeCallback(); + ldtp.waitTime(1); + System.out.println(ldtp.onWindowCreate(cbTest, false, "callbackMethodWithArgs", "Hello", "World", 1, 2, 3)); + ldtp.setWindowName("*Notepad"); + ldtp.selectMenuItem("File;Open"); + ldtp.setWindowName("Open"); + ldtp.waitTillGuiExist(); + ldtp.click("Cancel"); + ldtp.waitTillGuiNotExist(); + ldtp.removeCallback(); + } +} diff --git a/Example/Java/LdtpTest.java b/Example/Java/LdtpTest.java new file mode 100644 index 0000000..da3f592 --- /dev/null +++ b/Example/Java/LdtpTest.java @@ -0,0 +1,84 @@ +/* +LDTP v2 java test client. + +@author: Nagappan Alagappan <nagappan@gmail.com> +@copyright: Copyright (c) 2009-12 Nagappan Alagappan +@license: LGPL + +http://ldtp.freedesktop.org + +This file may be distributed and/or modified under the terms of the GNU Lesser General +Public License version 2 as published by the Free Software Foundation. This file +is distributed without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. + +See 'COPYING' in the source distribution for more information. + +Headers in this file shall remain intact. +*/ +import com.cobra.ldtp; + +public class LdtpTest { + public static void main(String[] args) { + /* + int i; + Ldtp ldtp = new Ldtp("*-gedit"); + String[] windowList = ldtp.getWindowList(); + for(i = 0; i < windowList.length; i++) + System.out.print(windowList[i]); + System.out.println(""); + String[] appList = ldtp.getAppList(); + for(i = 0; i < appList.length; i++) + System.out.print(appList[i]); + System.out.println(""); + String[] objList = ldtp.getObjectList(); + for(i = 0; i < objList.length; i++) + System.out.print(objList[i] + " "); + System.out.println(""); + try { + ldtp.setWindowName("Testing LDTP with Java Client"); + objList = ldtp.getObjectList(); + for(i = 0; i < objList.length; i++) + System.out.print(objList[i] + " "); + System.out.println(""); + } catch (LdtpExecutionError ex) { + System.out.println(ex.getMessage()); + } finally { + ldtp.setWindowName("*-gedit"); + } + Integer[] size = ldtp.getWindowSize(); + for(i = 0; i < size.length; i++) + System.out.print(size[i] + " "); + System.out.println(""); + size = ldtp.getObjectSize("btnOpen"); + for(i = 0; i < size.length; i++) + System.out.print(size[i] + " "); + System.out.println(""); + System.out.println(ldtp.guiExist()); + System.out.println(ldtp.guiExist("btnOpen")); + System.out.println(ldtp.objectExist("btnOpen")); + System.out.println(ldtp.selectMenuItem("mnuFile;mnuNew")); + try { + System.out.println(ldtp.selectMenuItem("mnuFile;mnuDing")); + } catch (LdtpExecutionError ex) { + System.out.println(ex.getMessage()); + } + System.out.println(ldtp.doesMenuItemExist("mnuFile;mnuNew")); + System.out.println(ldtp.doesMenuItemExist("mnuFile;mnuDing")); + String[] subMenus = ldtp.listSubMenus("mnuFile"); + for(i = 0; i < subMenus.length; i++) + System.out.print(subMenus[i] + " "); + System.out.println(""); + System.out.println(ldtp.imageCapture()); + System.out.println(ldtp.launchApp("gnome-terminal")); + System.out.println(ldtp.waitTillGuiExist()); + ldtp.setWindowName("Testing LDTP with Java Client"); + System.out.println(ldtp.waitTillGuiExist(5)); + ldtp.setWindowName("*-gedit"); + System.out.println(ldtp.getTextValue("txt1")); + System.out.println(ldtp.click("btnNew")); + */ + Ldtp ldtp = new Ldtp("*Notepad"); + System.out.println(ldtp.getTextValue("txt0")); + } +} diff --git a/Example/Perl/startup.pl b/Example/Perl/startup.pl new file mode 100644 index 0000000..d0d4053 --- /dev/null +++ b/Example/Perl/startup.pl @@ -0,0 +1,20 @@ +#!perl + +use strict; +use warnings; + +use LDTP; +use LDTP::Service; +use Test::More tests => 4; + +{ + my $service = LDTP::Service->new; + isa_ok( $service, 'LDTP::Service' ); + can_ok( $service, qw<isalive start stop> ); +} + +my $ldtp = LDTP->new(); +isa_ok( $ldtp, 'LDTP' ); + +my $service = $ldtp->service; +isa_ok( $service, 'LDTP::Service' ); diff --git a/Example/Perl/window.pl b/Example/Perl/window.pl new file mode 100644 index 0000000..e2ac497 --- /dev/null +++ b/Example/Perl/window.pl @@ -0,0 +1,19 @@ +#!perl + +use strict; +use warnings; + +use LDTP; +use LDTP::Window; +use Test::More tests => 5; + +my $ldtp = LDTP->new(); +isa_ok( $ldtp, 'LDTP' ); + +my $window = $ldtp->window('XX'); +isa_ok( $window, 'LDTP::Window' ); +is( $window->name, 'XX', 'Correct name' ); + +my $new_win = LDTP::Window->new( name => 'YY' ); +isa_ok( $new_win, 'LDTP::Window' ); +is( $new_win->name, 'YY', 'Correct name' ); diff --git a/Example/PowerShell/CobraWinLDTPSample.ps1 b/Example/PowerShell/CobraWinLDTPSample.ps1 new file mode 100644 index 0000000..f57db58 --- /dev/null +++ b/Example/PowerShell/CobraWinLDTPSample.ps1 @@ -0,0 +1,39 @@ +<#
+CobraWinLDTP 2.0
+
+Author: Durai Pandian K <duraip@vmware.com>
+Copyright: Copyright (c) 2011-12 VMware, Inc. All Rights Reserved.
+License: MIT license
+
+http://ldtp.freedesktop.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+#>
+
+# Pre-Req: Make Sure CobraWinLDTP is installed
+
+# Load CobraWinLDTP Library
+[System.Reflection.Assembly]::LoadFrom("c:\Program Files (x86)\VMware\CobraWinLDTP\Ldtp.dll")
+
+
+$ldtp = New-Object Ldtp.Ldtp("*Notepad")
+
+Write-Host "Notepad Window Exits: "$ldtp.GuiExist()
+Write-Host "Notepad Window has Cancel Object: " $ldtp.GuiExist("Cancel")
+Write-Host "Word Wrap is Checked in Notepad: "$ldtp.VerifyMenuCheck("mnuFormat;mnuWordWrap")
diff --git a/Example/Python/test.py b/Example/Python/test.py new file mode 100644 index 0000000..6c39439 --- /dev/null +++ b/Example/Python/test.py @@ -0,0 +1,6 @@ +from ldtp import * + +launchapp('notepad') +waittillguiexist('*-Notepad') +selectmenuitem('*-Notepad', 'mnuFile;mnuExit') +waittillguinotexist('*-Notepad') diff --git a/Example/Ruby/test.rb b/Example/Ruby/test.rb new file mode 100644 index 0000000..329f90d --- /dev/null +++ b/Example/Ruby/test.rb @@ -0,0 +1,36 @@ +require "ldtp" + +ldtp = Ldtp.new('*-gedit') + +#puts ldtp.launchapp('gedit') +#puts ldtp.wait(2) +#puts ldtp.selectmenuitem('File;Open') +#puts ldtp.waittillguinotexist :guiTimeOut => 5 +#puts ldtp.click("btnOpen") +#ldtp.window_name = "dlgOpenFiles" +#puts ldtp.waittillguiexist(:obj_name => "btnCancel") +#puts ldtp.click("btnCancel") +#ldtp.window_name = "*-gedit" +#puts ldtp.selectmenuitem('File;Open') +#puts ldtp.imagecapture() +#puts ldtp.onwindowcreate("a", 'b', 1, 2, 3) +#puts ldtp.onwindowcreate("a", 'b', 1, 2, 3) +#puts ldtp.removecallback("a") +#puts ldtp.removecallback("x") +#puts ldtp.maximizewindow("*-gedit") +#puts ldtp.maximizewindow() +#puts ldtp.getapplist() +#puts ldtp.enterstring('Hello') +#puts ldtp.enterstring('*-gedit', 'txt1', 'Hello') +#puts ldtp.enterstring('', 'txt1', 'Hello') +#puts ldtp.settextvalue('txt1', 'Hello World') +#puts ldtp.gettextvalue('txt1') +#puts ldtp.getcharcount('txt1') +#puts ldtp.getcursorposition('txt1') +#puts ldtp.setcursorposition('txt1', 0) +#ldtp.window_name = 'Open Files' +#puts ldtp.doesrowexist("tblFiles", "Desktop") +#puts ldtp.doesrowexist("tblFiles", "Desk") +#puts ldtp.doesrowexist("tblFiles", "Desk", true) +puts ldtp.wait(3) +puts ldtp.getapplist() diff --git a/Example/VB.NET/TestLdtpClient_by_VB/README b/Example/VB.NET/TestLdtpClient_by_VB/README new file mode 100644 index 0000000..50581bf --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/README @@ -0,0 +1 @@ +Please add Ldtp.dll as reference from installed Cobra folder on this example project diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB.sln b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB.sln new file mode 100644 index 0000000..654cbdb --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB.sln @@ -0,0 +1,20 @@ +
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "TestLdtpClient_by_VB", "TestLdtpClient_by_VB\TestLdtpClient_by_VB.vbproj", "{97F34A2F-1B3F-4E14-A416-BE6F713018A9}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {97F34A2F-1B3F-4E14-A416-BE6F713018A9}.Debug|x86.ActiveCfg = Debug|x86
+ {97F34A2F-1B3F-4E14-A416-BE6F713018A9}.Debug|x86.Build.0 = Debug|x86
+ {97F34A2F-1B3F-4E14-A416-BE6F713018A9}.Release|x86.ActiveCfg = Release|x86
+ {97F34A2F-1B3F-4E14-A416-BE6F713018A9}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB.suo b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB.suo Binary files differnew file mode 100644 index 0000000..8a58e31 --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB.suo diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/Module1.vb b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/Module1.vb new file mode 100644 index 0000000..2a39171 --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/Module1.vb @@ -0,0 +1,9 @@ +Module Module1
+
+ Sub Main()
+ Dim ldtp As New Ldtp.Ldtp("*Notepad")
+ Console.WriteLine("Notepad: " + ldtp.GuiExist().ToString())
+ Console.WriteLine("Word Wrap: " + ldtp.VerifyMenuCheck("mnuFormat;mnuWordWrap").ToString())
+ End Sub
+
+End Module
\ No newline at end of file diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Application.Designer.vb b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Application.Designer.vb new file mode 100644 index 0000000..925ed4f --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Application.Designer.vb @@ -0,0 +1,13 @@ +'------------------------------------------------------------------------------
+' <auto-generated>
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.269
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+' </auto-generated>
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Application.myapp b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Application.myapp new file mode 100644 index 0000000..23b627f --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Application.myapp @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?>
+<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <MySubMain>false</MySubMain>
+ <SingleInstance>false</SingleInstance>
+ <ShutdownMode>0</ShutdownMode>
+ <EnableVisualStyles>true</EnableVisualStyles>
+ <AuthenticationMode>0</AuthenticationMode>
+ <ApplicationType>2</ApplicationType>
+ <SaveMySettingsOnExit>true</SaveMySettingsOnExit>
+</MyApplicationData>
diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/AssemblyInfo.vb b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/AssemblyInfo.vb new file mode 100644 index 0000000..fb0cc23 --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/AssemblyInfo.vb @@ -0,0 +1,35 @@ +Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' General Information about an assembly is controlled through the following
+' set of attributes. Change these attribute values to modify the information
+' associated with an assembly.
+
+' Review the values of the assembly attributes
+
+<Assembly: AssemblyTitle("TestLdtpClient_by_VB")>
+<Assembly: AssemblyDescription("")>
+<Assembly: AssemblyCompany("")>
+<Assembly: AssemblyProduct("TestLdtpClient_by_VB")>
+<Assembly: AssemblyCopyright("Copyright © 2012")>
+<Assembly: AssemblyTrademark("")>
+
+<Assembly: ComVisible(False)>
+
+'The following GUID is for the ID of the typelib if this project is exposed to COM
+<Assembly: Guid("419d3aa3-f069-44d2-9e90-79980d1acbf1")>
+
+' Version information for an assembly consists of the following four values:
+'
+' Major Version
+' Minor Version
+' Build Number
+' Revision
+'
+' You can specify all the values or you can default the Build and Revision Numbers
+' by using the '*' as shown below:
+' <Assembly: AssemblyVersion("1.0.*")>
+
+<Assembly: AssemblyVersion("1.0.0.0")>
+<Assembly: AssemblyFileVersion("1.0.0.0")>
diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Resources.Designer.vb b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Resources.Designer.vb new file mode 100644 index 0000000..32f2e58 --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Resources.Designer.vb @@ -0,0 +1,62 @@ +'------------------------------------------------------------------------------
+' <auto-generated>
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.269
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+' </auto-generated>
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My.Resources
+
+ 'This class was auto-generated by the StronglyTypedResourceBuilder
+ 'class via a tool like ResGen or Visual Studio.
+ 'To add or remove a member, edit your .ResX file then rerun ResGen
+ 'with the /str option, or rebuild your VS project.
+ '''<summary>
+ ''' A strongly-typed resource class, for looking up localized strings, etc.
+ '''</summary>
+ <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
+ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
+ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
+ Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '''<summary>
+ ''' Returns the cached ResourceManager instance used by this class.
+ '''</summary>
+ <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
+ Get
+ If Object.ReferenceEquals(resourceMan, Nothing) Then
+ Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("TestLdtpClient_by_VB.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '''<summary>
+ ''' Overrides the current thread's CurrentUICulture property for all
+ ''' resource lookups using this strongly typed resource class.
+ '''</summary>
+ <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Resources.resx b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Resources.resx @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Settings.Designer.vb b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Settings.Designer.vb new file mode 100644 index 0000000..4ede972 --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Settings.Designer.vb @@ -0,0 +1,73 @@ +'------------------------------------------------------------------------------
+' <auto-generated>
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.269
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+' </auto-generated>
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), _
+ Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Partial Friend NotInheritable Class MySettings
+ Inherits Global.System.Configuration.ApplicationSettingsBase
+
+ Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
+
+#Region "My.Settings Auto-Save Functionality"
+#If _MyType = "WindowsForms" Then
+ Private Shared addedHandler As Boolean
+
+ Private Shared addedHandlerLockObject As New Object
+
+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
+ If My.Application.SaveMySettingsOnExit Then
+ My.Settings.Save()
+ End If
+ End Sub
+#End If
+#End Region
+
+ Public Shared ReadOnly Property [Default]() As MySettings
+ Get
+
+#If _MyType = "WindowsForms" Then
+ If Not addedHandler Then
+ SyncLock addedHandlerLockObject
+ If Not addedHandler Then
+ AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
+ addedHandler = True
+ End If
+ End SyncLock
+ End If
+#End If
+ Return defaultInstance
+ End Get
+ End Property
+ End Class
+End Namespace
+
+Namespace My
+
+ <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
+ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
+ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
+ Friend Module MySettingsProperty
+
+ <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
+ Friend ReadOnly Property Settings() As Global.TestLdtpClient_by_VB.My.MySettings
+ Get
+ Return Global.TestLdtpClient_by_VB.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Settings.settings b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Settings.settings new file mode 100644 index 0000000..377f56d --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/My Project/Settings.settings @@ -0,0 +1,7 @@ +<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
diff --git a/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/TestLdtpClient_by_VB.vbproj b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/TestLdtpClient_by_VB.vbproj new file mode 100644 index 0000000..358b35b --- /dev/null +++ b/Example/VB.NET/TestLdtpClient_by_VB/TestLdtpClient_by_VB/TestLdtpClient_by_VB.vbproj @@ -0,0 +1,118 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>
+ </SchemaVersion>
+ <ProjectGuid>{97F34A2F-1B3F-4E14-A416-BE6F713018A9}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <StartupObject>TestLdtpClient_by_VB.Module1</StartupObject>
+ <RootNamespace>TestLdtpClient_by_VB</RootNamespace>
+ <AssemblyName>TestLdtpClient_by_VB</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <MyType>Console</MyType>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <DefineDebug>true</DefineDebug>
+ <DefineTrace>true</DefineTrace>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DocumentationFile>TestLdtpClient_by_VB.xml</DocumentationFile>
+ <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <DefineDebug>false</DefineDebug>
+ <DefineTrace>true</DefineTrace>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DocumentationFile>TestLdtpClient_by_VB.xml</DocumentationFile>
+ <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionExplicit>On</OptionExplicit>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionCompare>Binary</OptionCompare>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionStrict>Off</OptionStrict>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionInfer>On</OptionInfer>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Ldtp">
+ <HintPath>..\..\WinLdtpService\Ldtp\bin\Debug\Ldtp.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ </ItemGroup>
+ <ItemGroup>
+ <Import Include="Microsoft.VisualBasic" />
+ <Import Include="System" />
+ <Import Include="System.Collections" />
+ <Import Include="System.Collections.Generic" />
+ <Import Include="System.Data" />
+ <Import Include="System.Diagnostics" />
+ <Import Include="System.Linq" />
+ <Import Include="System.Xml.Linq" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Module1.vb" />
+ <Compile Include="My Project\AssemblyInfo.vb" />
+ <Compile Include="My Project\Application.Designer.vb">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Application.myapp</DependentUpon>
+ </Compile>
+ <Compile Include="My Project\Resources.Designer.vb">
+ <AutoGen>True</AutoGen>
+ <DesignTime>True</DesignTime>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <Compile Include="My Project\Settings.Designer.vb">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="My Project\Resources.resx">
+ <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.vb</LastGenOutput>
+ <CustomToolNamespace>My.Resources</CustomToolNamespace>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="My Project\Application.myapp">
+ <Generator>MyApplicationCodeGenerator</Generator>
+ <LastGenOutput>Application.Designer.vb</LastGenOutput>
+ </None>
+ <None Include="My Project\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <CustomToolNamespace>My</CustomToolNamespace>
+ <LastGenOutput>Settings.Designer.vb</LastGenOutput>
+ </None>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file |