|
14 | 14 | <PropertyGroup> |
15 | 15 | <!-- Also in global.json --> |
16 | 16 | <DotNetApiDocsNetCoreApp30>0.0.0.1</DotNetApiDocsNetCoreApp30> |
17 | | - <IntellisenseXmlDir>$(RepositoryToolsDir)native\bin\dotnet-api-docs_netcoreapp3.0\$(DotNetApiDocsNetCoreApp30)\_intellisense\netcore-3.0\</IntellisenseXmlDir> |
| 17 | + <IntellisenseXmlDir>$(RepositoryToolsDir)\bin\dotnet-api-docs_netcoreapp3.0\$(DotNetApiDocsNetCoreApp30)\_intellisense\netcore-3.0\</IntellisenseXmlDir> |
18 | 18 | </PropertyGroup> |
19 | 19 |
|
20 | 20 | <PropertyGroup> |
21 | 21 | <IntellisenseXmlFileSource>$(IntellisenseXmlDir)$(AssemblyName).xml</IntellisenseXmlFileSource> |
22 | 22 | <!-- TODO: remove when we get dotnet-api-docs_netcoreapp5.0 --> |
23 | 23 | <IntellisenseXmlFileSource Condition="!Exists('$(IntellisenseXmlFileSource)')">$([System.IO.Path]::ChangeExtension('$(TargetPath)', '.xml'))</IntellisenseXmlFileSource> |
24 | | - |
| 24 | + |
25 | 25 | <IntellisenseXml Condition="'$(ProduceReferenceAssembly)' == 'true' And '$(PackageAsRefAndLib)' != 'true'" >$([System.IO.Path]::ChangeExtension('$(TargetRefPath)', '.xml'))</IntellisenseXml> |
26 | 26 | <IntellisenseXml Condition="'$(PackageAsRefAndLib)' == 'true'" >$([System.IO.Path]::ChangeExtension('$(TargetPath)', '.xml'))</IntellisenseXml> |
27 | 27 |
|
28 | 28 | <IntellisenseXmlDir Condition="'$(IntellisenseXml)' != ''">$([System.IO.Path]::GetDirectoryName('$(IntellisenseXml)'))</IntellisenseXmlDir> |
29 | 29 | </PropertyGroup> |
30 | | - |
| 30 | + |
31 | 31 | <Target Name="GetPackageContent" |
32 | 32 | DependsOnTargets="SatelliteDllsProjectOutputGroup" |
33 | 33 | Returns="@(PackageFile)"> |
34 | 34 | <ItemGroup> |
35 | 35 | <PackageFile Include="$(TargetPath)" PackagePath="$(PackagePath)" /> |
36 | 36 | <PackageFile Condition="'$(IncludePdbInPackage)' == 'true'" Include="$(TargetDir)$(TargetName).pdb" PackagePath="$(PackagePath)" /> |
37 | 37 | <PackageFile Condition="'$(ProduceReferenceAssembly)' == 'true'" Include="$(TargetRefPath)" PackagePath="$(RefPackagePath)" /> |
38 | | - <PackageFile Condition="'$(ProduceReferenceAssembly)' == 'true' Or '$(PackageAsRefAndLib)' == 'true'" |
39 | | - Include="$(IntellisenseXml)" |
| 38 | + <PackageFile Condition="'$(ProduceReferenceAssembly)' == 'true' Or '$(PackageAsRefAndLib)' == 'true'" |
| 39 | + Include="$(IntellisenseXml)" |
40 | 40 | PackagePath="$(RefPackagePath)" /> |
41 | 41 | <PackageFile Condition="'$(PackageAsRefAndLib)' == 'true'" Include="$(TargetPath)" PackagePath="$(RefPackagePath)" /> |
42 | 42 | <PackageFile Condition="'$(IncludeResourcesInPackage)' == 'true'" |
43 | 43 | Include="@(SatelliteDllsProjectOutputGroupOutput->'%(FinalOutputPath)')" |
44 | 44 | PackagePath="$(PackagePath)/%(SatelliteDllsProjectOutputGroupOutput.Culture)" /> |
45 | 45 | </ItemGroup> |
46 | 46 | </Target> |
47 | | - |
| 47 | + |
48 | 48 | <!-- xml files can be added here for intellisense --> |
49 | 49 | <Target Name="CopyIntellisenseXmlsToTargetRefPath" |
50 | 50 | AfterTargets="Build" |
51 | 51 | Inputs="$(IntellisenseXmlFileSource)" |
52 | 52 | Outputs="$(IntellisenseXml)" |
53 | 53 | Condition="'$(ProduceReferenceAssembly)' == 'true' Or '$(PackageAsRefAndLib)' == 'true'"> |
54 | | - |
| 54 | + |
55 | 55 | <Message Condition="!Exists('$(IntellisenseXmlFileSource)')" |
56 | 56 | Text="$(IntellisenseXmlFileSource) is missing" /> |
57 | 57 |
|
58 | 58 | <MakeDir Condition="!Exists('$(IntellisenseXmlDir)')" |
59 | 59 | Directories="$([System.IO.Path]::GetDirectoryName('$(IntellisenseXml)'))" /> |
60 | | - |
| 60 | + |
61 | 61 | <Copy SourceFiles="$(IntellisenseXmlFileSource)" |
62 | 62 | Condition="Exists('$(IntellisenseXmlFileSource)')" |
63 | 63 | DestinationFiles="$(IntellisenseXml)" |
|
0 commit comments