Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to get the additional CA dll from a Wix Custom Action build into a nuget package?

$
0
0

I have a Wix Custom Action DLL that is used in multiple installer projects. I'd like to deploy this DLL to our nuget repository so it is easier to share. However, the dotnet pack command doesn't put the correct DLL in the package. The project builds 2 DLLs. WixInstallTools.dll and WixInstallTools.CA.dll. I'm not actually sure if installer projects need both DLLs or not, but they certainly need WixInstallTools.CA.dll. How do I get this CA DLL into the nuget package. I'm using Wix4 in a Visual Studio 2022 environment. The following is my project file.

<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><TargetFramework>net472</TargetFramework><OutputPath>bin\$(Configuration)\$(Platform)</OutputPath><Version>1.0.0.0</Version><Authors>author</Authors><Company>company</Company><GenerateAssemblyInfo>true</GenerateAssemblyInfo><IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion><DebugType>embedded</DebugType><PackageId>WixInstallTools</PackageId><PackageDescription>Wix Custom Action Library</PackageDescription><PackageTags>WixInstallTools;Wix Install Tools;Wix;Install;Tools</PackageTags><RepositoryUrl>https://github.com/company/nuget</RepositoryUrl></PropertyGroup><ItemGroup><Content Include="CustomAction.config" CopyToOutputDirectory="PreserveNewest" /></ItemGroup><ItemGroup><PackageReference Include="WixToolset.Dtf.CustomAction" Version="4.0.4" /><PackageReference Include="WixToolset.Dtf.WindowsInstaller" Version="4.0.4" /></ItemGroup><ItemGroup><Reference Include="PresentationFramework" /><Reference Include="System.DirectoryServices.AccountManagement" /></ItemGroup></Project>

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>