Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b30195c

Browse files
committed
Adapt to internal changes in nuget packaging infrastructure
GetFilesToPackage is replaced with just GetDocumentationFile. The other files are added to the package contents through a different process now. [tfs-changeset: 1494556]
1 parent 4f32b8d commit b30195c

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

src/dir.targets

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,10 @@
1010
<Target Name="GetAssemblyVersion"
1111
Returns="$(AssemblyVersion)"/>
1212

13-
<!-- Returns the set of files to be included in the nuget package
14-
with appropriate metadata.-->
15-
<Target Name="GetFilesToPackage"
16-
Returns="@(FilesToPackage)">
17-
18-
<PropertyGroup>
19-
<PackagePath Condition="'$(PackagePath)' == ''">$(TargetPath)</PackagePath>
20-
<DocPackagePath Condition="'$(DocPackagePath)' == ''">$(DocumentationFile)</DocPackagePath>
21-
22-
<!-- default to treat as 'dotnet' package based portable library -->
23-
<PackageTargetFramework Condition="'$(PackageTargetFramework)' == ''">dotnet</PackageTargetFramework>
24-
<PackageTargetPath Condition="'$(PackageTargetPath)' == ''">lib/dotnet</PackageTargetPath>
25-
</PropertyGroup>
26-
27-
<ItemGroup>
28-
<FilesToPackage Include="$(PackagePath)">
29-
<AssemblyVersion>$(AssemblyVersion)</AssemblyVersion>
30-
<TargetFramework>$(PackageTargetFramework)</TargetFramework>
31-
<TargetPath>$(PackageTargetPath)</TargetPath>
32-
</FilesToPackage>
33-
<FilesToPackage Include="$(DocPackagePath)" Condition="Exists('$(DocPackagePath)')">
34-
<TargetFramework>$(PackageTargetFramework)</TargetFramework>
35-
<TargetPath>$(PackageTargetPath)</TargetPath>
36-
</FilesToPackage>
37-
</ItemGroup>
38-
</Target>
13+
<!-- Returns the generated documentation file for consumption
14+
by the NuGet package generation -->
15+
<Target Name="GetDocumentationFile"
16+
Returns="$(DocumentationFile)"/>
3917

4018
<Import Project="$(ToolsDir)Build.Common.targets" Condition="Exists('$(ToolsDir)Build.Common.targets')" />
4119
<Import Project="..\override.targets" Condition="Exists('..\override.targets')"/>

0 commit comments

Comments
 (0)