Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Remove environment variable workaround
Browse files Browse the repository at this point in the history
The new version of SHFB supports passing SHFBCOMPONENTROOT via an
MSBuild property.
  • Loading branch information
terrajobst committed Dec 23, 2012
1 parent 9a56f1a commit 2f34cbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 0 additions & 4 deletions Build/Build.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@echo off

:: Workaround: MSBuild apparently snapshots the variables. Setting the environment
:: variable from within the build process doesn't work.
set SHFBCOMPONENTROOT=%~dp0..\Output\Bin

"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" %~dp0\Build.proj /t:Build

PAUSE
12 changes: 8 additions & 4 deletions Build/Build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
<MSBuild Projects="$(HelpDir)Help.shfbproj"
Properties="OutputPath=$(GeneratedHelp);
HelpFileVersion=$(XsdDocVersion);
CopyrightText=[v{%40HelpFileVersion}] $(XsdDocCopyright); />
CopyrightText=[v{%40HelpFileVersion}] $(XsdDocCopyright);
SHFBCOMPONENTROOT=$(GeneratedBinaries)" />
</Target>

<!-- Generate Setup -->
Expand Down Expand Up @@ -176,13 +177,16 @@

<MSBuild Projects="@(SampleProjectCloneDetective)"
Properties="OutputPath=$(GeneratedSamples)CloneDetective;
HelpFileVersion=$(XsdDocVersion);" />
HelpFileVersion=$(XsdDocVersion);
SHFBCOMPONENTROOT=$(GeneratedBinaries)" />
<MSBuild Projects="@(SampleProjectWiX)"
Properties="OutputPath=$(GeneratedSamples)WiX;
HelpFileVersion=$(XsdDocVersion);" />
HelpFileVersion=$(XsdDocVersion);
SHFBCOMPONENTROOT=$(GeneratedBinaries)" />
<MSBuild Projects="@(SampleProjectXml)"
Properties="OutputPath=$(GeneratedSamples)Xml;
HelpFileVersion=$(XsdDocVersion);" />
HelpFileVersion=$(XsdDocVersion);
SHFBCOMPONENTROOT=$(GeneratedBinaries)" />

<!-- Delete all non CHM files -->

Expand Down

0 comments on commit 2f34cbe

Please sign in to comment.