Skip to content

Commit

Permalink
Include automatic help file building in script
Browse files Browse the repository at this point in the history
  • Loading branch information
yevhen committed Jun 22, 2014
1 parent 62716b1 commit 45b3495
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ TestResults/
/Output/
/Packages/
/Tools/Nake/Roslyn
/Packages/!Repositories.config
/Packages/!Repositories.config
/Source/Utility/Help
2 changes: 2 additions & 0 deletions Build/NuGet/Nake.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<file src="Output\Package\Release\Nake.exe.config" target="tools/net45" />
<file src="Output\Package\Release\Meta.dll" target="tools/net45" />
<file src="Output\Package\Release\Utility.dll" target="tools/net45" />
<file src="Output\Package\Release\Utility.xml" target="tools/net45" />
<file src="Output\Package\Release\Utility.chm" target="help" />
<file src="Output\Package\Release\GlobDir.dll" target="tools/net45" />
<file src="Output\Package\Release\Microsoft.CodeAnalysis.dll" target="tools/net45" />
<file src="Output\Package\Release\Microsoft.CodeAnalysis.CSharp.dll" target="tools/net45" />
Expand Down
3 changes: 3 additions & 0 deletions Nake.csx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ const string OutputPath = RootPath + @"\Output";
"@ECHO OFF \r\n" +
@"Packages\Nake.{version}\tools\net45\Nake.exe %*"
);

MSBuild(@"Source\Utility\Utility.shfbproj",
"OutputPath={releasePath};SourcePath={releasePath}");

Cmd(@"Tools\Nuget.exe pack Build\NuGet\Nake.nuspec -Version {version} " +
"-OutputDirectory {packagePath} -BasePath {RootPath} -NoPackageAnalysis");
Expand Down
1 change: 1 addition & 0 deletions Source/Utility/Utility.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="Documentation.txt" />
<Content Include="Utility.shfbproj" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
11 changes: 6 additions & 5 deletions Source/Utility/Utility.shfbproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<!-- The configuration and platform will be used to determine which assemblies to include from solution and
<!-- The configuration and platform will be used to determine which assemblies to include from solution and
project documentation sources -->
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -14,12 +14,13 @@
<Name>Documentation</Name>
<!-- SHFB properties -->
<FrameworkVersion>.NET Framework 4.0</FrameworkVersion>
<OutputPath>.\Help\</OutputPath>
<OutputPath>..\..\Output</OutputPath>
<SourcePath>..\..\Output</SourcePath>
<HtmlHelpName>Utility</HtmlHelpName>
<Language>en-US</Language>
<DocumentationSources>
<DocumentationSource sourceFile="..\..\Output\Utility.dll" xmlns="" />
<DocumentationSource sourceFile="..\..\Output\Utility.xml" xmlns="" />
<DocumentationSource sourceFile="$(SourcePath)\Utility.dll" xmlns="" />
<DocumentationSource sourceFile="$(SourcePath)\Utility.xml" xmlns="" />
</DocumentationSources>
<BuildAssemblerVerbosity>OnlyWarningsAndErrors</BuildAssemblerVerbosity>
<HelpFileFormat>HtmlHelp1</HelpFileFormat>
Expand Down Expand Up @@ -56,7 +57,7 @@
<VisibleItems>None</VisibleItems>
<MissingTags>Summary, Parameter, Returns, TypeParameter</MissingTags>
</PropertyGroup>
<!-- There are no properties for these groups. AnyCPU needs to appear in order for Visual Studio to perform
<!-- There are no properties for these groups. AnyCPU needs to appear in order for Visual Studio to perform
the build. The others are optional common platform types that may appear. -->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
</PropertyGroup>
Expand Down

0 comments on commit 45b3495

Please sign in to comment.