Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Studio
  4. MSBuild, dotObuscator 4.1, and ClickOnce deployment problems

MSBuild, dotObuscator 4.1, and ClickOnce deployment problems

Scheduled Pinned Locked Moved Visual Studio
visual-studiowinformscomsysadmintools
3 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LancashireLad
    wrote on last edited by
    #1

    I’m trying to obfuscate the source code for a Clickonce Windows forms project using dotObuscator 4.1 (CE+) edition. The goal is to use MSBuild to script the process. However, I’m still having problems getting the signing process to work. I get the following MSBuild script to run okay but the install fails with a hashvalidation error. Basically my script copies the uses the event to backup the original compiled files and then run dotObuscator. The script then copies the obuscated files to the release\bin directory, signs them and regenerates the manifest. I’ve only included the signing part of the script for clarity. General questions: Do I need to sign the EXE file in both the bin\release and obj\release directories? Do I need to sign additional DLLs? It looks like the new manifest is not being generated correctly. Any advice is appreciated. Note: This approach came from an forum thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=166236&SiteID=1 (Copy obfuscated files to release\bin and release\obj directory) < SignFile CertificateThumbprint ="0d5ef111f89cf3ccc2eb36fa01a42d411f680704" SigningTarget ="C:\..\bin\Release\sharpSh3ll.dll"/>

    L 2 Replies Last reply
    0
    • L LancashireLad

      I’m trying to obfuscate the source code for a Clickonce Windows forms project using dotObuscator 4.1 (CE+) edition. The goal is to use MSBuild to script the process. However, I’m still having problems getting the signing process to work. I get the following MSBuild script to run okay but the install fails with a hashvalidation error. Basically my script copies the uses the event to backup the original compiled files and then run dotObuscator. The script then copies the obuscated files to the release\bin directory, signs them and regenerates the manifest. I’ve only included the signing part of the script for clarity. General questions: Do I need to sign the EXE file in both the bin\release and obj\release directories? Do I need to sign additional DLLs? It looks like the new manifest is not being generated correctly. Any advice is appreciated. Note: This approach came from an forum thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=166236&SiteID=1 (Copy obfuscated files to release\bin and release\obj directory) < SignFile CertificateThumbprint ="0d5ef111f89cf3ccc2eb36fa01a42d411f680704" SigningTarget ="C:\..\bin\Release\sharpSh3ll.dll"/>

      L Offline
      L Offline
      LancashireLad
      wrote on last edited by
      #2

      Reposting as some of the previous message was missing. I’m trying to obfuscate the source code for a Clickonce Windows forms project using dotObuscator 4.1 (CE+) edition. The goal is to use MSBuild to script the process. However, I’m still having problems getting the signing process to work. I get the following MSBuild script to run okay but the install fails with a hashvalidation error. Basically my script copies the uses the event to backup the original compiled files and then run dotObuscator. The script then copies the obuscated files to the release\bin directory, signs them and regenerates the manifest. I’ve only included the signing part of the script for clarity. Do I need to sign the EXE file in both the bin\release and obj\release directories? Do I need to sign additional DLLs? It looks like the new manifest is not being generated correctly. Any advice is appreciated. Note: This approach came from an forum thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=166236&SiteID=1 (Copy obfuscated files to release\bin and release\obj directory) < SignFile CertificateThumbprint ="0d5ef111f89cf3ccc2eb36fa01a42d411f680704" SigningTarget ="C:\..\bin\Release\sharpSh3ll.dll"/>

      1 Reply Last reply
      0
      • L LancashireLad

        I’m trying to obfuscate the source code for a Clickonce Windows forms project using dotObuscator 4.1 (CE+) edition. The goal is to use MSBuild to script the process. However, I’m still having problems getting the signing process to work. I get the following MSBuild script to run okay but the install fails with a hashvalidation error. Basically my script copies the uses the event to backup the original compiled files and then run dotObuscator. The script then copies the obuscated files to the release\bin directory, signs them and regenerates the manifest. I’ve only included the signing part of the script for clarity. General questions: Do I need to sign the EXE file in both the bin\release and obj\release directories? Do I need to sign additional DLLs? It looks like the new manifest is not being generated correctly. Any advice is appreciated. Note: This approach came from an forum thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=166236&SiteID=1 (Copy obfuscated files to release\bin and release\obj directory) < SignFile CertificateThumbprint ="0d5ef111f89cf3ccc2eb36fa01a42d411f680704" SigningTarget ="C:\..\bin\Release\sharpSh3ll.dll"/>

        L Offline
        L Offline
        LancashireLad
        wrote on last edited by
        #3

        AAArgh 3rd time lucky. I forgot to click Ignore HTML tags. I’m trying to obfuscate the source code for a Clickonce Windows forms project using dotObuscator 4.1 (CE+) edition. The goal is to use MSBuild to script the process. However, I’m still having problems getting the signing process to work. I get the following MSBuild script to run okay but the install fails with a hashvalidation error. Basically my script copies the uses the event to backup the original compiled files and then run dotObuscator. The script then copies the obuscated files to the release\bin directory, signs them and regenerates the manifest. I’ve only included the signing part of the script for clarity. Do I need to sign the EXE file in both the bin\release and obj\release directories? Do I need to sign additional DLLs? It looks like the new manifest is not being generated correctly. Any advice is appreciated. Note: This approach came from an forum thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=166236&SiteID=1 (Copy obfuscated files to release\bin and release\obj directory) < SignFile CertificateThumbprint ="0d5ef111f89cf3ccc2eb36fa01a42d411f680704" SigningTarget ="C:\..\bin\Release\sharpSh3ll.dll"/>

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups