|
@@ -0,0 +1,38 @@
|
|
1
|
+# 服务器配置
|
|
2
|
+
|
|
3
|
+- 下载BaGet Release版本
|
|
4
|
+- 添加应用程序池
|
|
5
|
+- 配置API Key
|
|
6
|
+- 配置web.config
|
|
7
|
+```
|
|
8
|
+<system.webServer>
|
|
9
|
+ <modules runAllManagedModulesForAllRequests="false">
|
|
10
|
+ <remove name="WebDAVModule" />
|
|
11
|
+ </modules>
|
|
12
|
+ <handlers>
|
|
13
|
+ <remove name="WebDAV" />
|
|
14
|
+ <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
|
|
15
|
+ <add name="WebDAV" path="*" verb="*" modules="WebDAVModule" resourceType="Unspecified" requireAccess="Write" />
|
|
16
|
+ </handlers>
|
|
17
|
+ <aspNetCore processPath="dotnet" arguments=".\BaGet.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
|
|
18
|
+ </system.webServer>
|
|
19
|
+```
|
|
20
|
+
|
|
21
|
+# 打包和发布
|
|
22
|
+
|
|
23
|
+- 来到类库根目录下
|
|
24
|
+- 打包
|
|
25
|
+```
|
|
26
|
+dotnet pack
|
|
27
|
+dotnet pack --configuration release
|
|
28
|
+```
|
|
29
|
+- 发布
|
|
30
|
+```
|
|
31
|
+dotnet nuget push -s http://47.103.61.198:5000/v3/index.json -k DD-NuGet BaGetDemo.Lib.1.0.0.nupkg
|
|
32
|
+```
|
|
33
|
+
|
|
34
|
+# VS配置NuGet数据源
|
|
35
|
+
|
|
36
|
+```
|
|
37
|
+工具--选项
|
|
38
|
+```
|