Skip to content

Commit 8a928b9

Browse files
authored
Merge pull request #1 from cnblogs/initialize
feat: initial commit
2 parents ef6a1b8 + 7023a12 commit 8a928b9

File tree

204 files changed

+7492
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+7492
-1
lines changed

.editorconfig

Lines changed: 388 additions & 0 deletions
Large diffs are not rendered by default.

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "nuget" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
container: mcr.microsoft.com/dotnet/sdk:8.0
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Build
18+
run: dotnet build -c Release
19+
- name: Test
20+
run: dotnet test -c Release
21+

.github/workflows/pack.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Package
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
pack:
10+
environment: nuget
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-dotnet@v3
15+
with:
16+
dotnet-version: '8'
17+
- name: Nuget Push
18+
env:
19+
nuget_key: ${{ secrets.NUGETAPIKEY }}
20+
run: |
21+
Version=${GITHUB_REF:10}
22+
dotnet build -c Release
23+
dotnet pack Cnblogs.DashScope.Sdk.sln -p:Version="${Version:1}" -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --include-source --property:PackageOutputPath=../../output
24+
dotnet nuget push ./output/*.* -s https://api.nuget.org/v3/index.json -k $nuget_key --skip-duplicate

.gitignore

Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
bin/
2+
obj/
3+
/node_modules
4+
/wwwroot/node_modules
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
*.userprefs
10+
[Dd]ebug/
11+
[Dd]ebugPublic/
12+
[Rr]elease/
13+
[Rr]eleases/
14+
x64/
15+
x86/
16+
bld/
17+
[Bb]in/
18+
[Oo]bj/
19+
[Ll]og/
20+
.vs/
21+
[Tt]est[Rr]esult*/
22+
[Bb]uild[Ll]og.*
23+
*.VisualState.xml
24+
TestResult.xml
25+
[Dd]ebugPS/
26+
[Rr]eleasePS/
27+
dlldata.c
28+
project.lock.json
29+
project.fragment.lock.json
30+
artifacts/
31+
*_i.c
32+
*_p.c
33+
*_i.h
34+
*.ilk
35+
*.meta
36+
*.obj
37+
*.pch
38+
*.pdb
39+
*.pgc
40+
*.pgd
41+
*.rsp
42+
*.sbr
43+
*.tlb
44+
*.tli
45+
*.tlh
46+
*.tmp
47+
*.tmp_proj
48+
*.log
49+
*.vspscc
50+
*.vssscc
51+
.builds
52+
*.pidb
53+
*.svclog
54+
*.scc
55+
_Chutzpah*
56+
ipch/
57+
*.aps
58+
*.ncb
59+
*.opendb
60+
*.opensdf
61+
*.sdf
62+
*.cachefile
63+
*.VC.db
64+
*.VC.VC.opendb
65+
*.psess
66+
*.vsp
67+
*.vspx
68+
*.sap
69+
$tf/
70+
*.gpState
71+
_ReSharper*/
72+
*.[Rr]e[Ss]harper
73+
*.DotSettings.user
74+
.JustCode
75+
_TeamCity*
76+
*.dotCover
77+
*.coverage
78+
*.coveragexml
79+
_NCrunch_*
80+
.*crunch*.local.xml
81+
nCrunchTemp_*
82+
*.mm.*
83+
AutoTest.Net/
84+
.sass-cache/
85+
[Ee]xpress/
86+
DocProject/buildhelp/
87+
DocProject/Help/*.HxT
88+
DocProject/Help/*.HxC
89+
DocProject/Help/*.hhc
90+
DocProject/Help/*.hhk
91+
DocProject/Help/*.hhp
92+
DocProject/Help/Html2
93+
DocProject/Help/html
94+
publish/
95+
*.[Pp]ublish.xml
96+
*.azurePubxml
97+
*.pubxml
98+
*.publishproj
99+
PublishScripts/
100+
*.nupkg
101+
**/packages/*
102+
!**/packages/build/
103+
*.nuget.props
104+
*.nuget.targets
105+
csx/
106+
*.build.csdef
107+
ecf/
108+
rcf/
109+
AppPackages/
110+
BundleArtifacts/
111+
Package.StoreAssociation.xml
112+
_pkginfo.txt
113+
*.[Cc]ache
114+
!*.[Cc]ache/
115+
ClientBin/
116+
~$*
117+
*~
118+
*.dbmdl
119+
*.dbproj.schemaview
120+
*.jfm
121+
*.pfx
122+
*.publishsettings
123+
node_modules/
124+
orleans.codegen.cs
125+
Generated_Code/
126+
_UpgradeReport_Files/
127+
Backup*/
128+
UpgradeLog*.XML
129+
UpgradeLog*.htm
130+
*.mdf
131+
*.ldf
132+
*.rdl.data
133+
*.bim.layout
134+
*.bim_*.settings
135+
FakesAssemblies/
136+
*.GhostDoc.xml
137+
.ntvs_analysis.dat
138+
*.plg
139+
*.opt
140+
**/*.HTMLClient/GeneratedArtifacts
141+
**/*.DesktopClient/GeneratedArtifacts
142+
**/*.DesktopClient/ModelManifest.xml
143+
**/*.Server/GeneratedArtifacts
144+
**/*.Server/ModelManifest.xml
145+
_Pvt_Extensions
146+
.paket/paket.exe
147+
paket-files/
148+
.fake/
149+
.idea/
150+
*.sln.iml
151+
.cr/
152+
__pycache__/
153+
*.pyc
154+
*.rsuser
155+
mono_crash.*
156+
[Ww][Ii][Nn]32/
157+
[Aa][Rr][Mm]/
158+
[Aa][Rr][Mm]64/
159+
[Ll]ogs/
160+
Generated\ Files/
161+
nunit-*.xml
162+
BenchmarkDotNet.Artifacts/
163+
ScaffoldingReadMe.txt
164+
StyleCopReport.xml
165+
*_h.h
166+
*.iobj
167+
*.ipdb
168+
*_wpftmp.csproj
169+
*.tlog
170+
*.e2e
171+
.axoCover/*
172+
!.axoCover/settings.json
173+
coverage*.json
174+
coverage*.xml
175+
coverage*.info
176+
*.snupkg
177+
**/[Pp]ackages/*
178+
!**/[Pp]ackages/build/
179+
*.appx
180+
*.appxbundle
181+
*.appxupload
182+
!?*.[Cc]ache/
183+
ServiceFabricBackup/
184+
*.rptproj.bak
185+
*.ndf
186+
*.rptproj.rsuser
187+
*- [Bb]ackup.rdl
188+
*- [Bb]ackup ([0-9]).rdl
189+
*- [Bb]ackup ([0-9][0-9]).rdl
190+
*.vbw
191+
*.vbp
192+
*.dsw
193+
*.dsp
194+
.cr/personal
195+
*.tss
196+
*.jmconfig
197+
*.btp.cs
198+
*.btm.cs
199+
*.odx.cs
200+
*.xsd.cs
201+
OpenCover/
202+
ASALocalRun/
203+
*.binlog
204+
*.nvuser
205+
.mfractor/
206+
.localhistory/
207+
.vshistory/
208+
healthchecksdb
209+
MigrationBackup/
210+
.ionide/
211+
FodyWeavers.xsd
212+
.vscode/*
213+
!.vscode/settings.json
214+
!.vscode/tasks.json
215+
!.vscode/launch.json
216+
!.vscode/extensions.json
217+
*.code-workspace
218+
.history/
219+
*.cab
220+
*.msi
221+
*.msix
222+
*.msm
223+
*.msp
224+
coverage*[.json, .xml, .info]

Cnblogs.DashScope.Sdk.sln

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{008988ED-0A3B-4272-BCC3-7B4110699345}"
4+
EndProject
5+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{CFC8ECB3-5248-46CD-A56C-EC088F2A3804}"
6+
EndProject
7+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cnblogs.DashScope.Sdk", "src\Cnblogs.DashScope.Sdk\Cnblogs.DashScope.Sdk.csproj", "{FA6A118A-8D26-4B7A-9952-8504B8A0025B}"
8+
EndProject
9+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cnblogs.DashScope.Sdk.UnitTests", "test\Cnblogs.DashScope.Sdk.UnitTests\Cnblogs.DashScope.Sdk.UnitTests.csproj", "{BC102292-E664-47F5-B0C7-C4D7A2301002}"
10+
EndProject
11+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sample", "sample", "{2E15D1EC-4A07-416E-8BE6-D907F509FD35}"
12+
EndProject
13+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cnblogs.DashScope.Sample", "sample\Cnblogs.DashScope.Sample\Cnblogs.DashScope.Sample.csproj", "{8885149A-78F0-4C8E-B9AA-87A46EA69219}"
14+
EndProject
15+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cnblogs.DashScope.AspNetCore", "src\Cnblogs.DashScope.AspNetCore\Cnblogs.DashScope.AspNetCore.csproj", "{C910495B-87AB-4AC1-989C-B6720695A139}"
16+
EndProject
17+
Global
18+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
19+
Debug|Any CPU = Debug|Any CPU
20+
Release|Any CPU = Release|Any CPU
21+
EndGlobalSection
22+
GlobalSection(NestedProjects) = preSolution
23+
{FA6A118A-8D26-4B7A-9952-8504B8A0025B} = {008988ED-0A3B-4272-BCC3-7B4110699345}
24+
{BC102292-E664-47F5-B0C7-C4D7A2301002} = {CFC8ECB3-5248-46CD-A56C-EC088F2A3804}
25+
{8885149A-78F0-4C8E-B9AA-87A46EA69219} = {2E15D1EC-4A07-416E-8BE6-D907F509FD35}
26+
{C910495B-87AB-4AC1-989C-B6720695A139} = {008988ED-0A3B-4272-BCC3-7B4110699345}
27+
EndGlobalSection
28+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29+
{FA6A118A-8D26-4B7A-9952-8504B8A0025B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{FA6A118A-8D26-4B7A-9952-8504B8A0025B}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{FA6A118A-8D26-4B7A-9952-8504B8A0025B}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{FA6A118A-8D26-4B7A-9952-8504B8A0025B}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{BC102292-E664-47F5-B0C7-C4D7A2301002}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{BC102292-E664-47F5-B0C7-C4D7A2301002}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{BC102292-E664-47F5-B0C7-C4D7A2301002}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{BC102292-E664-47F5-B0C7-C4D7A2301002}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{8885149A-78F0-4C8E-B9AA-87A46EA69219}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{8885149A-78F0-4C8E-B9AA-87A46EA69219}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{8885149A-78F0-4C8E-B9AA-87A46EA69219}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{8885149A-78F0-4C8E-B9AA-87A46EA69219}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{C910495B-87AB-4AC1-989C-B6720695A139}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{C910495B-87AB-4AC1-989C-B6720695A139}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{C910495B-87AB-4AC1-989C-B6720695A139}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{C910495B-87AB-4AC1-989C-B6720695A139}.Release|Any CPU.Build.0 = Release|Any CPU
45+
EndGlobalSection
46+
EndGlobal

Cnblogs.DashScope.Sdk.sln.DotSettings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:Boolean x:Key="/Default/Environment/Filtering/ExcludeCoverageFilters/=Cnblogs_002EDashScope_002ESample_003B_002A_003B_002A_003B_002A/@EntryIndexedValue">True</s:Boolean>
3+
<s:Boolean x:Key="/Default/Environment/Filtering/ExcludeCoverageFilters/=Cnblogs_002EDashScope_002ESdk_002EUnitTests_003B_002A_003B_002A_003B_002A/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

Directory.Build.props

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Project>
2+
<PropertyGroup>
3+
<TargetFramework>net8.0</TargetFramework>
4+
<Nullable>enable</Nullable>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Authors>Cnblogs</Authors>
7+
<Description>An unofficial dotnet DashScope SDK maintained by cnblogs.</Description>
8+
<PackageProjectUrl>https://github.com/cnblogs/DashScopeSDK</PackageProjectUrl>
9+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
10+
<RepositoryUrl>https://github.com/cnblogs/DashScopeSDK</RepositoryUrl>
11+
<RepositoryType>git</RepositoryType>
12+
</PropertyGroup>
13+
14+
<ItemGroup>
15+
<PackageReference Include="Cnblogs.CodeQuality" Version="1.8.1">
16+
<PrivateAssets>all</PrivateAssets>
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
</PackageReference>
19+
</ItemGroup>
20+
</Project>

0 commit comments

Comments
 (0)