Skip to content

Commit

Permalink
cleaning up old NuGet packages before building properly
Browse files Browse the repository at this point in the history
  • Loading branch information
salaros committed Jun 17, 2018
1 parent 33e6a59 commit 6b92335
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,13 @@ assembly_info:
assembly_file_version: $(VERSION_SIMPLE)
assembly_informational_version: $(VERSION_INFORMATIONAL)

build_script:
# Run scripts below before
before_build:
- cmd: where dotnet
- cmd: dotnet clean

# Run scripts below before
build_script:
- cmd: dotnet build

# NuGet files qualified as artifacts
Expand Down
10 changes: 9 additions & 1 deletion src/WakaTime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,13 @@
<Compile Remove="IProgress.cs" />
<None Include="IProgress.cs" />
</ItemGroup>


<Target Name="CleanNuGetFiles" AfterTargets="Clean">
<ItemGroup>
<NuGetFilesBin Include="$(OutputPath)\..\*.nupkg" />
</ItemGroup>
<Message Text="Deleting NuGet files from $(OutputPath)\..\*.nupkg" Importance="high" />
<Delete Files="@(NuGetFilesBin)" />
<Delete Files="@(NuGetFilesProject)" />
</Target>
</Project>

0 comments on commit 6b92335

Please sign in to comment.