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

  • SEARCH
  • Home
  • 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 6831631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:45:36+00:00 2026-05-26T22:45:36+00:00

Sorry if asked before. Using Visual Studio 2010, I am trying to sign my

  • 0

Sorry if asked before.

Using Visual Studio 2010, I am trying to sign my assemblies with a pfx file so that on build it does the same work as:

signtool sign /f myKey.pfx /p password1 myDll.dll

I have myKey.pfx set as the strong name key file with ‘Sign the assembly’ checked in the Project Properties -> Signing tab.

Is this what the Signing tab does or am I trying to use it for something incorrectly.

I’m sure that I am missing something simple what is it?

Edit: just to clarify, I’m looking for alternatives to just adding a Post-Build script to shell the signing.

  • 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-26T22:45:36+00:00Added an answer on May 26, 2026 at 10:45 pm

    Solved using a VB Script in the PreBuild event of my Setup / Deployment Project which ran over all .DLL and .EXE files in the OBJ folders for my project and ran the signtool command (including full path to the SDK)

    Sub ShowSubFolders(keyFile, fFolder)
        Set objFolder = objFSO.GetFolder(fFolder.Path)
        Set colFiles = objFolder.Files
        For Each objFile in colFiles
            If UCase(objFSO.GetExtensionName(objFile.name)) = "DLL" Or UCase(objFSO.GetExtensionName(objFile.name)) = "EXE" Then
                'Wscript.Echo objFile
                Dim objResult
                Set objShell = WScript.CreateObject("WScript.Shell")    
                objResult = objShell.Run("""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\signtool"" sign /f " & keyFile & " """ & objFile & """", 0, True)
            End If
        Next
    
        For Each Subfolder in fFolder.SubFolders
            Call ShowSubFolders(keyFile, Subfolder)
        Next
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sorry if I ask a question that's been asked before, but I could
I realize that similar questions have been asked before. My list is displayed using
Sorry if this has been asked before, but I'm wondering what the best memory
(I’m sorry if this has been asked before; the search feature seems to be
First of all, sorry if this has been asked before. I've done a pretty
I'm new to jquery, and sorry if this question is asked before (could find
Greetings everybody. I am sorry, if this was already asked before (searched in vain)
Sorry if this question was asked already. I started studying C# and noticed that
Sorry if this has been asked before, I did check but couldn't find anything...
Sorry if this question has been asked before. On my search through SO I

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.