Skip to content

Commit df86fab

Browse files
author
Joshua Miller
committed
publishing fix
1 parent 9070d3f commit df86fab

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ deploy:
1515
skip_cleanup: true
1616
provider: script
1717
script:
18-
- dotnet pack Jenkins.Net/Jenkins.Net.csproj -c Debug --no-build
19-
- nuget push Jenkins.Net/bin/Jenkins.Net.*.nupkg -Source "$NUGET_SOURCE" -ApiKey "$NUGET_APIKEY"
18+
- cd Jenkins.Net
19+
- dotnet pack Jenkins.Net.csproj -c Debug --no-build --no-restore -o bin
20+
- nuget push bin/Jenkins.Net.*.nupkg -Source "$NUGET_SOURCE" -ApiKey "$NUGET_APIKEY"
2021
on:
2122
branch: master

Jenkins.Net/Jenkins.Net.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
<PropertyGroup Condition=" '$(TargetFramework)' == 'net40'">
3232
<DefineConstants>NET40</DefineConstants>
3333
</PropertyGroup>
34+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net40|AnyCPU'">
35+
<NoWarn>1591;1701;1702</NoWarn>
36+
</PropertyGroup>
3437
<ItemGroup Condition=" '$(TargetFramework)' == 'net40' or '$(TargetFramework)' == 'net45' ">
3538
<Reference Include="System" />
3639
<Reference Include="System.Core" />

0 commit comments

Comments
 (0)