Skip to content

Commit 6b92335

Browse files
committed
cleaning up old NuGet packages before building properly
1 parent 33e6a59 commit 6b92335

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

appveyor.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,13 @@ assembly_info:
7878
assembly_file_version: $(VERSION_SIMPLE)
7979
assembly_informational_version: $(VERSION_INFORMATIONAL)
8080

81-
build_script:
81+
# Run scripts below before
82+
before_build:
8283
- cmd: where dotnet
84+
- cmd: dotnet clean
85+
86+
# Run scripts below before
87+
build_script:
8388
- cmd: dotnet build
8489

8590
# NuGet files qualified as artifacts

src/WakaTime.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,13 @@
5252
<Compile Remove="IProgress.cs" />
5353
<None Include="IProgress.cs" />
5454
</ItemGroup>
55-
55+
56+
<Target Name="CleanNuGetFiles" AfterTargets="Clean">
57+
<ItemGroup>
58+
<NuGetFilesBin Include="$(OutputPath)\..\*.nupkg" />
59+
</ItemGroup>
60+
<Message Text="Deleting NuGet files from $(OutputPath)\..\*.nupkg" Importance="high" />
61+
<Delete Files="@(NuGetFilesBin)" />
62+
<Delete Files="@(NuGetFilesProject)" />
63+
</Target>
5664
</Project>

0 commit comments

Comments
 (0)