diff options
Diffstat (limited to 'src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4')
3 files changed, 184 insertions, 0 deletions
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/AssemblyInfo.cs b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/AssemblyInfo.cs new file mode 100644 index 00000000..83e802dd --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/AssemblyInfo.cs | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | using System.Reflection; | ||
| 2 | |||
| 3 | // | ||
| 4 | // General Information about an assembly is controlled through the following | ||
| 5 | // set of attributes. Change these attribute values to modify the information | ||
| 6 | // associated with an assembly. | ||
| 7 | // | ||
| 8 | [assembly: AssemblyTitle("")] | ||
| 9 | [assembly: AssemblyDescription("")] | ||
| 10 | [assembly: AssemblyConfiguration("")] | ||
| 11 | [assembly: AssemblyCompany("")] | ||
| 12 | [assembly: AssemblyProduct("")] | ||
| 13 | [assembly: AssemblyCopyright("")] | ||
| 14 | [assembly: AssemblyTrademark("")] | ||
| 15 | [assembly: AssemblyCulture("")] | ||
| 16 | |||
| 17 | // | ||
| 18 | // Version information for an assembly consists of the following four values: | ||
| 19 | // | ||
| 20 | // Major Version | ||
| 21 | // Minor Version | ||
| 22 | // Build Number | ||
| 23 | // Revision | ||
| 24 | // | ||
| 25 | // You can specify all the values or you can default the Revision and Build Numbers | ||
| 26 | // by using the '*' as shown below: | ||
| 27 | |||
| 28 | [assembly: AssemblyVersion("1.0.*")] | ||
| 29 | |||
| 30 | // | ||
| 31 | // In order to sign your assembly you must specify a key to use. Refer to the | ||
| 32 | // Microsoft .NET Framework documentation for more information on assembly signing. | ||
| 33 | // | ||
| 34 | // Use the attributes below to control which key is used for signing. | ||
| 35 | // | ||
| 36 | // Notes: | ||
| 37 | // (*) If no key is specified, the assembly is not signed. | ||
| 38 | // (*) KeyName refers to a key that has been installed in the Crypto Service | ||
| 39 | // Provider (CSP) on your machine. KeyFile refers to a file which contains | ||
| 40 | // a key. | ||
| 41 | // (*) If the KeyFile and the KeyName values are both specified, the | ||
| 42 | // following processing occurs: | ||
| 43 | // (1) If the KeyName can be found in the CSP, that key is used. | ||
| 44 | // (2) If the KeyName does not exist and the KeyFile does exist, the key | ||
| 45 | // in the KeyFile is installed into the CSP and used. | ||
| 46 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. | ||
| 47 | // When specifying the KeyFile, the location of the KeyFile should be | ||
| 48 | // relative to the project output directory which is | ||
| 49 | // %Project Directory%\obj\<configuration>. For example, if your KeyFile is | ||
| 50 | // located in the project directory, you would specify the AssemblyKeyFile | ||
| 51 | // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] | ||
| 52 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework | ||
| 53 | // documentation for more information on this. | ||
| 54 | // | ||
| 55 | [assembly: AssemblyDelaySign(false)] | ||
| 56 | //[assembly: AssemblyKeyFile("..\\..\\..\\Signing.sn")] | ||
| 57 | [assembly: AssemblyKeyName("")] | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/TestComponentNET4.cs b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/TestComponentNET4.cs new file mode 100644 index 00000000..7aabd169 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/TestComponentNET4.cs | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | using System; | ||
| 2 | using System.EnterpriseServices; | ||
| 3 | using System.Runtime.InteropServices; | ||
| 4 | |||
| 5 | [assembly: ApplicationActivation(ActivationOption.Library)] | ||
| 6 | namespace TestApplication | ||
| 7 | { | ||
| 8 | /// <summary> | ||
| 9 | /// TestComponent | ||
| 10 | /// </summary> | ||
| 11 | [ComVisible(true)] | ||
| 12 | [Transaction(TransactionOption.Required)] | ||
| 13 | [ObjectPooling(true, 5, 10)] | ||
| 14 | [Guid("146AB3A2-4472-4DB9-94D5-311536E799BD")] | ||
| 15 | public class TestComponent4 : ServicedComponent | ||
| 16 | { | ||
| 17 | public TestComponent4() | ||
| 18 | { | ||
| 19 | // | ||
| 20 | // TODO: Add constructor logic here | ||
| 21 | // | ||
| 22 | } | ||
| 23 | |||
| 24 | [AutoComplete(true)] | ||
| 25 | public void TestMethod(string Name, string Address, int JobType, bool MakeFail) | ||
| 26 | { | ||
| 27 | |||
| 28 | } | ||
| 29 | } | ||
| 30 | } | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/TestComponentNET4.csproj b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/TestComponentNET4.csproj new file mode 100644 index 00000000..60785894 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/TestComponentNET4.csproj | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build"> | ||
| 3 | <PropertyGroup> | ||
| 4 | <ProjectType>Local</ProjectType> | ||
| 5 | <ProductVersion>7.0.9466</ProductVersion> | ||
| 6 | <SchemaVersion>1.0</SchemaVersion> | ||
| 7 | <ProjectGuid>{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}</ProjectGuid> | ||
| 8 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
| 9 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
| 10 | <IsWixTestProject>false</IsWixTestProject> | ||
| 11 | <ApplicationIcon /> | ||
| 12 | <AssemblyKeyContainerName /> | ||
| 13 | <AssemblyName>TestComponentNET4</AssemblyName> | ||
| 14 | <AssemblyOriginatorKeyFile /> | ||
| 15 | <DefaultClientScript>JScript</DefaultClientScript> | ||
| 16 | <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> | ||
| 17 | <DefaultTargetSchema>IE50</DefaultTargetSchema> | ||
| 18 | <DelaySign>false</DelaySign> | ||
| 19 | <OutputType>Library</OutputType> | ||
| 20 | <RootNamespace>TestApplication</RootNamespace> | ||
| 21 | <StartupObject /> | ||
| 22 | <FileUpgradeFlags> | ||
| 23 | </FileUpgradeFlags> | ||
| 24 | <UpgradeBackupLocation> | ||
| 25 | </UpgradeBackupLocation> | ||
| 26 | <OldToolsVersion>0.0</OldToolsVersion> | ||
| 27 | <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> | ||
| 28 | <TargetFrameworkProfile /> | ||
| 29 | </PropertyGroup> | ||
| 30 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
| 31 | <OutputPath>bin\Debug\</OutputPath> | ||
| 32 | <AllowUnsafeBlocks>false</AllowUnsafeBlocks> | ||
| 33 | <BaseAddress>285212672</BaseAddress> | ||
| 34 | <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow> | ||
| 35 | <ConfigurationOverrideFile /> | ||
| 36 | <DefineConstants>DEBUG;TRACE</DefineConstants> | ||
| 37 | <DocumentationFile /> | ||
| 38 | <DebugSymbols>true</DebugSymbols> | ||
| 39 | <FileAlignment>4096</FileAlignment> | ||
| 40 | <Optimize>false</Optimize> | ||
| 41 | <RegisterForComInterop>false</RegisterForComInterop> | ||
| 42 | <RemoveIntegerChecks>false</RemoveIntegerChecks> | ||
| 43 | <TreatWarningsAsErrors>false</TreatWarningsAsErrors> | ||
| 44 | <WarningLevel>4</WarningLevel> | ||
| 45 | <DebugType>full</DebugType> | ||
| 46 | <ErrorReport>prompt</ErrorReport> | ||
| 47 | <Prefer32Bit>false</Prefer32Bit> | ||
| 48 | <PlatformTarget>AnyCPU</PlatformTarget> | ||
| 49 | </PropertyGroup> | ||
| 50 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
| 51 | <OutputPath>bin\Release\</OutputPath> | ||
| 52 | <AllowUnsafeBlocks>false</AllowUnsafeBlocks> | ||
| 53 | <BaseAddress>285212672</BaseAddress> | ||
| 54 | <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow> | ||
| 55 | <ConfigurationOverrideFile /> | ||
| 56 | <DefineConstants>TRACE</DefineConstants> | ||
| 57 | <DocumentationFile /> | ||
| 58 | <DebugSymbols>false</DebugSymbols> | ||
| 59 | <FileAlignment>4096</FileAlignment> | ||
| 60 | <Optimize>true</Optimize> | ||
| 61 | <RegisterForComInterop>false</RegisterForComInterop> | ||
| 62 | <RemoveIntegerChecks>false</RemoveIntegerChecks> | ||
| 63 | <TreatWarningsAsErrors>false</TreatWarningsAsErrors> | ||
| 64 | <WarningLevel>4</WarningLevel> | ||
| 65 | <DebugType>none</DebugType> | ||
| 66 | <ErrorReport>prompt</ErrorReport> | ||
| 67 | <Prefer32Bit>false</Prefer32Bit> | ||
| 68 | </PropertyGroup> | ||
| 69 | <ItemGroup> | ||
| 70 | <Reference Include="System"> | ||
| 71 | <Name>System</Name> | ||
| 72 | </Reference> | ||
| 73 | <Reference Include="System.Data"> | ||
| 74 | <Name>System.Data</Name> | ||
| 75 | </Reference> | ||
| 76 | <Reference Include="System.EnterpriseServices"> | ||
| 77 | <Name>System.EnterpriseServices</Name> | ||
| 78 | </Reference> | ||
| 79 | <Reference Include="System.XML"> | ||
| 80 | <Name>System.XML</Name> | ||
| 81 | </Reference> | ||
| 82 | </ItemGroup> | ||
| 83 | <ItemGroup> | ||
| 84 | <Compile Include="AssemblyInfo.cs"> | ||
| 85 | <SubType>Code</SubType> | ||
| 86 | </Compile> | ||
| 87 | <Compile Include="TestComponentNET4.cs"> | ||
| 88 | <SubType>Code</SubType> | ||
| 89 | </Compile> | ||
| 90 | </ItemGroup> | ||
| 91 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
| 92 | <PropertyGroup> | ||
| 93 | <PreBuildEvent /> | ||
| 94 | <PostBuildEvent>call "$(DevEnvDir)..\Tools\VsDevCmd.bat" | ||
| 95 | tlbexp.exe $(TargetDir)$(TargetFileName)</PostBuildEvent> | ||
| 96 | </PropertyGroup> | ||
| 97 | </Project> \ No newline at end of file | ||
