Skip to content

Commit

Permalink
Organize file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
kochounoyume committed Jan 22, 2025
1 parent 99289cb commit bfa57bc
Show file tree
Hide file tree
Showing 504 changed files with 15,692 additions and 14 deletions.
11 changes: 0 additions & 11 deletions SourceGenerator/MinimalUtility.SourceGenerator.Test/Program.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/docfx.json → docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"src": [
{
"src": "../Packages",
"src": "../src/MinimalUtility.Unity/Packages",
"files": [
"MinimalUtility/Runtime/**/*.cs",
"MinimalUtility/Editor/**/*.cs"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../MinimalUtility.SourceGenerator/MinimalUtility.SourceGenerator.csproj">
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
</Project>
30 changes: 30 additions & 0 deletions src/MinimalUtility.SourceGenerator.Test/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// See https://aka.ms/new-console-template for more information

using MinimalUtility;

Console.WriteLine("Hello, World!");
Fruits fruits = Fruits.Apple | Fruits.Banana | Fruits.Orange;

// Console.WriteLine(Fruits.Apple.ToXEnumString());
foreach (var f in fruits.AsFlags())
{
// var str = XEnum.GetName(f);
// Console.WriteLine(str);
Console.WriteLine(f);
}

[Flags]
public enum Fruits
{
Apple = 1 << 0,
Banana = 1 << 1,
Orange = 1 << 2,
}

namespace MinimalUtility
{
public class ForEachAttribute : Attribute
{
public ForEachAttribute() { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"MinimalUtility.SourceGenerator.Test/1.0.0": {
"runtime": {
"MinimalUtility.SourceGenerator.Test.dll": {}
}
}
}
},
"libraries": {
"MinimalUtility.SourceGenerator.Test/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"MinimalUtility.SourceGenerator.Test/1.0.0": {
"runtime": {
"MinimalUtility.SourceGenerator.Test.dll": {}
}
}
}
},
"libraries": {
"MinimalUtility.SourceGenerator.Test/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
Original file line number Diff line number Diff line change
@@ -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("MinimalUtility.SourceGenerator.Test")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+99289cb54f522a23a5feb96ed8d6b66cfc7d71b9")]
[assembly: System.Reflection.AssemblyProductAttribute("MinimalUtility.SourceGenerator.Test")]
[assembly: System.Reflection.AssemblyTitleAttribute("MinimalUtility.SourceGenerator.Test")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// MSBuild WriteCodeFragment クラスによって生成されました。

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
96ccf5ebb34394079795e30bc43cdc9711aaa5467650b3830e1851596c5b844d
Original file line number Diff line number Diff line change
@@ -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 = MinimalUtility.SourceGenerator.Test
build_property.ProjectDir = C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
Original file line number Diff line number Diff line change
@@ -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;
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8529096212e105e3d0ad2193507ea4890a0aadd64bfa7acc0bf1b93e16af9168
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\bin\Debug\net8.0\MinimalUtility.SourceGenerator.Test.exe
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\bin\Debug\net8.0\MinimalUtility.SourceGenerator.Test.deps.json
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\bin\Debug\net8.0\MinimalUtility.SourceGenerator.Test.runtimeconfig.json
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\bin\Debug\net8.0\MinimalUtility.SourceGenerator.Test.dll
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\bin\Debug\net8.0\MinimalUtility.SourceGenerator.Test.pdb
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.AssemblyInfoInputs.cache
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.AssemblyInfo.cs
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.csproj.CoreCompileInputs.cache
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.sourcelink.json
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.dll
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\refint\MinimalUtility.SourceGenerator.Test.dll
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.pdb
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.genruntimeconfig.cache
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\ref\MinimalUtility.SourceGenerator.Test.dll
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\bin\Debug\net8.0\MinimalUtility.SourceGenerator.Test.exe
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\bin\Debug\net8.0\MinimalUtility.SourceGenerator.Test.deps.json
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\bin\Debug\net8.0\MinimalUtility.SourceGenerator.Test.runtimeconfig.json
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\bin\Debug\net8.0\MinimalUtility.SourceGenerator.Test.dll
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\bin\Debug\net8.0\MinimalUtility.SourceGenerator.Test.pdb
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.AssemblyInfoInputs.cache
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.AssemblyInfo.cs
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.csproj.CoreCompileInputs.cache
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.sourcelink.json
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.dll
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\refint\MinimalUtility.SourceGenerator.Test.dll
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.pdb
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\MinimalUtility.SourceGenerator.Test.genruntimeconfig.cache
C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\src\MinimalUtility.SourceGenerator.Test\obj\Debug\net8.0\ref\MinimalUtility.SourceGenerator.Test.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a340ec5b27819f4645369663cd7737c635b94763fbeda91a2fbaf0e036e22551
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"documents":{"C:\\Users\\masatake.iwasaki\\UnityProject\\MinimalUtility\\*":"https://raw.githubusercontent.com/kochounoyume/MinimalUtility/99289cb54f522a23a5feb96ed8d6b66cfc7d71b9/*"}}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"format": 1,
"restore": {
"C:\\Users\\masatake.iwasaki\\UnityProject\\MinimalUtility\\src\\MinimalUtility.SourceGenerator.Test\\MinimalUtility.SourceGenerator.Test.csproj": {}
},
"projects": {
"C:\\Users\\masatake.iwasaki\\UnityProject\\MinimalUtility\\src\\MinimalUtility.SourceGenerator.Test\\MinimalUtility.SourceGenerator.Test.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\masatake.iwasaki\\UnityProject\\MinimalUtility\\src\\MinimalUtility.SourceGenerator.Test\\MinimalUtility.SourceGenerator.Test.csproj",
"projectName": "MinimalUtility.SourceGenerator.Test",
"projectPath": "C:\\Users\\masatake.iwasaki\\UnityProject\\MinimalUtility\\src\\MinimalUtility.SourceGenerator.Test\\MinimalUtility.SourceGenerator.Test.csproj",
"packagesPath": "C:\\Users\\masatake.iwasaki\\.nuget\\packages\\",
"outputPath": "C:\\Users\\masatake.iwasaki\\UnityProject\\MinimalUtility\\src\\MinimalUtility.SourceGenerator.Test\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\masatake.iwasaki\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"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": "C:\\Program Files\\dotnet\\sdk\\8.0.303/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\masatake.iwasaki\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\masatake.iwasaki\.nuget\packages\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -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" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
Original file line number Diff line number Diff line change
@@ -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("MinimalUtility.SourceGenerator.Test")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2e83f9b1ca516a2071c667149d83eb7ab751513d")]
[assembly: System.Reflection.AssemblyProductAttribute("MinimalUtility.SourceGenerator.Test")]
[assembly: System.Reflection.AssemblyTitleAttribute("MinimalUtility.SourceGenerator.Test")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// MSBuild WriteCodeFragment クラスによって生成されました。

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1a6292a6fed12e91c5319cbe1f29c9a63efc234adfdb3ad848bf2b299d84f62b
Original file line number Diff line number Diff line change
@@ -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 = MinimalUtility.SourceGenerator.Test
build_property.ProjectDir = C:\Users\masatake.iwasaki\UnityProject\MinimalUtility\SourceGenerator\MinimalUtility.SourceGenerator.Test\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
Original file line number Diff line number Diff line change
@@ -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;
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aadfbcd7f0a5ea51d78bf5f13a4da0c5b683c4a531c085609101cf3469b8551e
Loading

0 comments on commit bfa57bc

Please sign in to comment.