Skip to content

Docker image with MSBuild and WiX Build Toolset included.

License

Notifications You must be signed in to change notification settings

hurcane/docker-msbuild-wix

 
 

Repository files navigation

Docker Image: MSBuild with WiX Toolset

Overview

This docker image is created based on "microsoft/dotnet-framework:4.7.2-sdk" and is used for build .NET project that utilizing WiX Build Toolset in CI build pipeline. WiX Build Toolset contains the library to generate msi installer package.

Current WiX Build Toolset version included: v3.11.

Usage

  • Docker Base Image: dotnet-framework-wix:4.7.2-sdk
  • Default User: buildadmin (Groups: Administrators)
    • Notes: Grant mounted folders to "Administrators" group when executing commands inside the container.
  • Custom Script in Build Step:
    NuGet.exe restore <your solution name.sln> -Source <your nuget repository url>
    msbuild.exe <your solution name.sln> /t:Clean,Build /p:Configuration=<your configuration name> /p:GenerateSerializationAssemblies=Off
  • In your WiX Project (*.wixproj) file, please include the following configuration:
    <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(WixToolPath)' != '' ">$(WixToolPath)\Wix.targets</WixTargetsPath>
    <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
    <WixTasksPath Condition=" '$(WixTasksPath)' == '' AND '$(WixToolPath)' != '' ">$(WixToolPath)\WixTasks.dll</WixTasksPath>

About

Docker image with MSBuild and WiX Build Toolset included.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%