diff options
Diffstat (limited to 'src/test/examples/FullFramework2MBA')
7 files changed, 160 insertions, 0 deletions
diff --git a/src/test/examples/FullFramework2MBA/BootstrapperApplicationData.xml b/src/test/examples/FullFramework2MBA/BootstrapperApplicationData.xml new file mode 100644 index 00000000..7c4169b1 --- /dev/null +++ b/src/test/examples/FullFramework2MBA/BootstrapperApplicationData.xml | |||
| Binary files differ | |||
diff --git a/src/test/examples/FullFramework2MBA/Example.FullFramework2MBA.csproj b/src/test/examples/FullFramework2MBA/Example.FullFramework2MBA.csproj new file mode 100644 index 00000000..dec1ff1e --- /dev/null +++ b/src/test/examples/FullFramework2MBA/Example.FullFramework2MBA.csproj | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
| 3 | |||
| 4 | |||
| 5 | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| 6 | <Import Project="..\..\..\..\packages\WixToolset.Mba.Core.4.0.12\build\net20\WixToolset.Mba.Core.props" Condition="Exists('..\..\..\..\packages\WixToolset.Mba.Core.4.0.12\build\net20\WixToolset.Mba.Core.props')" /> | ||
| 7 | <PropertyGroup> | ||
| 8 | <ProjectGuid>{CC4236FC-226E-4232-AB50-24CBEC4D314D}</ProjectGuid> | ||
| 9 | <AssemblyName>Example.FullFramework2MBA</AssemblyName> | ||
| 10 | <OutputType>Library</OutputType> | ||
| 11 | <RootNamespace>Example.FullFramework2MBA</RootNamespace> | ||
| 12 | <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> | ||
| 13 | <CreateDocumentation>false</CreateDocumentation> | ||
| 14 | </PropertyGroup> | ||
| 15 | <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | ||
| 16 | <DebugSymbols>true</DebugSymbols> | ||
| 17 | <Optimize>false</Optimize> | ||
| 18 | <DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants> | ||
| 19 | </PropertyGroup> | ||
| 20 | <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
| 21 | <DebugSymbols>true</DebugSymbols> | ||
| 22 | <Optimize>true</Optimize> | ||
| 23 | <DefineConstants>$(DefineConstants);TRACE</DefineConstants> | ||
| 24 | </PropertyGroup> | ||
| 25 | <ItemGroup> | ||
| 26 | <Compile Include="FullFramework2BA.cs" /> | ||
| 27 | <Compile Include="FullFramework2BAFactory.cs" /> | ||
| 28 | <Compile Include="Properties\AssemblyInfo.cs" /> | ||
| 29 | </ItemGroup> | ||
| 30 | <ItemGroup> | ||
| 31 | <Content Include="BootstrapperApplicationData.xml" CopyToOutputDirectory="PreserveNewest" /> | ||
| 32 | <Content Include="WixToolset.Mba.Host.config" CopyToOutputDirectory="PreserveNewest" /> | ||
| 33 | </ItemGroup> | ||
| 34 | <ItemGroup> | ||
| 35 | <None Include="packages.config" /> | ||
| 36 | </ItemGroup> | ||
| 37 | <ItemGroup> | ||
| 38 | <Reference Include="System" /> | ||
| 39 | <Reference Include="System.Configuration" /> | ||
| 40 | <Reference Include="System.Data" /> | ||
| 41 | <Reference Include="System.Xml" /> | ||
| 42 | <Reference Include="WixToolset.Mba.Core"> | ||
| 43 | <HintPath>..\..\..\..\packages\WixToolset.Mba.Core.4.0.12\lib\net20\WixToolset.Mba.Core.dll</HintPath> | ||
| 44 | </Reference> | ||
| 45 | </ItemGroup> | ||
| 46 | <ItemGroup> | ||
| 47 | <ProjectReference Include="..\..\..\mbahost\mbahost.vcxproj"> | ||
| 48 | <Project>{12c87c77-3547-44f8-8134-29bc915cb19d}</Project> | ||
| 49 | <ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||
| 50 | </ProjectReference> | ||
| 51 | <ProjectReference Include="..\..\..\WixToolset.Mba.Host\WixToolset.Mba.Host.csproj"> | ||
| 52 | <Project>{F2BA1935-70FA-4156-B161-FD03850B4FAA}</Project> | ||
| 53 | <ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||
| 54 | <OutputItemType>Content</OutputItemType> | ||
| 55 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
| 56 | </ProjectReference> | ||
| 57 | </ItemGroup> | ||
| 58 | |||
| 59 | <ItemGroup> | ||
| 60 | <MbaHostDependency Include="$(BaseOutputPath)$(Configuration)\Win32\mbahost.dll" /> | ||
| 61 | </ItemGroup> | ||
| 62 | |||
| 63 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
| 64 | |||
| 65 | <Import Project="..\..\..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" /> | ||
| 66 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | ||
| 67 | <PropertyGroup> | ||
| 68 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | ||
| 69 | </PropertyGroup> | ||
| 70 | <Error Condition="!Exists('..\..\..\..\packages\WixToolset.Mba.Core.4.0.12\build\net20\WixToolset.Mba.Core.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\WixToolset.Mba.Core.4.0.12\build\net20\WixToolset.Mba.Core.props'))" /> | ||
| 71 | <Error Condition="!Exists('..\..\..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> | ||
| 72 | </Target> | ||
| 73 | |||
| 74 | <Target Name="CopyMbaHostDependencies" AfterTargets="Build"> | ||
| 75 | <Copy DestinationFolder="$(OutputPath)" SourceFiles="@(MbaHostDependency)" SkipUnchangedFiles="true" /> | ||
| 76 | </Target> | ||
| 77 | </Project> \ No newline at end of file | ||
diff --git a/src/test/examples/FullFramework2MBA/FullFramework2BA.cs b/src/test/examples/FullFramework2MBA/FullFramework2BA.cs new file mode 100644 index 00000000..13d4673a --- /dev/null +++ b/src/test/examples/FullFramework2MBA/FullFramework2BA.cs | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace Example.FullFramework2MBA | ||
| 4 | { | ||
| 5 | using WixToolset.Mba.Core; | ||
| 6 | |||
| 7 | public class FullFramework2BA : BootstrapperApplication | ||
| 8 | { | ||
| 9 | public FullFramework2BA(IEngine engine) | ||
| 10 | : base(engine) | ||
| 11 | { | ||
| 12 | |||
| 13 | } | ||
| 14 | |||
| 15 | protected override void Run() | ||
| 16 | { | ||
| 17 | } | ||
| 18 | |||
| 19 | protected override void OnShutdown(ShutdownEventArgs args) | ||
| 20 | { | ||
| 21 | base.OnShutdown(args); | ||
| 22 | |||
| 23 | var message = "Shutdown," + args.Action.ToString() + "," + args.HResult.ToString(); | ||
| 24 | this.engine.Log(LogLevel.Standard, message); | ||
| 25 | } | ||
| 26 | } | ||
| 27 | } | ||
diff --git a/src/test/examples/FullFramework2MBA/FullFramework2BAFactory.cs b/src/test/examples/FullFramework2MBA/FullFramework2BAFactory.cs new file mode 100644 index 00000000..d3cafc70 --- /dev/null +++ b/src/test/examples/FullFramework2MBA/FullFramework2BAFactory.cs | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace Example.FullFramework2MBA | ||
| 4 | { | ||
| 5 | using WixToolset.Mba.Core; | ||
| 6 | |||
| 7 | public class FullFramework2BAFactory : BaseBootstrapperApplicationFactory | ||
| 8 | { | ||
| 9 | protected override IBootstrapperApplication Create(IEngine engine, IBootstrapperCommand bootstrapperCommand) | ||
| 10 | { | ||
| 11 | return new FullFramework2BA(engine); | ||
| 12 | } | ||
| 13 | } | ||
| 14 | } | ||
diff --git a/src/test/examples/FullFramework2MBA/Properties/AssemblyInfo.cs b/src/test/examples/FullFramework2MBA/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..640c17ad --- /dev/null +++ b/src/test/examples/FullFramework2MBA/Properties/AssemblyInfo.cs | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | using System; | ||
| 4 | using System.Reflection; | ||
| 5 | using System.Runtime.InteropServices; | ||
| 6 | using WixToolset.Mba.Core; | ||
| 7 | |||
| 8 | [assembly: AssemblyTitle("Example.FullFramework2MBA")] | ||
| 9 | [assembly: AssemblyDescription("Example.FullFramework2MBA")] | ||
| 10 | [assembly: AssemblyProduct("WiX Toolset")] | ||
| 11 | [assembly: AssemblyCompany("WiX Toolset Team")] | ||
| 12 | [assembly: AssemblyCopyright("Copyright (c) .NET Foundation and contributors. All rights reserved.")] | ||
| 13 | |||
| 14 | // Types should not be visible to COM by default. | ||
| 15 | [assembly: ComVisible(false)] | ||
| 16 | [assembly: Guid("7A671EAF-FAE5-41A2-83DD-C35AB3779651")] | ||
| 17 | |||
| 18 | [assembly: BootstrapperApplicationFactory(typeof(Example.FullFramework2MBA.FullFramework2BAFactory))] | ||
diff --git a/src/test/examples/FullFramework2MBA/WixToolset.Mba.Host.config b/src/test/examples/FullFramework2MBA/WixToolset.Mba.Host.config new file mode 100644 index 00000000..be450a4f --- /dev/null +++ b/src/test/examples/FullFramework2MBA/WixToolset.Mba.Host.config | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8" ?> | ||
| 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
| 3 | |||
| 4 | |||
| 5 | <configuration> | ||
| 6 | <configSections> | ||
| 7 | <sectionGroup name="wix.bootstrapper" type="WixToolset.Mba.Host.BootstrapperSectionGroup, WixToolset.Mba.Host"> | ||
| 8 | <section name="host" type="WixToolset.Mba.Host.HostSection, WixToolset.Mba.Host" /> | ||
| 9 | </sectionGroup> | ||
| 10 | </configSections> | ||
| 11 | <startup> | ||
| 12 | <supportedRuntime version="v2.0.50727" /> | ||
| 13 | </startup> | ||
| 14 | <wix.bootstrapper> | ||
| 15 | |||
| 16 | <host assemblyName="Example.FullFramework2MBA"> | ||
| 17 | <supportedFramework version="v3.5" /> | ||
| 18 | </host> | ||
| 19 | </wix.bootstrapper> | ||
| 20 | </configuration> | ||
diff --git a/src/test/examples/FullFramework2MBA/packages.config b/src/test/examples/FullFramework2MBA/packages.config new file mode 100644 index 00000000..77b7e398 --- /dev/null +++ b/src/test/examples/FullFramework2MBA/packages.config | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <packages> | ||
| 3 | <package id="WixToolset.Mba.Core" version="4.0.12" targetFramework="net461" /> | ||
| 4 | </packages> \ No newline at end of file | ||
