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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:48:18+00:00 2026-05-11T19:48:18+00:00

I just create a Solution that contains 3 projects. Order by build order Silverlight

  • 0

I just create a Solution that contains 3 projects.

Order by build order

  1. Silverlight Application that is included in /ClientBin of ASP.NET Web Application project

  2. Windows Form Application that is used to optimize all xap in /ClientBin when Visual Studio pass build (post-build event).

  3. ASP.NET Web Application that display Silverlight application in /ClientBin

When I build ASP.NET web application successfully, ClientBin directory in web application project contain 3 Xap Files. After that VS.net fire a post-build command event that executes the Windows Form application. Windows form optimize all Xap and remote 2 Xap Files from 3 Xap Files.

Finally, Vs.net copy 3 Xap files from Silverlight application project to ClientBin directory again. Why? I can’t find any log about copy Xap files after post-build event (by using MSBuild project build output verbosity: Diagnostic)

Target "PostBuildEvent" in file "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets":
  Task "Exec"
    Command:
    **T:\myProject\Higgs\Higgs\Higgs.Utils.WinApp\bin\Higgs.Utils.WinApp.exe mode=OptimizeXap clientbindir=T:\myProject\Higgs\Higgs\Higgs.Web.UI\ClientBin\ mainxapfilename=Higgs.Silverlight.UI**
  Done executing task "Exec".
Done building target "PostBuildEvent" in project "Higgs.Web.UI.csproj".
Target "CoreBuild" in file "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets":
  Task "CallTarget" skipped, due to false condition; ('$(UnloadProjectsOnCompletion)'=='true') was evaluated as ('false'=='true').
  Task "CallTarget" skipped, due to false condition; ('$(UnloadProjectsOnCompletion)'=='true') was evaluated as ('false'=='true').
  Task "CallTarget" skipped, due to false condition; ('$(UnloadProjectsOnCompletion)'=='true') was evaluated as ('false'=='true').
Done building target "CoreBuild" in project "Higgs.Web.UI.csproj".
Target "AfterBuild" in file "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets":
Done building target "AfterBuild" in project "Higgs.Web.UI.csproj".
Target "Build" in file "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets":
  Building target "Build" completely.
  No input files were specified.
Done building target "Build" in project "Higgs.Web.UI.csproj".
Target "AfterRebuild" in file "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets":
Done building target "AfterRebuild" in project "Higgs.Web.UI.csproj".
Target "Rebuild" in file "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets":
  Building target "Rebuild" completely.
  No input files were specified.
Done building target "Rebuild" in project "Higgs.Web.UI.csproj".

Done building project "Higgs.Web.UI.csproj".

Update

I updated the build order by building the Windows Forms application. After build web application. Next, I use the Windows Dorm application post-build event to execute its EXE. Everything works fine. But I don’t like this solution because It’s very strange solution for me.

  • 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-11T19:48:18+00:00Added an answer on May 11, 2026 at 7:48 pm

    I’m assuming that the projects reference each other? So:

    • ASP.NET Web App references at least the SilverLight App.
    • Win Forms App references the Silverlight App.

    Visual Studio will automatically copy dependant files into the project hierarchy unless you tell it not to. so the steps Visual Studio will take are:

    1. Build SilverLight App, and copy its output to the Forms App and Web App
    2. Run any post build events defined in the “Build” tab for the SilverLight App project.
    3. Build the Win Forms App, and if it’s referenced by anything else, copy the output appropriately.
    4. Run any post build events defined in the “Build” tab for the Win Forms App project.
    5. Build the Web App
    6. Run any post build events defined in the “Build” tab for the Web App project.
    7. Run any “After build” events defined through MSBuild.

    Basically, most of the dependant moves happen before the post build events:

    Task "FindUnderPath"
      Comparison path is "D:\Projects\PublicSites\WebTest".
      Path [...]
      [...]
    Done executing task "FindUnderPath".
    Task "FindUnderPath"
      Comparison path is "bin\".
      Path [...]
      [...]
    Done executing task "FindUnderPath".
    Task "FindUnderPath"
      Comparison path is "obj\Debug\".
      Path [...]
      [...]
    Done executing task "FindUnderPath".
    Task "RemoveDuplicates"
    Done executing task "RemoveDuplicates".
    Done building target "_CleanGetCurrentAndPriorFileWrites" in project
      "WebTest.csproj".
    Target "IncrementalClean" in file 
      "c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets":
    Task "FindUnderPath"
      Comparison path is "bin\".
    Done executing task "FindUnderPath".
    Task "FindUnderPath"
      Comparison path is "obj\Debug\".
    Done executing task "FindUnderPath".
    Task "Delete"
    Done executing task "Delete".
    Task "RemoveDuplicates"
    Done executing task "RemoveDuplicates".
    Task "WriteLinesToFile"
    Done executing task "WriteLinesToFile".
    Done building target "IncrementalClean" in project 
      "WebTest.csproj".
    

    Then the build and AfterBuild events happen.

    My guess is that VS is noticing the output of the SilverLight app is different to the version it has under it, and so goes and fetches a new copy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 111k
  • Answers 111k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

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

    • 7 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Assuming that you just want to get a list of… May 11, 2026 at 9:49 pm
  • Editorial Team
    Editorial Team added an answer I think using the word "parse" in the title has… May 11, 2026 at 9:49 pm
  • Editorial Team
    Editorial Team added an answer (sorry this is an answer and not a comment working… May 11, 2026 at 9:49 pm

Related Questions

I'm using VisualSVN client and server and one of the requirements for web projects
I have a c# .net winforms solution and I want to create two different
There is a MSBuild script, that includes number if Delphi and C# projects, unit
Is anybody familiar with setting up WCF-nettcp adapters for BTS? When I create a
I am trying to come to grips with how difficult it is to use

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.