tags:

views:

24

answers:

2

I've used AstroGrep and searched both C:\Windows\Microsoft.NET and C:\Program Files (x86)\MSBuild and I can't find anything that refers to _CopyWebApplication besides the file itself. I also tried to search for webapplication to see if something was importing that file, no luck. I have vs2008 and vs2010 ultimate installed.

I'm troubleshooting my override not working.

Where is this target being imported/invoked?

A: 

_CopyWebApplication target is defined in the file: C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets

This target invocation is set by this property :

<PropertyGroup>
  ...
  <PrepareForRunDependsOn Condition="!$(Disable_CopyWebApplication)">
    $(PrepareForRunDependsOn);
    _CopyWebApplication;
    _BuiltWebOutputGroupOutput
  </PrepareForRunDependsOn>
</PropertyGroup>

Resulting in this chain of call :

Build --> CoreBuild --> PrepareForRun --> _CopyWebApplication

madgnome
This particular build script I'm working on is legacy and uses `C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets` which doesn't have the condition `Disable_CopyWebApplication`
Maslow
A: 

Apparently the individual project files themselves have the call to _CopyWebApplication embedded. 'C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets' I thought it was going to be part of the default targets that was deciding to include or invoke this target file.

Maslow