Skip to content

Commit 47bfd91

Browse files
committed
Add missing IsTestProject and IsPackable properties
This lets us "pack" the solution instead of listing out each project individually, since projects know themselves whether they should be packable.
1 parent 02708bb commit 47bfd91

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

build.proj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
</Target>
3232

3333
<Target Name="CreateNuGetPackage" AfterTargets="RunTests" Condition="$(Configuration) == 'Release'">
34-
<Exec Command="dotnet pack &quot;$(MSBuildThisFileDirectory)src\coverlet.msbuild.tasks\coverlet.msbuild.tasks.csproj&quot; -c $(Configuration) -o $(OutputPath) /p:PublicRelease=$(PublicRelease)" />
35-
<Exec Command="dotnet pack &quot;$(MSBuildThisFileDirectory)src\coverlet.console\coverlet.console.csproj&quot; -c $(Configuration) -o $(OutputPath) /p:PublicRelease=$(PublicRelease)" />
36-
<Exec Command="dotnet pack &quot;$(MSBuildThisFileDirectory)src\coverlet.collector\coverlet.collector.csproj&quot; -c $(Configuration) -o $(OutputPath) /p:PublicRelease=$(PublicRelease)" />
34+
<Exec Command="dotnet pack coverlet.sln -c $(Configuration) /p:PublicRelease=$(PublicRelease)" />
3735
</Target>
3836

3937
</Project>

src/coverlet.core/coverlet.core.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<OutputType>Library</OutputType>
55
<TargetFramework>netstandard2.0</TargetFramework>
66
<AssemblyVersion>5.1.0</AssemblyVersion>
7+
<IsPackable>false</IsPackable>
78
</PropertyGroup>
89

910
<ItemGroup>

test/Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<PropertyGroup>
4+
<IsTestProject>true</IsTestProject>
5+
</PropertyGroup>
6+
</Project>

test/coverlet.testsubject/coverlet.testsubject.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.0</TargetFramework>
5+
<IsPackable>false</IsPackable>
6+
<IsTestProject>false</IsTestProject>
57
</PropertyGroup>
68

79
</Project>

0 commit comments

Comments
 (0)