D
DBxGlock
I'm trying to create the equivalent of a post build event for a
website. I have the "Web Deployment Projects" add-in installed and am
attempting to follow the instructions in the "Using Web Deployment
Projects with Visual Studio 2005" document. In the "Customizing Web
Deployment Projects" section, it gives an example of an "AfterBuild"
target where a directory is created using the $(TargetDir) macro. When
I attempt to use $(TargetDir), it doesn't seem to exist. The only
macros I can find that work within the .wdproj file are solution level
(SolutionPath, SolutionDir, etc). What I really need are TargetDir,
ProjectDir, and ConfigurationName (to determine if we're compiling in
Debug or Release mode).
I have attempted using several of the macros available in standard
project post build events like this:
<Target Name="AfterBuild">
<Message Importance="high" Text="SolutionDir: $(SolutionDir)" />
<Message Importance="high" Text="ProjectDir: $(ProjectDir)" />
<Message Importance="high" Text="TargetDir: $(TargetDir)" />
<Message Importance="high" Text="OutDir: $(OutDir)" />
<Message Importance="high" Text="ConfigurationName:
$(ConfigurationName)" />
</Target>
The only one of these that works is $(SolutionDir). Does anybody know
why these aren't available in my .wdproj file and how I can get this
information? Most important is the Configuration being compiled.
Thanks,
Dan
website. I have the "Web Deployment Projects" add-in installed and am
attempting to follow the instructions in the "Using Web Deployment
Projects with Visual Studio 2005" document. In the "Customizing Web
Deployment Projects" section, it gives an example of an "AfterBuild"
target where a directory is created using the $(TargetDir) macro. When
I attempt to use $(TargetDir), it doesn't seem to exist. The only
macros I can find that work within the .wdproj file are solution level
(SolutionPath, SolutionDir, etc). What I really need are TargetDir,
ProjectDir, and ConfigurationName (to determine if we're compiling in
Debug or Release mode).
I have attempted using several of the macros available in standard
project post build events like this:
<Target Name="AfterBuild">
<Message Importance="high" Text="SolutionDir: $(SolutionDir)" />
<Message Importance="high" Text="ProjectDir: $(ProjectDir)" />
<Message Importance="high" Text="TargetDir: $(TargetDir)" />
<Message Importance="high" Text="OutDir: $(OutDir)" />
<Message Importance="high" Text="ConfigurationName:
$(ConfigurationName)" />
</Target>
The only one of these that works is $(SolutionDir). Does anybody know
why these aren't available in my .wdproj file and how I can get this
information? Most important is the Configuration being compiled.
Thanks,
Dan