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 604017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:59:35+00:00 2026-05-13T16:59:35+00:00

I’m trying to set up my environment for developing, debugging and deploying Windows Desktop

  • 0

I’m trying to set up my environment for developing, debugging and deploying Windows Desktop Gadgets. I’ve hit a bit of a roadblock in my project, where I can’t run a build on my gadget when the configuration is set to “Debug”. If the configuration is set to “Release”, the build goes through the following custom tasks:

  1. Copy gadget contents to a seperate folder.
  2. Minify/obfuscate the javascript files, removing comments and whitespace.
  3. Package the files into a CAB file.
  4. Sign the CAB file with a digital certificate.

This runs just fine, my “Debug” configuration has the following tasks defined

  1. Copy gadget folder to AppData\Local\Microsoft\Windows Sidebar\Gadgets\.
  2. Start the gadget using the IDesktopGadget interface.

If I copy those two tasks to the “Release” configuration, they run just fine – no problems whatsoever. I’ve tried creating a seperate configuration called “Test”, copied from the “Release” configuration.

If I try to build any configuration other than “Release”, I get an instant message saying “Build succeeded” but no tasks have run at all.

EDIT: I’ve started a bounty because I still have the same problem with VS 2010 RC and it’s very frustrating.

FURTHER EDIT:
Thanks to John I was able to debug the build process. It led me to realize that the <Target> element with condition for debugging was being completely ignored (not even processed). When I swapped the position of my <Target> elements, it worked:

<Target Name="Build" Condition="'$(Configuration)' == 'Release'">
  <!--
      <Obfuscate PathToJasob="C:\Program Files (x86)\Jasob.com\Jasob 3.5" Path="$(GadgetFolder)" Output="$(GadgetName)_obf" log="jasob_log.txt" />
  -->
  <BuildGadget BuildFormat="CAB" Path="$(GadgetFolder)" Target="$(GadgetName).gadget" />
  <SignGadget CertName="Cert1" TimestampURL="http://timestamp.comodoca.com/authenticode" Target="$(GadgetName).gadget" />
</Target>
<Target Name="Build" Condition="'$(Configuration)' == 'Debug'">
  <CopyToGadgets GadgetFolder="$(GadgetFolder)" GadgetName="$(GadgetName)" />
  <RunGadget GadgetName="$(GadgetName)" />
</Target>

So it looks like the second <Target Name="Build"> element overrides the first, despite the Condition attribute being present. What can I do?

  • 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-13T16:59:36+00:00Added an answer on May 13, 2026 at 4:59 pm

    As Joe suggests:

    Change your output path like this, and see if that fixes the issue:

    <OutputPath>bin\Debug\</OutputPath>
    

    Update

    Have you tried running msbuild /verbosity:diagnostic ?

    Can you try that and show the output?

    Second Update

    Make one target ‘build’, and then make two tasks in that target:

    <Target Name="Build">
        <CallTarget Targets="BuildRelease" Condition="'$(Configuration)' == 'Release'" />
        <CallTarget Targets="BuildDebug" Condition="'$(Configuration)' == 'Debug'" />
    </Target>
    
    <Target Name="BuildRelease">
        <!--
            <Obfuscate PathToJasob="C:\Program Files (x86)\Jasob.com\Jasob 3.5" Path="$(GadgetFolder)" Output="$(GadgetName)_obf" log="jasob_log.txt" />
        -->
        <BuildGadget BuildFormat="CAB" Path="$(GadgetFolder)" Target="$(GadgetName).gadget" />
        <SignGadget CertName="Cert1" TimestampURL="http://timestamp.comodoca.com/authenticode" Target="$(GadgetName).gadget" />
    </Target>
    
    <Target Name="BuildDebug">
      <CopyToGadgets GadgetFolder="$(GadgetFolder)" GadgetName="$(GadgetName)" />
      <RunGadget GadgetName="$(GadgetName)" />
    </Target>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 315k
  • Answers 316k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer They can be useful for concurrent data structures. (There is… May 13, 2026 at 11:23 pm
  • Editorial Team
    Editorial Team added an answer The UPDATE will lock the row exclusively so your concurrency… May 13, 2026 at 11:23 pm
  • Editorial Team
    Editorial Team added an answer No. It's similar to the C++ standard std::vector type, as… May 13, 2026 at 11:23 pm

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want use html5's new tag to play a wav file (currently only supported
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I've got a string that has curly quotes in it. I'd like to replace
In order to apply a triggered animation to all ToolTip s in my app,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.