LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 Copyright 2013 Google Inc | 2 Copyright 2013 Google Inc |
3 | 3 |
4 Licensed under the Apache License, Version 2.0 (the "License"); | 4 Licensed under the Apache License, Version 2.0 (the "License"); |
5 you may not use this file except in compliance with the License. | 5 you may not use this file except in compliance with the License. |
6 You may obtain a copy of the License at | 6 You may obtain a copy of the License at |
7 | 7 |
8 http://www.apache.org/licenses/LICENSE-2.0 | 8 http://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 |
10 Unless required by applicable law or agreed to in writing, software | 10 Unless required by applicable law or agreed to in writing, software |
11 distributed under the License is distributed on an "AS IS" BASIS, | 11 distributed under the License is distributed on an "AS IS" BASIS, |
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 See the License for the specific language governing permissions and | 13 See the License for the specific language governing permissions and |
14 limitations under the License. | 14 limitations under the License. |
15 */ | 15 */ |
16 | 16 |
17 using System; | 17 using System; |
18 using System.Diagnostics; | 18 using System.Diagnostics; |
19 using System.IO; | 19 using System.IO; |
20 using System.Linq; | 20 using System.Linq; |
21 | 21 |
22 using NuGet; | 22 using NuGet; |
| 23 |
| 24 using Google.Apis.Utils.Trace; |
23 | 25 |
24 namespace Google.Apis.Utils | 26 namespace Google.Apis.Utils |
25 { | 27 { |
26 /// <summary> | 28 /// <summary> |
27 /// NuGet utilities class which support publishing to NuGet main repository,
creating a local NuGet package, etc. | 29 /// NuGet utilities class which support publishing to NuGet main repository,
creating a local NuGet package, etc. |
28 /// </summary> | 30 /// </summary> |
29 public static class NuGetUtilities | 31 public static class NuGetUtilities |
30 { | 32 { |
31 private static readonly TraceSource TraceSource = new TraceSource("Googl
e.Apis"); | 33 private static readonly TraceSource TraceSource = new TraceSource("Googl
e.Apis"); |
32 | 34 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 /// Returns <c>true</c> if a NuGet package already exists in the main Nu
Get repository for the input name and· | 96 /// Returns <c>true</c> if a NuGet package already exists in the main Nu
Get repository for the input name and· |
95 /// version. | 97 /// version. |
96 /// </summary> | 98 /// </summary> |
97 public static bool DoesNugetPackageExist(string packageName, string vers
ion) | 99 public static bool DoesNugetPackageExist(string packageName, string vers
ion) |
98 { | 100 { |
99 IPackage package; | 101 IPackage package; |
100 return MainNuGetRepository.TryFindPackage(packageName, new SemanticV
ersion(version), out package); | 102 return MainNuGetRepository.TryFindPackage(packageName, new SemanticV
ersion(version), out package); |
101 } | 103 } |
102 } | 104 } |
103 } | 105 } |
LEFT | RIGHT |