Initial commit: .NET practice project

Added CSharp, Nots, and Wpf directories with various practice exercises and projects.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude committed 2025-09-25 21:02:53 +08:00
commit 90d09449ae
1196 files changed
+26114

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
{
"permissions": {
"allow": [
"Bash(git init:*)",
"Bash(git remote add:*)",
"Bash(git add:*)"
],
"deny": [],
"ask": []
}
}
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RiderProjectSettingsUpdater">
<option name="vcsConfiguration" value="2" />
</component>
</project>
@@ -0,0 +1,4 @@
<changelist name="更改" date="1682174501411" recycled="false">
<option name="PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/更改/shelved.patch" />
<option name="DESCRIPTION" value="更改" />
</changelist>
@@ -0,0 +1,119 @@
<changelist name="在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]" date="1682174063462" recycled="true" deleted="true">
<option name="PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/shelved.patch" />
<option name="DESCRIPTION" value="在进行更新之前于 2023/4/22 22:34 取消提交了更改 [新建更改列表]" />
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/Debug/net6.0/ConsoleApp.pdb" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp.pdb" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/Debug/net6.0/ConsoleApp.assets.cache" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp.assets.cache" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.AssemblyReference.cache" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp.csproj.AssemblyReference.cache" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/Debug/net6.0/apphost.exe" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/apphost.exe" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/Debug/net6.0/ConsoleApp.dll" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp.dll" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value=".vs/ConsoleApp/FileContentIndex/c18502b2-2cd3-4491-9ca6-0c5360159540.vsidx" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/c18502b2-2cd3-4491-9ca6-0c5360159540.vsidx" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value=".vs/ProjectEvaluation/consoleapp.projects.v6.1" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/consoleapp.projects.v6.1" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/bin/Debug/net6.0/ConsoleApp.pdb" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp1.pdb" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value=".vs/ConsoleApp/FileContentIndex/170d3185-04fb-4485-a1aa-885d45942e0a.vsidx" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/170d3185-04fb-4485-a1aa-885d45942e0a.vsidx" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/bin/Debug/net6.0/ConsoleApp.dll" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp1.dll" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value=".vs/ConsoleApp/DesignTimeBuild/.dtbcache.v2" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/.dtbcache.v2" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value=".vs/ConsoleApp/v17/.futdcache.v2" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/.futdcache.v2" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value=".vs/ProjectEvaluation/consoleapp.metadata.v6.1" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/consoleapp.metadata.v6.1" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.CoreCompileInputs.cache" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp.csproj.CoreCompileInputs.cache" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value=".vs/ConsoleApp/FileContentIndex/12287b6e-9065-4f1b-98cd-8b53a73814b3.vsidx" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/12287b6e-9065-4f1b-98cd-8b53a73814b3.vsidx" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/project.nuget.cache" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/project.nuget.cache" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value=".vs/ConsoleApp/v17/.suo" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/.suo" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/Debug/net6.0/ref/ConsoleApp.dll" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp2.dll" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value=".vs/ConsoleApp/FileContentIndex/49331595-83ea-49e0-912c-0f42a529878f.vsidx" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/49331595-83ea-49e0-912c-0f42a529878f.vsidx" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/bin/Debug/net6.0/ConsoleApp.exe" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp.exe" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/Debug/net6.0/ConsoleApp.AssemblyInfoInputs.cache" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp.AssemblyInfoInputs.cache" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/Debug/net6.0/refint/ConsoleApp.dll" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp3.dll" />
</binary>
<binary>
<option name="BEFORE_PATH" />
<option name="AFTER_PATH" value="ConsoleApp/obj/Debug/net6.0/ConsoleApp.genruntimeconfig.cache" />
<option name="SHELVED_PATH" value="$PROJECT_DIR$/.idea/.idea.ConsoleApp/.idea/shelf/在进行更新之前于_2023_4_22_22_34_取消提交了更改_[新建更改列表]/ConsoleApp.genruntimeconfig.cache" />
</binary>
</changelist>
@@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "fCer9DicMwtXz+tEnCytoS/NlVQoB2vfSUq/jAxcIr/eJ2nnHdgHdo9JdmD5m0+kqPWCw6OKvasgQpGt9wGqPA==",
"success": true,
"projectFilePath": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj",
"expectedPackageFiles": [],
"logs": []
}
@@ -0,0 +1,461 @@
Index: ConsoleApp/obj/ConsoleApp.csproj.nuget.dgspec.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/ConsoleApp.csproj.nuget.dgspec.json b/ConsoleApp/obj/ConsoleApp.csproj.nuget.dgspec.json
new file mode 100644
--- /dev/null (date 1682163883164)
+++ b/ConsoleApp/obj/ConsoleApp.csproj.nuget.dgspec.json (date 1682163883164)
@@ -0,0 +1,67 @@
+{
+ "format": 1,
+ "restore": {
+ "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj": {}
+ },
+ "projects": {
+ "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj": {
+ "version": "1.0.0",
+ "restore": {
+ "projectUniqueName": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj",
+ "projectName": "ConsoleApp",
+ "projectPath": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj",
+ "packagesPath": "C:\\Users\\charlatans\\.nuget\\packages\\",
+ "outputPath": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\obj\\",
+ "projectStyle": "PackageReference",
+ "fallbackFolders": [
+ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
+ ],
+ "configFilePaths": [
+ "C:\\Users\\charlatans\\AppData\\Roaming\\NuGet\\NuGet.Config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+ ],
+ "originalTargetFrameworks": [
+ "net6.0"
+ ],
+ "sources": {
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+ "https://api.nuget.org/v3/index.json": {}
+ },
+ "frameworks": {
+ "net6.0": {
+ "targetAlias": "net6.0",
+ "projectReferences": {}
+ }
+ },
+ "warningProperties": {
+ "warnAsError": [
+ "NU1605"
+ ]
+ }
+ },
+ "frameworks": {
+ "net6.0": {
+ "targetAlias": "net6.0",
+ "imports": [
+ "net461",
+ "net462",
+ "net47",
+ "net471",
+ "net472",
+ "net48",
+ "net481"
+ ],
+ "assetTargetFallback": true,
+ "warn": true,
+ "frameworkReferences": {
+ "Microsoft.NETCore.App": {
+ "privateAssets": "all"
+ }
+ },
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
Index: ConsoleApp/obj/project.assets.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/project.assets.json b/ConsoleApp/obj/project.assets.json
new file mode 100644
--- /dev/null (date 1682163883161)
+++ b/ConsoleApp/obj/project.assets.json (date 1682163883161)
@@ -0,0 +1,73 @@
+{
+ "version": 3,
+ "targets": {
+ "net6.0": {}
+ },
+ "libraries": {},
+ "projectFileDependencyGroups": {
+ "net6.0": []
+ },
+ "packageFolders": {
+ "C:\\Users\\charlatans\\.nuget\\packages\\": {},
+ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
+ },
+ "project": {
+ "version": "1.0.0",
+ "restore": {
+ "projectUniqueName": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj",
+ "projectName": "ConsoleApp",
+ "projectPath": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj",
+ "packagesPath": "C:\\Users\\charlatans\\.nuget\\packages\\",
+ "outputPath": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\obj\\",
+ "projectStyle": "PackageReference",
+ "fallbackFolders": [
+ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
+ ],
+ "configFilePaths": [
+ "C:\\Users\\charlatans\\AppData\\Roaming\\NuGet\\NuGet.Config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+ ],
+ "originalTargetFrameworks": [
+ "net6.0"
+ ],
+ "sources": {
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+ "https://api.nuget.org/v3/index.json": {}
+ },
+ "frameworks": {
+ "net6.0": {
+ "targetAlias": "net6.0",
+ "projectReferences": {}
+ }
+ },
+ "warningProperties": {
+ "warnAsError": [
+ "NU1605"
+ ]
+ }
+ },
+ "frameworks": {
+ "net6.0": {
+ "targetAlias": "net6.0",
+ "imports": [
+ "net461",
+ "net462",
+ "net47",
+ "net471",
+ "net472",
+ "net48",
+ "net481"
+ ],
+ "assetTargetFallback": true,
+ "warn": true,
+ "frameworkReferences": {
+ "Microsoft.NETCore.App": {
+ "privateAssets": "all"
+ }
+ },
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
+ }
+ }
+ }
+}
\ No newline at end of file
Index: ConsoleApp.sln.DotSettings.user
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp.sln.DotSettings.user b/ConsoleApp.sln.DotSettings.user
new file mode 100644
--- /dev/null (date 1682169564342)
+++ b/ConsoleApp.sln.DotSettings.user (date 1682169564342)
@@ -0,0 +1,2 @@
+<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">
+ <s:String x:Key="/Default/CodeInspection/PencilsConfiguration/ActualSeverity/@EntryValue">WARNING</s:String></wpf:ResourceDictionary>
\ No newline at end of file
Index: ConsoleApp/obj/ConsoleApp.csproj.nuget.g.targets
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/ConsoleApp.csproj.nuget.g.targets b/ConsoleApp/obj/ConsoleApp.csproj.nuget.g.targets
new file mode 100644
--- /dev/null (date 1682163883159)
+++ b/ConsoleApp/obj/ConsoleApp.csproj.nuget.g.targets (date 1682163883159)
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
\ No newline at end of file
Index: ConsoleApp/bin/Debug/net6.0/ConsoleApp.deps.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/bin/Debug/net6.0/ConsoleApp.deps.json b/ConsoleApp/bin/Debug/net6.0/ConsoleApp.deps.json
new file mode 100644
--- /dev/null (date 1682170445481)
+++ b/ConsoleApp/bin/Debug/net6.0/ConsoleApp.deps.json (date 1682170445481)
@@ -0,0 +1,23 @@
+{
+ "runtimeTarget": {
+ "name": ".NETCoreApp,Version=v6.0",
+ "signature": ""
+ },
+ "compilationOptions": {},
+ "targets": {
+ ".NETCoreApp,Version=v6.0": {
+ "ConsoleApp/1.0.0": {
+ "runtime": {
+ "ConsoleApp.dll": {}
+ }
+ }
+ }
+ },
+ "libraries": {
+ "ConsoleApp/1.0.0": {
+ "type": "project",
+ "serviceable": false,
+ "sha512": ""
+ }
+ }
+}
\ No newline at end of file
Index: ConsoleApp/obj/Debug/net6.0/ConsoleApp.AssemblyInfo.cs
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/Debug/net6.0/ConsoleApp.AssemblyInfo.cs b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.AssemblyInfo.cs
new file mode 100644
--- /dev/null (date 1682163882974)
+++ b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.AssemblyInfo.cs (date 1682163882974)
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
+//
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("ConsoleApp")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
+[assembly: System.Reflection.AssemblyProductAttribute("ConsoleApp")]
+[assembly: System.Reflection.AssemblyTitleAttribute("ConsoleApp")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// 由 MSBuild WriteCodeFragment 类生成。
+
Index: ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.FileListAbsolute.txt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.FileListAbsolute.txt b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.FileListAbsolute.txt
new file mode 100644
--- /dev/null (date 1682164240788)
+++ b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.FileListAbsolute.txt (date 1682164240788)
@@ -0,0 +1,15 @@
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.exe
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.deps.json
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.runtimeconfig.json
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.dll
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.pdb
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.csproj.AssemblyReference.cache
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.GeneratedMSBuildEditorConfig.editorconfig
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.AssemblyInfoInputs.cache
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.AssemblyInfo.cs
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.csproj.CoreCompileInputs.cache
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.dll
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\refint\ConsoleApp.dll
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.pdb
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.genruntimeconfig.cache
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ref\ConsoleApp.dll
Index: ConsoleApp/obj/Debug/net6.0/ConsoleApp.GeneratedMSBuildEditorConfig.editorconfig
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/Debug/net6.0/ConsoleApp.GeneratedMSBuildEditorConfig.editorconfig b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.GeneratedMSBuildEditorConfig.editorconfig
new file mode 100644
--- /dev/null (date 1682163882967)
+++ b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.GeneratedMSBuildEditorConfig.editorconfig (date 1682163882967)
@@ -0,0 +1,11 @@
+is_global = true
+build_property.TargetFramework = net6.0
+build_property.TargetPlatformMinVersion =
+build_property.UsingMicrosoftNETSdkWeb =
+build_property.ProjectTypeGuids =
+build_property.InvariantGlobalization =
+build_property.PlatformNeutralAssembly =
+build_property.EnforceExtendedAnalyzerRules =
+build_property._SupportedPlatformList = Linux,macOS,Windows
+build_property.RootNamespace = ConsoleApp
+build_property.ProjectDir = D:\DoNet\CSharp\ConsoleApp\ConsoleApp\
Index: .idea/.idea.ConsoleApp/.idea/vcs.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/.idea/.idea.ConsoleApp/.idea/vcs.xml b/.idea/.idea.ConsoleApp/.idea/vcs.xml
new file mode 100644
--- /dev/null (date 1682173438257)
+++ b/.idea/.idea.ConsoleApp/.idea/vcs.xml (date 1682173438257)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="VcsDirectoryMappings">
+ <mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
+ </component>
+</project>
\ No newline at end of file
Index: ConsoleApp/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/ConsoleApp/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
new file mode 100644
--- /dev/null (date 1682163882968)
+++ b/ConsoleApp/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs (date 1682163882968)
@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
Index: ../../.gitignore
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/../../.gitignore b/../../.gitignore
new file mode 100644
--- /dev/null (date 1682173987578)
+++ b/../../.gitignore (date 1682173987578)
@@ -0,0 +1,4 @@
+/CSharp/ConsoleApp/.idea/
+/CSharp/ConsoleApp/ConsoleApp/bin
+/CSharp/ConsoleApp/ConsoleApp/.vs
+/CSharp/ConsoleApp/ConsoleApp/.idea
Index: ConsoleApp/ConsoleApp.csproj
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/ConsoleApp.csproj b/ConsoleApp/ConsoleApp.csproj
new file mode 100644
--- /dev/null (date 1682170307172)
+++ b/ConsoleApp/ConsoleApp.csproj (date 1682170307172)
@@ -0,0 +1,10 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFramework>net6.0</TargetFramework>
+ <ImplicitUsings>enable</ImplicitUsings>
+ <Nullable>enable</Nullable>
+ </PropertyGroup>
+
+</Project>
Index: ConsoleApp/obj/Debug/net6.0/ConsoleApp.GlobalUsings.g.cs
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/Debug/net6.0/ConsoleApp.GlobalUsings.g.cs b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.GlobalUsings.g.cs
new file mode 100644
--- /dev/null (date 1682163882784)
+++ b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.GlobalUsings.g.cs (date 1682163882784)
@@ -0,0 +1,8 @@
+// <auto-generated/>
+global using global::System;
+global using global::System.Collections.Generic;
+global using global::System.IO;
+global using global::System.Linq;
+global using global::System.Net.Http;
+global using global::System.Threading;
+global using global::System.Threading.Tasks;
Index: .idea/.idea.ConsoleApp/.idea/indexLayout.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/.idea/.idea.ConsoleApp/.idea/indexLayout.xml b/.idea/.idea.ConsoleApp/.idea/indexLayout.xml
new file mode 100644
--- /dev/null (date 1682163916019)
+++ b/.idea/.idea.ConsoleApp/.idea/indexLayout.xml (date 1682163916019)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="UserContentModel">
+ <attachedFolders />
+ <explicitIncludes />
+ <explicitExcludes />
+ </component>
+</project>
\ No newline at end of file
Index: .idea/.idea.ConsoleApp/.idea/encodings.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/.idea/.idea.ConsoleApp/.idea/encodings.xml b/.idea/.idea.ConsoleApp/.idea/encodings.xml
new file mode 100644
--- /dev/null (date 1682163905772)
+++ b/.idea/.idea.ConsoleApp/.idea/encodings.xml (date 1682163905772)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
+</project>
\ No newline at end of file
Index: ConsoleApp/obj/ConsoleApp.csproj.nuget.g.props
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/ConsoleApp.csproj.nuget.g.props b/ConsoleApp/obj/ConsoleApp.csproj.nuget.g.props
new file mode 100644
--- /dev/null (date 1682163883158)
+++ b/ConsoleApp/obj/ConsoleApp.csproj.nuget.g.props (date 1682163883158)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+ <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
+ <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
+ <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
+ <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
+ <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\charlatans\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
+ <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
+ <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
+ </PropertyGroup>
+ <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+ <SourceRoot Include="C:\Users\charlatans\.nuget\packages\" />
+ <SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
+ </ItemGroup>
+</Project>
\ No newline at end of file
Index: ConsoleApp/obj/project.packagespec.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/project.packagespec.json b/ConsoleApp/obj/project.packagespec.json
new file mode 100644
--- /dev/null (date 1682163907107)
+++ b/ConsoleApp/obj/project.packagespec.json (date 1682163907107)
@@ -0,0 +1,1 @@
+"restore":{"projectUniqueName":"D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj","projectName":"ConsoleApp","projectPath":"D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj","outputPath":"D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\obj\\","projectStyle":"PackageReference","fallbackFolders":["C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"],"originalTargetFrameworks":["net6.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net6.0":{"targetAlias":"net6.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net6.0":{"targetAlias":"net6.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"}}
\ No newline at end of file
diff --git a/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.BuildWithSkipAnalyzers b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.BuildWithSkipAnalyzers
new file mode 100644
diff --git a/.vs/ConsoleApp/FileContentIndex/read.lock b/.vs/ConsoleApp/FileContentIndex/read.lock
new file mode 100644
@@ -0,0 +1,25 @@
Index: ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.FileListAbsolute.txt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.FileListAbsolute.txt b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.FileListAbsolute.txt
new file mode 100644
--- /dev/null (date 1682174299124)
+++ b/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.FileListAbsolute.txt (date 1682174299124)
@@ -0,0 +1,15 @@
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.exe
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.deps.json
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.runtimeconfig.json
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.dll
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.pdb
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.csproj.AssemblyReference.cache
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.GeneratedMSBuildEditorConfig.editorconfig
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.AssemblyInfoInputs.cache
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.AssemblyInfo.cs
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.csproj.CoreCompileInputs.cache
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.dll
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\refint\ConsoleApp.dll
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.pdb
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.genruntimeconfig.cache
+D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ref\ConsoleApp.dll
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>
@@ -0,0 +1,195 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoGeneratedRunConfigurationManager">
<projectFile>ConsoleApp/ConsoleApp.csproj</projectFile>
</component>
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="22c276bc-c44d-48c8-bc91-7bca85b64c7a" name="更改" comment="">
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.FileListAbsolute.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ConsoleApp/Main.cs" beforeDir="false" afterPath="$PROJECT_DIR$/ConsoleApp/Main.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../../Nots/CSharp特性/新特性.one" beforeDir="false" afterPath="$PROJECT_DIR$/../../Nots/CSharp特性/新特性.one" afterDir="false" />
</list>
<list id="b2623fe6-6189-4b8f-92c3-4d4c1e80ca47" name="特殊变更" comment="">
<change afterPath="$PROJECT_DIR$/../../.gitignore" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp.sln.DotSettings.user" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/ConsoleApp.csproj.nuget.dgspec.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/ConsoleApp.csproj.nuget.g.props" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/ConsoleApp.csproj.nuget.g.targets" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.AssemblyInfo.cs" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.AssemblyInfoInputs.cache" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.GeneratedMSBuildEditorConfig.editorconfig" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.GlobalUsings.g.cs" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.assets.cache" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.AssemblyReference.cache" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.BuildWithSkipAnalyzers" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.csproj.CoreCompileInputs.cache" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.dll" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.genruntimeconfig.cache" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ConsoleApp.pdb" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/apphost.exe" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/ref/ConsoleApp.dll" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/Debug/net6.0/refint/ConsoleApp.dll" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/project.assets.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/project.nuget.cache" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ConsoleApp/obj/project.packagespec.json" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="HighlightingSettingsPerFile">
<setting file="file://$APPLICATION_CONFIG_DIR$/resharper-host/SourcesCache/a09e42d0d8f444b7b16c624da188bb4f9aa939eae8ccbe98ea49b27b99d3a/ValueType.cs" root0="SKIP_HIGHLIGHTING" />
<setting file="file://$APPLICATION_CONFIG_DIR$/resharper-host/SourcesCache/ece769eeb1bb41ff6465c6ee47c02c695af5a428ae7250d8f6f52b486ff64058/BitConverter.cs" root0="SKIP_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/ConsoleApp/Attribute/ReadonlyAttribute.cs" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/ConsoleApp/Main.cs" root0="FORCE_HIGHLIGHTING" />
</component>
<component name="MetaFilesCheckinStateConfiguration" checkMetaFiles="true" />
<component name="ProblemsViewState">
<option name="selectedTabId" value="Toolset" />
</component>
<component name="ProjectId" id="2OmRjWx02tGkozP8h4eTGP1kHhZ" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
<OptionsSetting value="false" id="Update" />
<ConfirmationsSetting value="2" id="Add" />
</component>
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;ASKED_ADD_EXTERNAL_FILES&quot;: &quot;true&quot;,
&quot;ASKED_SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
&quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
&quot;settings.editor.selected.configurable&quot;: &quot;vcs.Git&quot;,
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
},
&quot;keyToStringList&quot;: {
&quot;rider.external.source.directories&quot;: [
&quot;C:\\Users\\charlatans\\AppData\\Roaming\\JetBrains\\Rider2023.1\\resharper-host\\DecompilerCache&quot;,
&quot;C:\\Users\\charlatans\\AppData\\Roaming\\JetBrains\\Rider2023.1\\resharper-host\\SourcesCache&quot;,
&quot;C:\\Users\\charlatans\\AppData\\Local\\Symbols\\src&quot;
]
}
}</component>
<component name="RunManager">
<configuration name="ConsoleApp" type="DotNetProject" factoryName=".NET Project">
<option name="EXE_PATH" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="PASS_PARENT_ENVS" value="1" />
<option name="USE_EXTERNAL_CONSOLE" value="0" />
<option name="USE_MONO" value="0" />
<option name="RUNTIME_ARGUMENTS" value="" />
<option name="PROJECT_PATH" value="$PROJECT_DIR$/ConsoleApp/ConsoleApp.csproj" />
<option name="PROJECT_EXE_PATH_TRACKING" value="1" />
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="1" />
<option name="PROJECT_KIND" value="DotNetCore" />
<option name="PROJECT_TFM" value="" />
<method v="2">
<option name="Build" />
</method>
</configuration>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="b2623fe6-6189-4b8f-92c3-4d4c1e80ca47" name="特殊变更" comment="" />
<changelist id="22c276bc-c44d-48c8-bc91-7bca85b64c7a" name="更改" comment="" />
<created>1682163907683</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1682163907683</updated>
<workItem from="1682163908783" duration="8000" />
<workItem from="1682163927093" duration="78000" />
<workItem from="1682164013658" duration="63000" />
<workItem from="1682164084533" duration="45000" />
<workItem from="1682164135700" duration="622000" />
<workItem from="1682164980663" duration="8193000" />
<workItem from="1682173426067" duration="7680000" />
<workItem from="1682255724802" duration="1922000" />
</task>
<task id="LOCAL-00001" summary="UA:首次提交">
<created>1682172869318</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1682172869318</updated>
</task>
<task id="LOCAL-00002" summary="UA:增加笔记,尝试提交">
<created>1682173464066</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1682173464066</updated>
</task>
<task id="LOCAL-00003" summary="UA:增加文件">
<created>1682173594377</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1682173594377</updated>
</task>
<task id="LOCAL-00004" summary="U:排除特殊文件">
<created>1682174554972</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1682174554972</updated>
</task>
<task id="LOCAL-00005" summary="CSPROJ">
<created>1682214217992</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1682214217992</updated>
</task>
<option name="localTasksCounter" value="6" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="UnityCheckinConfiguration" checkUnsavedScenes="true" />
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
</component>
<component name="VcsManagerConfiguration">
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
<ignored-roots>
<path value="$PROJECT_DIR$" />
</ignored-roots>
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="true" />
<MESSAGE value="UA:首次提交" />
<MESSAGE value="UA:增加笔记,尝试提交" />
<MESSAGE value="UA:增加文件" />
<MESSAGE value="U:排除特殊文件" />
<MESSAGE value="CSPROJ" />
<option name="LAST_COMMIT_MESSAGE" value="CSPROJ" />
</component>
<component name="XSLT-Support.FileAssociations.UIState">
<expand />
<select />
</component>
</project>
Whitespace-only changes.
Binary file not shown.
Binary file not shown.
+25
View File
@@ -0,0 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.33530.505
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp", "ConsoleApp\ConsoleApp.csproj", "{48277454-55F8-4249-9B19-AF1E01F57CFE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{48277454-55F8-4249-9B19-AF1E01F57CFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{48277454-55F8-4249-9B19-AF1E01F57CFE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{48277454-55F8-4249-9B19-AF1E01F57CFE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{48277454-55F8-4249-9B19-AF1E01F57CFE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {84C892F3-DB59-407A-9206-734522AC0674}
EndGlobalSection
EndGlobal
@@ -0,0 +1,2 @@
<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">
<s:String x:Key="/Default/CodeInspection/PencilsConfiguration/ActualSeverity/@EntryValue">WARNING</s:String></wpf:ResourceDictionary>
@@ -0,0 +1,28 @@
namespace ConsoleApp.Attribute;
/// <summary>
/// Readonly 属性
/// - Readonly 只能在构造函数中进行赋值,并且可以多次复制,但是只要出了构造函数
/// </summary>
public class ReadonlyAttribute
{
public class Stu01
{
public readonly int Num;
public static readonly int Num1;
// 测试
static Stu01()
{
Stu01.Num1 = 10;
Stu01.Num1 = 20;
}
public Stu01()
{
Num = 10;
Num = 20;
}
}
}
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
+85
View File
@@ -0,0 +1,85 @@
using ConsoleApp.Attribute;
// 这里的语句使用顶级语句作为程序的入口点。 C# 9 中添加了此功能。
Console.WriteLine("你好,世界");
// 顶级语句中默认有 args 参数,并且永远不为null,如果没有提供任何参数,那么数组长度将为 0
// Console.WriteLine(args);
var path = @"D:\WeChat\WeChat Files\wxid_vjz685bjlhi822\FileStorage\MsgAttach\18c65b11486057764bb102d5fe793087\Image\2023-02\be1f8ccfbb890ac052584022022adf2f.dat";
byte[] byteArray = FileBinaryConvertHelper.File2Bytes(path);
Dictionary<byte, string> keyValuePairs = new Dictionary<byte, string>();
keyValuePairs.Add(0xFF, "jpg");
keyValuePairs.Add(0x89, "png");
keyValuePairs.Add(0x47, "gif");
byte sc = new byte();
byte tsc = new byte();
if ((byteArray[0] ^ 0xFF) == (byteArray[1] ^ 0xD8))
{
tsc = 0xFF;
sc = BitConverter.GetBytes(byteArray[0] ^ 0xFF)[0];
Console.WriteLine(sc);
return 0;
}
if ((byteArray[0] ^ 0x89) == (byteArray[1] ^ 0x50))
{
tsc = 0x89;
sc = BitConverter.GetBytes(byteArray[0] ^ 0x89)[0];
}
if ((byteArray[0] ^ 0x47) == (byteArray[1] ^ 0x49))
{
tsc = 0x47;
sc = BitConverter.GetBytes(byteArray[0] ^ 0x47)[0];
}
var lsNewbyte = new List<byte>();
foreach (var item in byteArray)
{
var newByte = BitConverter.GetBytes(item ^ sc);
lsNewbyte.Add(newByte[0]);
}
var newByteArray = lsNewbyte.ToArray();
return 0;
// FileBinaryConvertHelper.Bytes2File(newByteArray, $@"E:\pp.{keyValuePairs[tsc]}");
public class FileBinaryConvertHelper
{
public static byte[] File2Bytes(string path)
{
if (!System.IO.File.Exists(path))
{
return new byte[0];
}
FileInfo fi = new FileInfo(path);
byte[] buff = new byte[fi.Length];
FileStream fs = fi.OpenRead();
fs.Read(buff, 0, Convert.ToInt32(fs.Length));
fs.Close();
return buff;
}
public static void Bytes2File(byte[] buff, string savepath)
{
if (System.IO.File.Exists(savepath))
{
System.IO.File.Delete(savepath);
}
FileStream fs = new FileStream(savepath, FileMode.CreateNew);
BinaryWriter bw = new BinaryWriter(fs);
bw.Write(buff, 0, buff.Length);
bw.Close();
fs.Close();
}
}
@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"ConsoleApp/1.0.0": {
"runtime": {
"ConsoleApp.dll": {}
}
}
}
},
"libraries": {
"ConsoleApp/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
}
}
}
@@ -0,0 +1,67 @@
{
"format": 1,
"restore": {
"D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj": {}
},
"projects": {
"D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj",
"projectName": "ConsoleApp",
"projectPath": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj",
"packagesPath": "C:\\Users\\charlatans\\.nuget\\packages\\",
"outputPath": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\charlatans\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
}
}
}
}
}
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\charlatans\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\charlatans\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("ConsoleApp")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("ConsoleApp")]
[assembly: System.Reflection.AssemblyTitleAttribute("ConsoleApp")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// 由 MSBuild WriteCodeFragment 类生成。
@@ -0,0 +1 @@
ba35d61be149e908edccb064c073a024a9179e32
@@ -0,0 +1,11 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = ConsoleApp
build_property.ProjectDir = D:\DoNet\CSharp\ConsoleApp\ConsoleApp\
@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
@@ -0,0 +1 @@
8790e42ccc1e9c425363c94a7c0d338068bebbbc
@@ -0,0 +1,15 @@
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.exe
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.deps.json
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.runtimeconfig.json
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.dll
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\bin\Debug\net6.0\ConsoleApp.pdb
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.csproj.AssemblyReference.cache
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.GeneratedMSBuildEditorConfig.editorconfig
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.AssemblyInfoInputs.cache
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.AssemblyInfo.cs
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.csproj.CoreCompileInputs.cache
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.dll
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\refint\ConsoleApp.dll
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.pdb
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ConsoleApp.genruntimeconfig.cache
D:\DoNet\CSharp\ConsoleApp\ConsoleApp\obj\Debug\net6.0\ref\ConsoleApp.dll
@@ -0,0 +1 @@
6513b9d25c29eb0c5942d804ed9f4747f1a30833
@@ -0,0 +1,81 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\charlatans\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj",
"projectName": "ConsoleApp",
"projectPath": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj",
"packagesPath": "C:\\Users\\charlatans\\.nuget\\packages\\",
"outputPath": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\charlatans\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
}
}
},
"logs": [
{
"code": "Undefined",
"level": "Warning",
"warningLevel": 1,
"message": "读取缓存文件 D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\obj\\project.nuget.cache 时遇到问题: 解码时找到无效数据。"
}
]
}
@@ -0,0 +1,15 @@
{
"version": 2,
"dgSpecHash": "fCer9DicMwtXz+tEnCytoS/NlVQoB2vfSUq/jAxcIr/eJ2nnHdgHdo9JdmD5m0+kqPWCw6OKvasgQpGt9wGqPA==",
"success": true,
"projectFilePath": "D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj",
"expectedPackageFiles": [],
"logs": [
{
"code": "Undefined",
"level": "Warning",
"warningLevel": 1,
"message": "读取缓存文件 D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\obj\\project.nuget.cache 时遇到问题: 解码时找到无效数据。"
}
]
}
@@ -0,0 +1 @@
"restore":{"projectUniqueName":"D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj","projectName":"ConsoleApp","projectPath":"D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\ConsoleApp.csproj","outputPath":"D:\\DoNet\\CSharp\\ConsoleApp\\ConsoleApp\\obj\\","projectStyle":"PackageReference","fallbackFolders":["C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"],"originalTargetFrameworks":["net6.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net6.0":{"targetAlias":"net6.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net6.0":{"targetAlias":"net6.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"}}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,13 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# Rider 忽略的文件
/contentModel.xml
/modules.xml
/projectSettingsUpdater.xml
/.idea.PermissionManagement.iml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>
@@ -0,0 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.33530.505
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PermissionManagement", "PermissionManagement\PermissionManagement.csproj", "{5B54FD75-38C1-489E-8937-49FCA59014DD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5B54FD75-38C1-489E-8937-49FCA59014DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5B54FD75-38C1-489E-8937-49FCA59014DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5B54FD75-38C1-489E-8937-49FCA59014DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5B54FD75-38C1-489E-8937-49FCA59014DD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D8E9B76C-3FD1-4C94-BEEA-C476DD412920}
EndGlobalSection
EndGlobal
@@ -0,0 +1,9 @@
<Application x:Class="PermissionManagement.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:PermissionManagement"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace PermissionManagement
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
@@ -0,0 +1,10 @@
using System.Windows;
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
@@ -0,0 +1,21 @@
<Window x:Class="PermissionManagement.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:PermissionManagement"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Window.Resources>
<local:PermissionToVisibilityConverter x:Key="PermissionsPer"/>
</Window.Resources>
<Grid>
<StackPanel>
<Button Content="1" Visibility="{Binding btn1,Converter={StaticResource PermissionsPer}}"/>
<Button Content="2" Visibility="{Binding btn2,Converter={StaticResource PermissionsPer}}"/>
<Button Content="3" Visibility="{Binding btn3,Converter={StaticResource PermissionsPer}}"/>
<Button Content="4" Visibility="{Binding btn4,Converter={StaticResource PermissionsPer}}"/>
</StackPanel>
</Grid>
</Window>
@@ -0,0 +1,93 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace PermissionManagement
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
private Vm vm = new Vm();
public MainWindow()
{
InitializeComponent();
DataContext = vm;
}
}
public class Vm
{
private string _btn1 = Permissions.b1;
public string btn1
{
get => _btn1;
set
{
_btn1 = value;
OnPropertyChanged();
}
}
public string _btn2 = Permissions.b2;
public string btn2
{
get => _btn2;
set
{
_btn2 = value;
OnPropertyChanged();
}
}
public string _btn3 = Permissions.b3;
public string btn3
{
get => _btn3;
set
{
_btn3 = value;
OnPropertyChanged();
}
}
public event PropertyChangedEventHandler? PropertyChanged;
private void OnPropertyChanged([CallerMemberName] string? propertyName = null)
{
if (propertyName != null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}
/// <summary>
/// 权限管理
/// </summary>
public class Permissions
{
public static string b1 = "1";
public static string b2 = "2";
public static string b3 = "3";
}
}
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<StartupObject>PermissionManagement.App</StartupObject>
</PropertyGroup>
</Project>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<ItemGroup>
<ApplicationDefinition Update="App.xaml">
<SubType>Designer</SubType>
</ApplicationDefinition>
</ItemGroup>
<ItemGroup>
<Page Update="MainWindow.xaml">
<SubType>Designer</SubType>
</Page>
</ItemGroup>
</Project>
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
namespace PermissionManagement
{
internal class PermissionToVisibilityConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
// 传递的值
string str = (string)value;
var b = UserInfo.Permission.Contains(str);
Console.WriteLine(b);
return b ? Visibility.Visible : Visibility.Collapsed;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PermissionManagement
{
internal class UserInfo
{
public static string Name { get; set; }
public static string Permission { get; set; } =
$"{Permissions.b1},";
}
}
Loaded 100 of 1196 files, more files were not shown because too many files have changed in this diff. Show more