File tree Expand file tree Collapse file tree 6 files changed +23
-10
lines changed Expand file tree Collapse file tree 6 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 1
1
nuget.exe
2
2
NUnit. *
3
+ vswhere. *
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ set pre = Microsoft.VisualStudio.Product.
3
+ set ids = %pre% Community %pre% Professional %pre% Enterprise %pre% BuildTools
4
+
5
+ for /f " usebackq tokens=1* delims=: " %%i in (`%~dp0 \vswhere.1.0.58\tools\vswhere.exe -latest -products %ids% -requires Microsoft.Component.MSBuild`) do (
6
+ if /i " %%i " == " installationPath" set InstallDir = %%j
7
+ )
8
+
9
+ if exist " %InstallDir% \MSBuild\15.0\Bin\MSBuild.exe" (
10
+ " %InstallDir% \MSBuild\15.0\Bin\MSBuild.exe" %*
11
+ ) else (
12
+ exit /b -1
13
+ )
Original file line number Diff line number Diff line change 7
7
<package id =" NUnit.Extension.NUnitV2ResultWriter" version =" 3.5.0" targetFramework =" net461" />
8
8
<package id =" NUnit.Extension.TeamCityEventListener" version =" 1.0.2" targetFramework =" net461" />
9
9
<package id =" NUnit.Extension.VSProjectLoader" version =" 3.5.0" targetFramework =" net461" />
10
- </packages >
10
+ <package id =" vswhere" version =" 1.0.58" targetFramework =" net461" />
11
+ </packages >
Original file line number Diff line number Diff line change 64
64
65
65
<target name =" common.compile-all" depends =" common.generate-assemblyinfo common.nuget-restore" >
66
66
<!-- property name="msbuild.cmd" value="${cmd.sln} ${cmd.out} ${cmd.platform} ${cmd.debug} ${cmd.optimize} ${cmd.doc} /t:Rebuild /v:q /m" /-->
67
- <readregistry property =" MSBuildToolsPath" key =" SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0\MSBuildToolsPath" hive =" LocalMachine" />
68
-
69
- <exec program =" ${path::combine(MSBuildToolsPath, 'msbuild.exe')}" verbose =" true" >
67
+ <exec program =" ${path::combine(tools.dir, 'msbuild.cmd')}" verbose =" true" >
70
68
<arg value =" ${root.dir}/src/NHibernate.sln" />
71
69
<arg value =" /p:OutputPath=" ${path::get-full-path(bin.dir)}" " />
72
70
<arg value =" /p:Platform=" Any CPU" " />
Original file line number Diff line number Diff line change 9
9
<property name =" root.dir" value =" .." />
10
10
<include buildfile =" ${root.dir}/build-common/common-project.xml" />
11
11
12
- <target name =" init" depends =" common.init" >
12
+ <target name =" init" depends =" common.init common.nuget-restore " >
13
13
<property name =" doc.out.dir" value =" ${build.dir}/doc" />
14
14
<property name =" doc.help2.out.dir" value =" ${doc.out.dir}/help2" />
15
15
<property name =" doc.chm.out.dir" value =" ${doc.out.dir}" />
49
49
</copy >
50
50
</target >
51
51
52
- <target name =" api" depends =" init apidocbuilder-project" description =" Generates the API documentation (in MSDN style and VS.NET 2005 if available)" >
52
+ <target name =" api" depends =" init apidocbuilder-project" description =" Generates the API documentation (in MSDN style if available)" >
53
53
<uptodate property =" api.uptodate" >
54
54
<sourcefiles >
55
55
<include name =" ${bin.dir}/*.dll" />
64
64
<echo if =" ${api.uptodate}" >API documentation is up to date, skipping generation step.</echo >
65
65
66
66
<if test =" ${not api.uptodate}" >
67
- <property name =" apidocbuilder.exe" value =" ${directory::get-parent-directory(environment::get-folder-path('System'))}\Microsoft.NET\Framework\v3.5\MSBuild.exe" />
68
- <exec program =" ${apidocbuilder.exe}" >
67
+ <exec program =" ${path::combine(tools.dir, 'msbuild.cmd')}" >
69
68
<arg line =" NHibernate.shfbproj" />
70
69
</exec >
71
70
</if >
Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ You need a Java Runtime Environment (JRE) to run Saxon which is used to build
21
21
the documentation. You don't need to download and install Saxon, its jars are
22
22
present in the repository.
23
23
24
- You need HTML Help Workshop to build the CHM help file, and Visual Studio
25
- Help Integration Kit (VSHIK) to build the HtmlHelp2 help file.
24
+ You need HTML Help Workshop to build the CHM help file, and Sandcastle Help File
25
+ Builder (SHFB - https://github.com/EWSoftware/SHFB) to build the HtmlHelp2 help
26
+ file.
26
27
27
28
================================================================================
28
29
DocBook Quick Start
You can’t perform that action at this time.
0 commit comments