Skip to content

Commit

Permalink
only generate nuget package in Release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tonerdo committed Mar 21, 2018
1 parent fe69a62 commit 5f95af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<Exec Command="dotnet test $(MSBuildThisFileDirectory)test\coverlet.core.tests\coverlet.core.tests.csproj -c $(Configuration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover" />
</Target>

<Target Name="CreateNuGetPackage" AfterTargets="RunTests">
<Target Name="CreateNuGetPackage" AfterTargets="RunTests" Condition="$(Configuration) == 'Release'">
<Exec Command="dotnet pack $(MSBuildThisFileDirectory)src\coverlet.msbuild.tasks\coverlet.msbuild.tasks.csproj -c $(Configuration) -o $(OutputPath) /p:NuspecFile=$(NuspecFile)" />
</Target>

Expand Down

0 comments on commit 5f95af0

Please sign in to comment.