Skip to content

Commit 9bc68cc

Browse files
committed
支持AOT
1 parent ca41525 commit 9bc68cc

15 files changed

+398
-223
lines changed

.gitignore

Lines changed: 71 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## Ignore Visual Studio temporary files, build results, and
1+
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
33
##
4-
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
4+
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
55

66
# User-specific files
77
*.rsuser
@@ -13,19 +13,24 @@
1313
# User-specific files (MonoDevelop/Xamarin Studio)
1414
*.userprefs
1515

16+
# Mono auto generated files
17+
mono_crash.*
18+
1619
# Build results
1720
[Dd]ebug/
1821
[Dd]ebugPublic/
1922
[Rr]elease/
2023
[Rr]eleases/
2124
x64/
2225
x86/
26+
[Ww][Ii][Nn]32/
2327
[Aa][Rr][Mm]/
2428
[Aa][Rr][Mm]64/
2529
bld/
2630
[Bb]in/
2731
[Oo]bj/
2832
[Ll]og/
33+
[Ll]ogs/
2934

3035
# Visual Studio 2015/2017 cache/options directory
3136
.vs/
@@ -39,9 +44,10 @@ Generated\ Files/
3944
[Tt]est[Rr]esult*/
4045
[Bb]uild[Ll]og.*
4146

42-
# NUNIT
47+
# NUnit
4348
*.VisualState.xml
4449
TestResult.xml
50+
nunit-*.xml
4551

4652
# Build Results of an ATL Project
4753
[Dd]ebugPS/
@@ -56,6 +62,9 @@ project.lock.json
5662
project.fragment.lock.json
5763
artifacts/
5864

65+
# ASP.NET Scaffolding
66+
ScaffoldingReadMe.txt
67+
5968
# StyleCop
6069
StyleCopReport.xml
6170

@@ -81,6 +90,7 @@ StyleCopReport.xml
8190
*.tmp_proj
8291
*_wpftmp.csproj
8392
*.log
93+
*.tlog
8494
*.vspscc
8595
*.vssscc
8696
.builds
@@ -122,9 +132,6 @@ _ReSharper*/
122132
*.[Rr]e[Ss]harper
123133
*.DotSettings.user
124134

125-
# JustCode is a .NET coding add-in
126-
.JustCode
127-
128135
# TeamCity is a build add-in
129136
_TeamCity*
130137

@@ -135,6 +142,11 @@ _TeamCity*
135142
.axoCover/*
136143
!.axoCover/settings.json
137144

145+
# Coverlet is a free, cross platform Code Coverage Tool
146+
coverage*.json
147+
coverage*.xml
148+
coverage*.info
149+
138150
# Visual Studio code coverage results
139151
*.coverage
140152
*.coveragexml
@@ -182,6 +194,8 @@ PublishScripts/
182194

183195
# NuGet Packages
184196
*.nupkg
197+
# NuGet Symbol Packages
198+
*.snupkg
185199
# The packages folder can be ignored because of Package Restore
186200
**/[Pp]ackages/*
187201
# except build/, which is used as an MSBuild target.
@@ -206,6 +220,8 @@ BundleArtifacts/
206220
Package.StoreAssociation.xml
207221
_pkginfo.txt
208222
*.appx
223+
*.appxbundle
224+
*.appxupload
209225

210226
# Visual Studio cache files
211227
# files ending in .cache can be ignored
@@ -255,7 +271,9 @@ ServiceFabricBackup/
255271
*.bim.layout
256272
*.bim_*.settings
257273
*.rptproj.rsuser
258-
*- Backup*.rdl
274+
*- [Bb]ackup.rdl
275+
*- [Bb]ackup ([0-9]).rdl
276+
*- [Bb]ackup ([0-9][0-9]).rdl
259277

260278
# Microsoft Fakes
261279
FakesAssemblies/
@@ -276,6 +294,17 @@ node_modules/
276294
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
277295
*.vbw
278296

297+
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
298+
*.vbp
299+
300+
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
301+
*.dsw
302+
*.dsp
303+
304+
# Visual Studio 6 technical files
305+
*.ncb
306+
*.aps
307+
279308
# Visual Studio LightSwitch build output
280309
**/*.HTMLClient/GeneratedArtifacts
281310
**/*.DesktopClient/GeneratedArtifacts
@@ -291,10 +320,6 @@ paket-files/
291320
# FAKE - F# Make
292321
.fake/
293322

294-
# JetBrains Rider
295-
.idea/
296-
*.sln.iml
297-
298323
# CodeRush personal settings
299324
.cr/personal
300325

@@ -336,5 +361,39 @@ ASALocalRun/
336361
# Local History for Visual Studio
337362
.localhistory/
338363

364+
# Visual Studio History (VSHistory) files
365+
.vshistory/
366+
339367
# BeatPulse healthcheck temp database
340-
healthchecksdb
368+
healthchecksdb
369+
370+
# Backup folder for Package Reference Convert tool in Visual Studio 2017
371+
MigrationBackup/
372+
373+
# Ionide (cross platform F# VS Code tools) working folder
374+
.ionide/
375+
376+
# Fody - auto-generated XML schema
377+
FodyWeavers.xsd
378+
379+
# VS Code files for those working on multiple tools
380+
.vscode/*
381+
!.vscode/settings.json
382+
!.vscode/tasks.json
383+
!.vscode/launch.json
384+
!.vscode/extensions.json
385+
*.code-workspace
386+
387+
# Local History for Visual Studio Code
388+
.history/
389+
390+
# Windows Installer files from build outputs
391+
*.cab
392+
*.msi
393+
*.msix
394+
*.msm
395+
*.msp
396+
397+
# JetBrains Rider
398+
.idea/
399+
*.sln.iml

Directory.Build.props

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<Project>
2+
3+
<Import Project="build\Version.props" />
4+
5+
<!-- 框架和语言信息 -->
6+
<PropertyGroup>
7+
<!-- 语言 -->
8+
<LangVersion>latest</LangVersion>
9+
<Nullable>enable</Nullable>
10+
<ImplicitUsings>enable</ImplicitUsings>
11+
<!-- 构建 -->
12+
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
13+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
14+
<!--
15+
CA1416: 平台兼容性警告
16+
-->
17+
<WarningsAsErrors>$(WarningsAsErrors);CA1416</WarningsAsErrors>
18+
<!--
19+
NU1507: 没有指定包源映射
20+
-->
21+
<NoWarn>$(NoWarn);NU1507</NoWarn>
22+
</PropertyGroup>
23+
24+
<!-- 自定义属性 -->
25+
<PropertyGroup>
26+
<RepositoryRoot>$(MSBuildThisFileDirectory)</RepositoryRoot>
27+
</PropertyGroup>
28+
29+
<!-- 产品和项目信息 -->
30+
<PropertyGroup>
31+
<RepositoryType>git</RepositoryType>
32+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
33+
<PackageProjectUrl>https://github.com/dotnet-campus/DotNetCampus.WeChatWork</PackageProjectUrl>
34+
<RepositoryUrl>https://github.com/dotnet-campus/DotNetCampus.WeChatWork.git</RepositoryUrl>
35+
<Product>企业微信机器人开发 API</Product>
36+
<Company>dotnet-campus</Company>
37+
</PropertyGroup>
38+
39+
</Project>

Directory.Packages.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<Project>
2+
<ItemGroup>
3+
</ItemGroup>
4+
</Project>

DotNetCampus.WeChatWork.sln

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ VisualStudioVersion = 16.0.29806.167
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotNetCampus.WeChatWork", "src\DotNetCampus.WeChatWork\DotNetCampus.WeChatWork.csproj", "{7A845A13-5328-4762-99BB-36646D92C7A4}"
77
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "0.仓库", "0.仓库", "{B078F507-C828-4A0A-A797-6BBF63FC6807}"
9+
ProjectSection(SolutionItems) = preProject
10+
.gitattributes = .gitattributes
11+
.gitignore = .gitignore
12+
Directory.Build.props = Directory.Build.props
13+
Directory.Packages.props = Directory.Packages.props
14+
README.md = README.md
15+
build\Version.props = build\Version.props
16+
EndProjectSection
17+
EndProject
818
Global
919
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1020
Debug|Any CPU = Debug|Any CPU

build/Version.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<Version>0.2.0</Version>
4+
</PropertyGroup>
5+
</Project>
Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6-
<PackageOutputPath>..\..\bin\$(Configuration)</PackageOutputPath>
7-
<Authors>dotnet-campus</Authors>
8-
<Product>企业微信机器人开发 API</Product>
9-
<Company>dotnet-campus</Company>
10-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
11-
<PackageProjectUrl>https://github.com/dotnet-campus/DotNetCampus.WeChatWork</PackageProjectUrl>
12-
<RepositoryUrl>https://github.com/dotnet-campus/DotNetCampus.WeChatWork.git</RepositoryUrl>
13-
<RepositoryType>git</RepositoryType>
14-
<Version>0.1.0</Version>
6+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7+
<IsAotCompatible>true</IsAotCompatible>
158
</PropertyGroup>
169

17-
<ItemGroup>
18-
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
19-
</ItemGroup>
20-
2110
</Project>

0 commit comments

Comments
 (0)