|
1234567891011121314151617181920212223242526272829303132333435363738 |
- # 服务器配置
-
- - 下载BaGet Release版本
- - 添加应用程序池
- - 配置API Key
- - 配置web.config
- ```
- <system.webServer>
- <modules runAllManagedModulesForAllRequests="false">
- <remove name="WebDAVModule" />
- </modules>
- <handlers>
- <remove name="WebDAV" />
- <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
- <add name="WebDAV" path="*" verb="*" modules="WebDAVModule" resourceType="Unspecified" requireAccess="Write" />
- </handlers>
- <aspNetCore processPath="dotnet" arguments=".\BaGet.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
- </system.webServer>
- ```
-
- # 打包和发布
-
- - 来到类库根目录下
- - 打包
- ```
- dotnet pack
- dotnet pack --configuration release
- ```
- - 发布
- ```
- dotnet nuget push -s http://47.103.61.198:5000/v3/index.json -k DD-NuGet BaGetDemo.Lib.1.0.0.nupkg
- ```
-
- # VS配置NuGet数据源
-
- ```
- 工具--选项
- ```
|