|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | | - |
3 | 2 | <PropertyGroup> |
4 | 3 | <TargetFramework>net47</TargetFramework> |
5 | 4 | </PropertyGroup> |
|
11 | 10 |
|
12 | 11 | <ItemGroup> |
13 | 12 | <PackageReference Include="CSemVer.Build.Tasks" Version="1.0.3-beta--ci-BLD.431367438" /> |
14 | | - <PackageReference Include="docfx.console" Version="2.29.1" Condition="'$(TargetFramework)'=='net47'" PrivateAssets="All" /> |
15 | | - <PackageReference Include="memberpage" Version="2.29.1" Condition="'$(TargetFramework)'=='net47'" PrivateAssets="All" /> |
| 13 | + <PackageReference Include="docfx.console" Version="2.31.0" Condition="'$(TargetFramework)'=='net47'" PrivateAssets="All" /> |
| 14 | + <PackageReference Include="memberpage" Version="2.31.0" Condition="'$(TargetFramework)'=='net47'" PrivateAssets="All" /> |
16 | 15 | <PackageReference Include="msdn.4.5.2" Version="0.1.0-alpha-1611021200" Condition="'$(TargetFramework)'=='net47'" PrivateAssets="All" /> |
17 | 16 | </ItemGroup> |
18 | 17 |
|
19 | | - |
20 | 18 | <!-- |
21 | 19 | This target dynamically resolves the installed location of the NuGet Packages used and applies |
22 | | - appropriate parameters to the docfx command to use them. Otherwise the docfx.json would need to |
| 20 | + appropriate parameters to the DocFx command to use them. Otherwise the docfx.json would need to |
23 | 21 | have a hard coded path, which doesn't work with multiple users of a version controlled project. |
24 | 22 | It also removes the need to workaround the hard coded path with relative paths by using a |
25 | 23 | nuget.config to force package installs to a well known location. |
|
35 | 33 | <MemberPagePath>%(memberpage.ResolvedPath)</MemberPagePath> |
36 | 34 | <MsdnXRefPath>%(msdn4_5_2.ResolvedPath)</MsdnXRefPath> |
37 | 35 | <LogLevel>Info</LogLevel> |
38 | | - <LogFile>$(IntermediateOutputPath)Docfx-Metadata.log</LogFile> |
| 36 | + <LogFile>$(IntermediateOutputPath)DocFx-Metadata.log</LogFile> |
39 | 37 | <DocParameters>$(DocParameters) --cleanupCacheHistory</DocParameters> |
40 | 38 | <DocParameters>$(DocParameters) --lruSize=0</DocParameters> |
41 | 39 | <DocParameters>$(DocParameters) --globalMetadata="{_buildVersion:\"$(FullBuildNumber)\"}"</DocParameters> |
42 | 40 | <DocParameters>$(DocParameters) --intermediateFolder="$(IntermediateOutputPath.TrimEnd('\'))"</DocParameters> |
43 | 41 | <DocParameters>$(DocParameters) --xref="$(MsdnXrefPath)\content\msdn.4.5.2.zip,$(MsdnXrefPath)\content\namespaces.4.5.2.zip"</DocParameters> |
44 | 42 | <DocTemplate>statictoc,$(MemberPagePath)\content,templates\Ubiquity</DocTemplate> |
45 | 43 | </PropertyGroup> |
| 44 | + <!-- NOTE: MSBuildVersion property is new in 15.6 (as of 15.6.0-pre.4.0 the value is 15.6.76 ) --> |
| 45 | + <Error Code="DOCFX:0001" ContinueOnError="false" Condition="$(MSBuildVersion)!=''" Text="As of DOCFX 2.31 docfx cannot generate metadata for CSPROJ files using VS 15.6.*" /> |
46 | 46 | </Target> |
47 | 47 |
|
48 | 48 | <!-- Stub the build target as this project only builds the documentation --> |
|
0 commit comments