豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 9077d7a

Browse files
Merge pull request #104 from NuGet/dev
[ReleasePrep][2022-7-11] FI of dev into main
2 parents 97ef5cf + 97df05f commit 9077d7a

25 files changed

+95
-63
lines changed

CODE_OF_CONDUCT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Code of Conduct
2+
3+
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Contributing
2+
3+
This project welcomes contributions and suggestions. Most contributions require you to agree to the [.NET Foundation Contributor License Agreement (CLA)](https://cla.dotnetfoundation.org) declaring that you have the right to, and actually do, grant us the rights to use your contribution.
4+
5+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all projects in the .NET Foundation.
6+
7+
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).

LICENSE.txt

Lines changed: 51 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,50 @@
1-
21
Apache License
32
Version 2.0, January 2004
43
http://www.apache.org/licenses/
5-
4+
65
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7-
6+
87
1. Definitions.
9-
8+
109
"License" shall mean the terms and conditions for use, reproduction,
1110
and distribution as defined by Sections 1 through 9 of this document.
12-
11+
1312
"Licensor" shall mean the copyright owner or entity authorized by
1413
the copyright owner that is granting the License.
15-
14+
1615
"Legal Entity" shall mean the union of the acting entity and all
1716
other entities that control, are controlled by, or are under common
1817
control with that entity. For the purposes of this definition,
1918
"control" means (i) the power, direct or indirect, to cause the
2019
direction or management of such entity, whether by contract or
2120
otherwise, or (ii) ownership of fifty percent (50%) or more of the
2221
outstanding shares, or (iii) beneficial ownership of such entity.
23-
22+
2423
"You" (or "Your") shall mean an individual or Legal Entity
2524
exercising permissions granted by this License.
26-
25+
2726
"Source" form shall mean the preferred form for making modifications,
2827
including but not limited to software source code, documentation
2928
source, and configuration files.
30-
29+
3130
"Object" form shall mean any form resulting from mechanical
3231
transformation or translation of a Source form, including but
3332
not limited to compiled object code, generated documentation,
3433
and conversions to other media types.
35-
34+
3635
"Work" shall mean the work of authorship, whether in Source or
3736
Object form, made available under the License, as indicated by a
3837
copyright notice that is included in or attached to the work
3938
(an example is provided in the Appendix below).
40-
39+
4140
"Derivative Works" shall mean any work, whether in Source or Object
4241
form, that is based on (or derived from) the Work and for which the
4342
editorial revisions, annotations, elaborations, or other modifications
4443
represent, as a whole, an original work of authorship. For the purposes
4544
of this License, Derivative Works shall not include works that remain
4645
separable from, or merely link (or bind by name) to the interfaces of,
4746
the Work and Derivative Works thereof.
48-
47+
4948
"Contribution" shall mean any work of authorship, including
5049
the original version of the Work and any modifications or additions
5150
to that Work or Derivative Works thereof, that is intentionally
@@ -59,18 +58,18 @@
5958
Licensor for the purpose of discussing and improving the Work, but
6059
excluding communication that is conspicuously marked or otherwise
6160
designated in writing by the copyright owner as "Not a Contribution."
62-
61+
6362
"Contributor" shall mean Licensor and any individual or Legal Entity
6463
on behalf of whom a Contribution has been received by Licensor and
6564
subsequently incorporated within the Work.
66-
65+
6766
2. Grant of Copyright License. Subject to the terms and conditions of
6867
this License, each Contributor hereby grants to You a perpetual,
6968
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
7069
copyright license to reproduce, prepare Derivative Works of,
7170
publicly display, publicly perform, sublicense, and distribute the
7271
Work and such Derivative Works in Source or Object form.
73-
72+
7473
3. Grant of Patent License. Subject to the terms and conditions of
7574
this License, each Contributor hereby grants to You a perpetual,
7675
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
@@ -86,24 +85,24 @@
8685
or contributory patent infringement, then any patent licenses
8786
granted to You under this License for that Work shall terminate
8887
as of the date such litigation is filed.
89-
88+
9089
4. Redistribution. You may reproduce and distribute copies of the
9190
Work or Derivative Works thereof in any medium, with or without
9291
modifications, and in Source or Object form, provided that You
9392
meet the following conditions:
94-
93+
9594
(a) You must give any other recipients of the Work or
9695
Derivative Works a copy of this License; and
97-
96+
9897
(b) You must cause any modified files to carry prominent notices
9998
stating that You changed the files; and
100-
99+
101100
(c) You must retain, in the Source form of any Derivative Works
102101
that You distribute, all copyright, patent, trademark, and
103102
attribution notices from the Source form of the Work,
104103
excluding those notices that do not pertain to any part of
105104
the Derivative Works; and
106-
105+
107106
(d) If the Work includes a "NOTICE" text file as part of its
108107
distribution, then any Derivative Works that You distribute must
109108
include a readable copy of the attribution notices contained
@@ -120,27 +119,27 @@
120119
or as an addendum to the NOTICE text from the Work, provided
121120
that such additional attribution notices cannot be construed
122121
as modifying the License.
123-
122+
124123
You may add Your own copyright statement to Your modifications and
125124
may provide additional or different license terms and conditions
126125
for use, reproduction, or distribution of Your modifications, or
127126
for any such Derivative Works as a whole, provided Your use,
128127
reproduction, and distribution of the Work otherwise complies with
129128
the conditions stated in this License.
130-
129+
131130
5. Submission of Contributions. Unless You explicitly state otherwise,
132131
any Contribution intentionally submitted for inclusion in the Work
133132
by You to the Licensor shall be under the terms and conditions of
134133
this License, without any additional terms or conditions.
135134
Notwithstanding the above, nothing herein shall supersede or modify
136135
the terms of any separate license agreement you may have executed
137136
with Licensor regarding such Contributions.
138-
137+
139138
6. Trademarks. This License does not grant permission to use the trade
140139
names, trademarks, service marks, or product names of the Licensor,
141140
except as required for reasonable and customary use in describing the
142141
origin of the Work and reproducing the content of the NOTICE file.
143-
142+
144143
7. Disclaimer of Warranty. Unless required by applicable law or
145144
agreed to in writing, Licensor provides the Work (and each
146145
Contributor provides its Contributions) on an "AS IS" BASIS,
@@ -150,7 +149,7 @@
150149
PARTICULAR PURPOSE. You are solely responsible for determining the
151150
appropriateness of using or redistributing the Work and assume any
152151
risks associated with Your exercise of permissions under this License.
153-
152+
154153
8. Limitation of Liability. In no event and under no legal theory,
155154
whether in tort (including negligence), contract, or otherwise,
156155
unless required by applicable law (such as deliberate and grossly
@@ -162,7 +161,7 @@
162161
work stoppage, computer failure or malfunction, or any and all
163162
other commercial damages or losses), even if such Contributor
164163
has been advised of the possibility of such damages.
165-
164+
166165
9. Accepting Warranty or Additional Liability. While redistributing
167166
the Work or Derivative Works thereof, You may choose to offer,
168167
and charge a fee for, acceptance of support, warranty, indemnity,
@@ -173,5 +172,30 @@
173172
defend, and hold each Contributor harmless for any liability
174173
incurred by, or claims asserted against, such Contributor by reason
175174
of your accepting any such warranty or additional liability.
176-
175+
177176
END OF TERMS AND CONDITIONS
177+
178+
APPENDIX: How to apply the Apache License to your work.
179+
180+
To apply the Apache License to your work, attach the following
181+
boilerplate notice, with the fields enclosed by brackets "[]"
182+
replaced with your own identifying information. (Don't include
183+
the brackets!) The text should be enclosed in the appropriate
184+
comment syntax for the file format. We also recommend that a
185+
file or class name and description of purpose be included on the
186+
same "printed page" as the copyright notice for easier
187+
identification within third-party archives.
188+
189+
Copyright [yyyy] [name of copyright owner]
190+
191+
Licensed under the Apache License, Version 2.0 (the "License");
192+
you may not use this file except in compliance with the License.
193+
You may obtain a copy of the License at
194+
195+
http://www.apache.org/licenses/LICENSE-2.0
196+
197+
Unless required by applicable law or agreed to in writing, software
198+
distributed under the License is distributed on an "AS IS" BASIS,
199+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200+
See the License for the specific language governing permissions and
201+
limitations under the License.

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22

33
The home of the NuGet.server package, a lightweight standalone NuGet server
44

5-
# Open Source Code of Conduct
5+
## Open Source Code of Conduct
6+
67
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
78

9+
## Trademarks
10+
11+
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.
12+
813
## Feedback
914

1015
If you're having trouble with the NuGet.org Website or NuGet.Server, file a bug on the [NuGet Gallery Issue Tracker](https://github.com/nuget/NuGetGallery/issues).

samples/NuGet.Server.V2.Samples.OwinHost/NuGet.Server.V2.Samples.OwinHost.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@
7171
<HintPath>..\..\packages\Microsoft.Web.Xdt.2.1.1\lib\net40\Microsoft.Web.XmlTransform.dll</HintPath>
7272
<Private>True</Private>
7373
</Reference>
74-
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
75-
<HintPath>..\..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
76-
<Private>True</Private>
74+
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
75+
<HintPath>..\..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
7776
</Reference>
7877
<Reference Include="NuGet.Core, Version=2.14.0.832, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
7978
<HintPath>..\..\packages\NuGet.Core.2.14.0\lib\net40-Client\NuGet.Core.dll</HintPath>

samples/NuGet.Server.V2.Samples.OwinHost/app.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</dependentAssembly>
2626
<dependentAssembly>
2727
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
28-
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
28+
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
2929
</dependentAssembly>
3030
<dependentAssembly>
3131
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />

samples/NuGet.Server.V2.Samples.OwinHost/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<package id="Microsoft.Owin.Host.HttpListener" version="3.0.1" targetFramework="net45" />
1818
<package id="Microsoft.Owin.Hosting" version="3.0.1" targetFramework="net45" />
1919
<package id="Microsoft.Web.Xdt" version="2.1.1" targetFramework="net46" />
20-
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net46" />
20+
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net46" />
2121
<package id="NuGet.Core" version="2.14.0" targetFramework="net46" />
2222
<package id="Owin" version="1.0" targetFramework="net45" />
2323
<package id="System.Spatial" version="5.8.4" targetFramework="net46" />

src/NuGet.Server.Core/NuGet.Server.Core.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@
4343
<HintPath>..\..\packages\Microsoft.Web.Xdt.2.1.1\lib\net40\Microsoft.Web.XmlTransform.dll</HintPath>
4444
<Private>True</Private>
4545
</Reference>
46-
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
47-
<HintPath>..\..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
48-
<Private>True</Private>
46+
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
47+
<HintPath>..\..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
4948
</Reference>
5049
<Reference Include="NuGet.Core, Version=2.14.0.832, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5150
<HintPath>..\..\packages\NuGet.Core.2.14.0\lib\net40-Client\NuGet.Core.dll</HintPath>

src/NuGet.Server.Core/NuGet.Server.Core.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<dependencies>
1717
<group targetFramework="net46">
1818
<dependency id="Microsoft.Web.Xdt" version="2.1.1" />
19-
<dependency id="Newtonsoft.Json" version="9.0.1" />
19+
<dependency id="Newtonsoft.Json" version="13.0.1" />
2020
<dependency id="NuGet.Core" version="2.14.0" />
2121
</group>
2222
</dependencies>

src/NuGet.Server.Core/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
<package id="Microsoft.NetCore.Analyzers" version="3.3.0" targetFramework="net46" developmentDependency="true" />
88
<package id="Microsoft.NetFramework.Analyzers" version="3.3.0" targetFramework="net46" developmentDependency="true" />
99
<package id="Microsoft.Web.Xdt" version="2.1.1" targetFramework="net46" />
10-
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net46" />
10+
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net46" />
1111
<package id="NuGet.Core" version="2.14.0" targetFramework="net46" />
1212
</packages>

0 commit comments

Comments
 (0)