Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7055913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:48:19+00:00 2026-05-28T03:48:19+00:00

We are using Msbuild to build our Wix projects. Due to various issues ,

  • 0

We are using Msbuild to build our Wix projects. Due to various issues , few times assemblies specified in wix were just delay signed. When it was installed in GAC it failed.

Is there any way to verify strong name signing verification as prebuild activity in wix?

I am using sn -vf "assembly" to do strong name verification.

I want to do strong name verification only for dlls which will be packed inside wix msi( in other words, assemblies specified in wxs file)

How to do it msbuild?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:48:20+00:00Added an answer on May 28, 2026 at 3:48 am
    • A quick solution is adding a BeforeBuild event that calls sn.exe:

    Open your .wixproj file and add:

    <Target Name="BeforeBuild">
    <ItemGroup>
        <AssemblyToSign Include="C:\SignedAssembly1.dll"/>
        <AssemblyToSign Include="C:\SignedAssembly2.dll"/>      
    </ItemGroup>
         <Exec Command="sn -q -vf %(AssemblyToSign.Identity)" />
    </Target>
    

    This will fail your build once an assembly fails verification.


    • Another solution is use MSBuild Extension Pack’s Signing class:

    Once again, this will fail your build on failed verification:

    <Target Name="BeforeBuild">
    <ItemGroup>
            <AssemblyToSign Include="C:\SignedAssembly1.dll"/>
            <AssemblyToSign Include="C:\SignedAssembly2.dll"/>      
    </ItemGroup>
     <MSBuild.ExtensionPack.Framework.Signing 
             TaskAction="Sign" 
             ToolPath="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin" 
             KeyFile="D:\key.snk" 
             Assemblies="@(AssemblyToSign)" />
    </Target>
    

    In order to use it you must add a reference to the Extension Pack assembly:

    <PropertyGroup>
        <ExtensionTasksPath Condition="Exists('$(MSBuildProjectDirectory)\..\..\Common')">$(MSBuildProjectDirectory)\..\..\Common</ExtensionTasksPath>
    </PropertyGroup>
    <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Signing"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have a good way to build MSI (vdproj) projects using MsBuild or
Since I started using MSBuild for our projects, I've created several .proj scripts that
We are using MSBuild to run our build which compiles and outputs a number
I am using MSBuild to build my stuff. I want to use CruiseControl.net as
I need to build a DSL Solution using MsBuild and want to be able
I'm producing builds using MSBuild, and build configurations set up in the dproj on
I'm attempting to build a ASP.NET website using MSBuild - specifically the AspNetCompiler tag.
I am using CruiseControl.NET to build a C# project. I am using an msbuild
I'm trying to write an MSBuild task to build a database using FluentNhibernate mappings.
I am using Team City as the build server, and I have a msbuild

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.