Skip to content

Commit

Permalink
Set packages README correctly (#5029)
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Feb 17, 2025
1 parent 311cc69 commit 72b12f8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 29 deletions.
11 changes: 11 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@
<AssemblyFileVersion>14.0.0.0</AssemblyFileVersion>
</PropertyGroup>

<!-- Pack config -->
<PropertyGroup>
<PackageTags Condition=" '$(PackageTags)' == '' ">$(CommonPackageTags)</PackageTags>
<PackageReadmeFile Condition=" '$(PackageReadmeFile)' == '' and Exists('PACKAGE.md') ">PACKAGE.md</PackageReadmeFile>
</PropertyGroup>

<!-- Add a package README file from. -->
<ItemGroup Condition=" '$(PackageReadmeFile)' != '' ">
<None Include="$(PackageReadmeFile)" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>MSTest.Analyzers</PackageId>
<PackageReadmeFile>PACKAGE.md</PackageReadmeFile>
<PackageTags>MSTest Analyzers TestFramework Unittest MSTestV2 Microsoft Test Testing TDD Framework</PackageTags>
<PackageDescription>
MSTest is Microsoft supported Test Framework.
Expand All @@ -29,7 +28,6 @@

<ItemGroup>
<None Update="tools\*.ps1" CopyToOutputDirectory="PreserveNewest" Pack="true" PackagePath="" />
<None Include="$(PackageReadmeFile)" Pack="true" PackagePath="\" />
</ItemGroup>

<Target Name="_GenerateGlobalConfigs">
Expand Down
4 changes: 4 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@

<Import Project="../Directory.Build.props" />

<!-- Pack config -->
<PropertyGroup>
<CommonPackageTags>Microsoft test testing unittest unittesting unit-testing tdd</CommonPackageTags>
</PropertyGroup>
</Project>
5 changes: 0 additions & 5 deletions src/Package/MSTest/MSTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<IsPackable>true</IsPackable>
<PackageId>MSTest</PackageId>
<PackageTags>MSTest TestFramework TestAdapter VisualStudio Unittest MSTestV2 Microsoft</PackageTags>
<PackageReadmeFile>PACKAGE.md</PackageReadmeFile>
<PackageDescription>
MSTest is Microsoft supported Test Framework.

Expand Down Expand Up @@ -67,10 +66,6 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" VersionOverride="$(MicrosoftNETTestSdkVersion)" Condition="'$(TargetFramework)' != '$(UwpMinimum)'" PrivateAssets="none" />
</ItemGroup>

<ItemGroup>
<None Include="$(PackageReadmeFile)" Pack="true" PackagePath="\" />
</ItemGroup>

<!-- SDK bottom import -->
<Import Project="Sdk.targets" Sdk="MSBuild.Sdk.Extras" Condition=" '$(OS)' == 'Windows_NT' " />
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" Condition=" '$(OS)' != 'Windows_NT' " />
Expand Down
5 changes: 0 additions & 5 deletions src/Platform/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,4 @@
<IsPackable>true</IsPackable>
</PropertyGroup>

<!-- Pack config -->
<PropertyGroup>
<CommonPackageTags>Microsoft test testing unittest unittesting unit-testing tdd</CommonPackageTags>
</PropertyGroup>

</Project>
17 changes: 0 additions & 17 deletions src/Platform/Directory.Build.targets

This file was deleted.

0 comments on commit 72b12f8

Please sign in to comment.