瀏覽代碼

first commit

郑毅 4 月之前
當前提交
b33647c8d7

+ 7 - 0
.gitignore

@@ -0,0 +1,7 @@
+# Ignore Gradle project-specific cache directory
+.gradle
+
+# Ignore Gradle build output directory
+build
+
+.DS_Store

+ 10 - 0
HelloWorld.csproj

@@ -0,0 +1,10 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <OutputType>Exe</OutputType>
+    <TargetFramework>net8.0</TargetFramework>
+    <ImplicitUsings>enable</ImplicitUsings>
+    <Nullable>enable</Nullable>
+  </PropertyGroup>
+
+</Project>

+ 25 - 0
HelloWorld.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.5.002.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloWorld", "HelloWorld.csproj", "{1CE96E51-C122-477F-9FC3-53487D4ACF78}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{1CE96E51-C122-477F-9FC3-53487D4ACF78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{1CE96E51-C122-477F-9FC3-53487D4ACF78}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{1CE96E51-C122-477F-9FC3-53487D4ACF78}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{1CE96E51-C122-477F-9FC3-53487D4ACF78}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {C3838E52-45DC-47A8-8A87-B93D229407FC}
+	EndGlobalSection
+EndGlobal

+ 9 - 0
Program.cs

@@ -0,0 +1,9 @@
+namespace HelloWorld;
+
+class Program
+{
+    static void Main(string[] args)
+    {
+        Console.WriteLine("Hello, World!");
+    }
+}

二進制
bin/Debug/net8.0/HelloWorld


+ 23 - 0
bin/Debug/net8.0/HelloWorld.deps.json

@@ -0,0 +1,23 @@
+{
+  "runtimeTarget": {
+    "name": ".NETCoreApp,Version=v8.0",
+    "signature": ""
+  },
+  "compilationOptions": {},
+  "targets": {
+    ".NETCoreApp,Version=v8.0": {
+      "HelloWorld/1.0.0": {
+        "runtime": {
+          "HelloWorld.dll": {}
+        }
+      }
+    }
+  },
+  "libraries": {
+    "HelloWorld/1.0.0": {
+      "type": "project",
+      "serviceable": false,
+      "sha512": ""
+    }
+  }
+}

二進制
bin/Debug/net8.0/HelloWorld.dll


二進制
bin/Debug/net8.0/HelloWorld.pdb


+ 12 - 0
bin/Debug/net8.0/HelloWorld.runtimeconfig.json

@@ -0,0 +1,12 @@
+{
+  "runtimeOptions": {
+    "tfm": "net8.0",
+    "framework": {
+      "name": "Microsoft.NETCore.App",
+      "version": "8.0.0"
+    },
+    "configProperties": {
+      "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
+    }
+  }
+}

+ 4 - 0
obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs

@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]

+ 22 - 0
obj/Debug/net8.0/HelloWorld.AssemblyInfo.cs

@@ -0,0 +1,22 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("HelloWorld")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
+[assembly: System.Reflection.AssemblyProductAttribute("HelloWorld")]
+[assembly: System.Reflection.AssemblyTitleAttribute("HelloWorld")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// 由 MSBuild WriteCodeFragment 类生成。
+

+ 1 - 0
obj/Debug/net8.0/HelloWorld.AssemblyInfoInputs.cache

@@ -0,0 +1 @@
+890ece9e42e6d5f79532a7d56824390f9554308e115669e10b574aa916447eb4

+ 13 - 0
obj/Debug/net8.0/HelloWorld.GeneratedMSBuildEditorConfig.editorconfig

@@ -0,0 +1,13 @@
+is_global = true
+build_property.TargetFramework = net8.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 = HelloWorld
+build_property.ProjectDir = /Users/marion/Projects/test/hello-csharp/
+build_property.EnableComHosting = 
+build_property.EnableGeneratedComInterfaceComImportInterop = 

+ 8 - 0
obj/Debug/net8.0/HelloWorld.GlobalUsings.g.cs

@@ -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;

二進制
obj/Debug/net8.0/HelloWorld.assets.cache


+ 1 - 0
obj/Debug/net8.0/HelloWorld.csproj.CoreCompileInputs.cache

@@ -0,0 +1 @@
+aef0101e8c872bb420706e06f41d93896c3024691a3732023dbef71ac9e516ef

+ 14 - 0
obj/Debug/net8.0/HelloWorld.csproj.FileListAbsolute.txt

@@ -0,0 +1,14 @@
+/Users/marion/Desktop/HelloWorld/bin/Debug/net8.0/HelloWorld
+/Users/marion/Desktop/HelloWorld/bin/Debug/net8.0/HelloWorld.deps.json
+/Users/marion/Desktop/HelloWorld/bin/Debug/net8.0/HelloWorld.runtimeconfig.json
+/Users/marion/Desktop/HelloWorld/bin/Debug/net8.0/HelloWorld.dll
+/Users/marion/Desktop/HelloWorld/bin/Debug/net8.0/HelloWorld.pdb
+/Users/marion/Desktop/HelloWorld/obj/Debug/net8.0/HelloWorld.GeneratedMSBuildEditorConfig.editorconfig
+/Users/marion/Desktop/HelloWorld/obj/Debug/net8.0/HelloWorld.AssemblyInfoInputs.cache
+/Users/marion/Desktop/HelloWorld/obj/Debug/net8.0/HelloWorld.AssemblyInfo.cs
+/Users/marion/Desktop/HelloWorld/obj/Debug/net8.0/HelloWorld.csproj.CoreCompileInputs.cache
+/Users/marion/Desktop/HelloWorld/obj/Debug/net8.0/HelloWorld.dll
+/Users/marion/Desktop/HelloWorld/obj/Debug/net8.0/refint/HelloWorld.dll
+/Users/marion/Desktop/HelloWorld/obj/Debug/net8.0/HelloWorld.pdb
+/Users/marion/Desktop/HelloWorld/obj/Debug/net8.0/HelloWorld.genruntimeconfig.cache
+/Users/marion/Desktop/HelloWorld/obj/Debug/net8.0/ref/HelloWorld.dll

二進制
obj/Debug/net8.0/HelloWorld.dll


+ 1 - 0
obj/Debug/net8.0/HelloWorld.genruntimeconfig.cache

@@ -0,0 +1 @@
+9bb427ebca2458c6f16761f33037766b9986e43cd21b37575278112b184ead6a

二進制
obj/Debug/net8.0/HelloWorld.pdb


二進制
obj/Debug/net8.0/apphost


二進制
obj/Debug/net8.0/ref/HelloWorld.dll


二進制
obj/Debug/net8.0/refint/HelloWorld.dll


+ 66 - 0
obj/HelloWorld.csproj.nuget.dgspec.json

@@ -0,0 +1,66 @@
+{
+  "format": 1,
+  "restore": {
+    "/Users/marion/Projects/test/hello-csharp/HelloWorld.csproj": {}
+  },
+  "projects": {
+    "/Users/marion/Projects/test/hello-csharp/HelloWorld.csproj": {
+      "version": "1.0.0",
+      "restore": {
+        "projectUniqueName": "/Users/marion/Projects/test/hello-csharp/HelloWorld.csproj",
+        "projectName": "HelloWorld",
+        "projectPath": "/Users/marion/Projects/test/hello-csharp/HelloWorld.csproj",
+        "packagesPath": "/Users/marion/.nuget/packages/",
+        "outputPath": "/Users/marion/Projects/test/hello-csharp/obj/",
+        "projectStyle": "PackageReference",
+        "configFilePaths": [
+          "/Users/marion/.nuget/NuGet/NuGet.Config"
+        ],
+        "originalTargetFrameworks": [
+          "net8.0"
+        ],
+        "sources": {
+          "https://api.nuget.org/v3/index.json": {}
+        },
+        "frameworks": {
+          "net8.0": {
+            "targetAlias": "net8.0",
+            "projectReferences": {}
+          }
+        },
+        "warningProperties": {
+          "warnAsError": [
+            "NU1605"
+          ]
+        },
+        "restoreAuditProperties": {
+          "enableAudit": "true",
+          "auditLevel": "low",
+          "auditMode": "direct"
+        }
+      },
+      "frameworks": {
+        "net8.0": {
+          "targetAlias": "net8.0",
+          "imports": [
+            "net461",
+            "net462",
+            "net47",
+            "net471",
+            "net472",
+            "net48",
+            "net481"
+          ],
+          "assetTargetFallback": true,
+          "warn": true,
+          "frameworkReferences": {
+            "Microsoft.NETCore.App": {
+              "privateAssets": "all"
+            }
+          },
+          "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/8.0.204/PortableRuntimeIdentifierGraph.json"
+        }
+      }
+    }
+  }
+}

+ 15 - 0
obj/HelloWorld.csproj.nuget.g.props

@@ -0,0 +1,15 @@
+<?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)' == '' ">/Users/marion/.nuget/packages/</NuGetPackageRoot>
+    <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/marion/.nuget/packages/</NuGetPackageFolders>
+    <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
+    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.9.1</NuGetToolVersion>
+  </PropertyGroup>
+  <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <SourceRoot Include="/Users/marion/.nuget/packages/" />
+  </ItemGroup>
+</Project>

+ 2 - 0
obj/HelloWorld.csproj.nuget.g.targets

@@ -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" />

+ 71 - 0
obj/project.assets.json

@@ -0,0 +1,71 @@
+{
+  "version": 3,
+  "targets": {
+    "net8.0": {}
+  },
+  "libraries": {},
+  "projectFileDependencyGroups": {
+    "net8.0": []
+  },
+  "packageFolders": {
+    "/Users/marion/.nuget/packages/": {}
+  },
+  "project": {
+    "version": "1.0.0",
+    "restore": {
+      "projectUniqueName": "/Users/marion/Projects/test/hello-csharp/HelloWorld.csproj",
+      "projectName": "HelloWorld",
+      "projectPath": "/Users/marion/Projects/test/hello-csharp/HelloWorld.csproj",
+      "packagesPath": "/Users/marion/.nuget/packages/",
+      "outputPath": "/Users/marion/Projects/test/hello-csharp/obj/",
+      "projectStyle": "PackageReference",
+      "configFilePaths": [
+        "/Users/marion/.nuget/NuGet/NuGet.Config"
+      ],
+      "originalTargetFrameworks": [
+        "net8.0"
+      ],
+      "sources": {
+        "https://api.nuget.org/v3/index.json": {}
+      },
+      "frameworks": {
+        "net8.0": {
+          "targetAlias": "net8.0",
+          "projectReferences": {}
+        }
+      },
+      "warningProperties": {
+        "warnAsError": [
+          "NU1605"
+        ]
+      },
+      "restoreAuditProperties": {
+        "enableAudit": "true",
+        "auditLevel": "low",
+        "auditMode": "direct"
+      }
+    },
+    "frameworks": {
+      "net8.0": {
+        "targetAlias": "net8.0",
+        "imports": [
+          "net461",
+          "net462",
+          "net47",
+          "net471",
+          "net472",
+          "net48",
+          "net481"
+        ],
+        "assetTargetFallback": true,
+        "warn": true,
+        "frameworkReferences": {
+          "Microsoft.NETCore.App": {
+            "privateAssets": "all"
+          }
+        },
+        "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/8.0.204/PortableRuntimeIdentifierGraph.json"
+      }
+    }
+  }
+}

+ 8 - 0
obj/project.nuget.cache

@@ -0,0 +1,8 @@
+{
+  "version": 2,
+  "dgSpecHash": "WJn1kAZaQ0srD1MRLRdGOgHGy3dw6zfiWIOIvT2YzgAnwvrjSYsBZBYWjMUax2jINwiCjHLlEe/WEC3h7wfARg==",
+  "success": true,
+  "projectFilePath": "/Users/marion/Projects/test/hello-csharp/HelloWorld.csproj",
+  "expectedPackageFiles": [],
+  "logs": []
+}