File tree 4 files changed +19
-9
lines changed
4 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 2
2
<configuration >
3
3
<packageSources >
4
4
<add key =" NuGet.org" value =" https://api.nuget.org/v3/index.json" />
5
- <add key =" LocalNuget" value =" ~/.nuget/packages" />
6
5
</packageSources >
7
6
</configuration >
Original file line number Diff line number Diff line change 12
12
13
13
<Target Name =" PublishNuGetLocally" AfterTargets =" Build" >
14
14
<Exec Command =" dotnet pack $(ProjectPath)" />
15
- <Exec Command =" dotnet nuget delete --source ~/.nuget/packages $(PackageId) $(PackageVersion) --non-interactive" ContinueOnError =" WarnAndContinue" />
16
- <Exec Command =" dotnet nuget push --source ~/.nuget/packages $(ProjectDir)bin\$(ConfigurationName)\$(PackageId).$(PackageVersion).nupkg" />
17
- </Target >
18
15
16
+ <Exec Command =" dotnet nuget delete --source ~/.nuget/packages $(PackageId) $(PackageVersion) --non-interactive" ContinueOnError =" WarnAndContinue" Condition =" $(OS.Contains('Unix'))" />
17
+ <Exec Command =" dotnet nuget push --source ~/.nuget/packages $(ProjectDir)bin\$(ConfigurationName)\$(PackageId).$(PackageVersion).nupkg" Condition =" $(OS.Contains('Unix'))" />
18
+
19
+ <Exec Command =" dotnet nuget delete --source $(UserProfile)\.nuget\packages $(PackageId) $(PackageVersion) --non-interactive" ContinueOnError =" WarnAndContinue" Condition =" $(OS.Contains('Windows'))" />
20
+ <Exec Command =" dotnet nuget push --source $(UserProfile)\.nuget\packages $(ProjectDir)bin\$(ConfigurationName)\$(PackageId).$(PackageVersion).nupkg" Condition =" $(OS.Contains('Windows'))" />
21
+ </Target >
19
22
20
23
</Project >
Original file line number Diff line number Diff line change 12
12
13
13
<Target Name =" PublishNuGetLocally" AfterTargets =" Build" >
14
14
<Exec Command =" dotnet pack $(ProjectPath)" />
15
- <Exec Command =" dotnet nuget delete --source ~/.nuget/packages $(PackageId) $(PackageVersion) --non-interactive" ContinueOnError =" WarnAndContinue" />
16
- <Exec Command =" dotnet nuget push --source ~/.nuget/packages $(ProjectDir)bin\$(ConfigurationName)\$(PackageId).$(PackageVersion).nupkg" />
17
- </Target >
15
+
16
+ <Exec Command =" dotnet nuget delete --source ~/.nuget/packages $(PackageId) $(PackageVersion) --non-interactive" ContinueOnError =" WarnAndContinue" Condition =" $(OS.Contains('Unix'))" />
17
+ <Exec Command =" dotnet nuget push --source ~/.nuget/packages $(ProjectDir)bin\$(ConfigurationName)\$(PackageId).$(PackageVersion).nupkg" Condition =" $(OS.Contains('Unix'))" />
18
+
19
+ <Exec Command =" dotnet nuget delete --source $(UserProfile)\.nuget\packages $(PackageId) $(PackageVersion) --non-interactive" ContinueOnError =" WarnAndContinue" Condition =" $(OS.Contains('Windows'))" />
20
+ <Exec Command =" dotnet nuget push --source $(UserProfile)\.nuget\packages $(ProjectDir)bin\$(ConfigurationName)\$(PackageId).$(PackageVersion).nupkg" Condition =" $(OS.Contains('Windows'))" />
21
+ </Target >
18
22
19
23
20
24
</Project >
Original file line number Diff line number Diff line change 41
41
42
42
<Target Name =" PublishNuGetLocally" AfterTargets =" Build" >
43
43
<Exec Command =" dotnet pack $(ProjectPath)" />
44
- <Exec Command =" dotnet nuget delete --source ~/.nuget/packages $(PackageId) $(PackageVersion) --non-interactive" ContinueOnError =" WarnAndContinue" />
45
- <Exec Command =" dotnet nuget push --source ~/.nuget/packages $(ProjectDir)bin\$(ConfigurationName)\$(PackageId).$(PackageVersion).nupkg" />
44
+
45
+ <Exec Command =" dotnet nuget delete --source ~/.nuget/packages $(PackageId) $(PackageVersion) --non-interactive" ContinueOnError =" WarnAndContinue" Condition =" $(OS.Contains('Unix'))" />
46
+ <Exec Command =" dotnet nuget push --source ~/.nuget/packages $(ProjectDir)bin\$(ConfigurationName)\$(PackageId).$(PackageVersion).nupkg" Condition =" $(OS.Contains('Unix'))" />
47
+
48
+ <Exec Command =" dotnet nuget delete --source $(UserProfile)\.nuget\packages $(PackageId) $(PackageVersion) --non-interactive" ContinueOnError =" WarnAndContinue" Condition =" $(OS.Contains('Windows'))" />
49
+ <Exec Command =" dotnet nuget push --source $(UserProfile)\.nuget\packages $(ProjectDir)bin\$(ConfigurationName)\$(PackageId).$(PackageVersion).nupkg" Condition =" $(OS.Contains('Windows'))" />
46
50
</Target >
47
51
48
52
</Project >
You can’t perform that action at this time.
0 commit comments