mirror of
https://github.com/AssetRipper/AssetRipper.Text.SourceGeneration.git
synced 2026-11-13 20:05:44 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3c9111759 | ||
|
|
3a13009315 | ||
|
|
ed86e7bbea | ||
|
|
6c1c646c1c | ||
|
|
65219667e7 | ||
|
|
54c1d996cf | ||
|
|
ba284d065e |
No files matched your search
+5
-5
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<LangVersion>Latest</LangVersion>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
@@ -11,10 +11,10 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
||||
<PackageReference Include="NUnit" Version="4.3.2" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
|
||||
<PackageReference Include="NUnit.Analyzers" Version="4.6.0">
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
|
||||
<PackageReference Include="NUnit" Version="4.4.0" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="6.1.0" />
|
||||
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.7.33920.267
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AssetRipper.Text.SourceGeneration", "AssetRipper.Text.SourceGeneration\AssetRipper.Text.SourceGeneration.csproj", "{CB287F84-D891-4627-AA89-A908A9E78D63}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A23AA605-8E97-4B83-AC29-1B3393DAED17}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
.editorconfig = .editorconfig
|
||||
.gitignore = .gitignore
|
||||
LICENSE.txt = LICENSE.txt
|
||||
README.md = README.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssetRipper.Text.SourceGeneration.Tests", "AssetRipper.Text.SourceGeneration.Tests\AssetRipper.Text.SourceGeneration.Tests.csproj", "{5AD7EFFE-4402-4FA2-866F-2A13506D539C}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{CB287F84-D891-4627-AA89-A908A9E78D63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CB287F84-D891-4627-AA89-A908A9E78D63}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CB287F84-D891-4627-AA89-A908A9E78D63}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CB287F84-D891-4627-AA89-A908A9E78D63}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5AD7EFFE-4402-4FA2-866F-2A13506D539C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5AD7EFFE-4402-4FA2-866F-2A13506D539C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5AD7EFFE-4402-4FA2-866F-2A13506D539C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5AD7EFFE-4402-4FA2-866F-2A13506D539C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {A3BEF7B6-5197-46BE-ADCB-8F296F9857BC}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,10 @@
|
||||
<Solution>
|
||||
<Folder Name="/Solution Items/">
|
||||
<File Path=".editorconfig" />
|
||||
<File Path=".gitignore" />
|
||||
<File Path="LICENSE.txt" />
|
||||
<File Path="README.md" />
|
||||
</Folder>
|
||||
<Project Path="AssetRipper.Text.SourceGeneration.Tests/AssetRipper.Text.SourceGeneration.Tests.csproj" />
|
||||
<Project Path="AssetRipper.Text.SourceGeneration/AssetRipper.Text.SourceGeneration.csproj" />
|
||||
</Solution>
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net9.0</TargetFrameworks>
|
||||
<TargetFrameworks>netstandard2.0;net10.0</TargetFrameworks>
|
||||
<LangVersion>Latest</LangVersion>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
@@ -9,7 +9,7 @@
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<Authors>ds5678</Authors>
|
||||
<Company>AssetRipper</Company>
|
||||
<Version>1.2.2</Version>
|
||||
<Version>1.2.3</Version>
|
||||
<AssemblyVersion>$(Version)</AssemblyVersion>
|
||||
<PackageId>AssetRipper.Text.SourceGeneration</PackageId>
|
||||
<PackageTags>C# Text</PackageTags>
|
||||
@@ -20,6 +20,7 @@
|
||||
<Copyright>Copyright (c) ds5678</Copyright>
|
||||
<Description>Extension library for generating C# source code.</Description>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<Deterministic>true</Deterministic>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<NoWarn>1591</NoWarn>
|
||||
@@ -34,7 +35,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.102">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
@@ -44,4 +45,8 @@
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="../README.md" Pack="true" PackagePath="\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace AssetRipper.Text.SourceGeneration;
|
||||
|
||||
public readonly ref struct Get
|
||||
{
|
||||
private readonly NamedBlock block;
|
||||
|
||||
public IndentedTextWriter Writer => block.Writer;
|
||||
|
||||
public Get(IndentedTextWriter writer)
|
||||
{
|
||||
block = new NamedBlock(writer, "get");
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
block.Dispose();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace AssetRipper.Text.SourceGeneration;
|
||||
|
||||
public readonly ref struct Set
|
||||
{
|
||||
private readonly NamedBlock block;
|
||||
|
||||
public IndentedTextWriter Writer => block.Writer;
|
||||
|
||||
public Set(IndentedTextWriter writer)
|
||||
{
|
||||
block = new NamedBlock(writer, "set");
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
block.Dispose();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
namespace AssetRipper.Text.SourceGeneration;
|
||||
|
||||
public readonly ref struct SquareBrackets
|
||||
{
|
||||
private readonly Indented indented;
|
||||
|
||||
public IndentedTextWriter Writer => indented.Writer;
|
||||
|
||||
public SquareBrackets(IndentedTextWriter writer)
|
||||
{
|
||||
writer.WriteLine('[');
|
||||
indented = new Indented(writer);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
indented.Dispose();
|
||||
Writer.WriteLine(']');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
namespace AssetRipper.Text.SourceGeneration;
|
||||
|
||||
public readonly ref struct SquareBracketsWithSemicolon
|
||||
{
|
||||
private readonly Indented indented;
|
||||
|
||||
public IndentedTextWriter Writer => indented.Writer;
|
||||
|
||||
public SquareBracketsWithSemicolon(IndentedTextWriter writer)
|
||||
{
|
||||
writer.WriteLine('[');
|
||||
indented = new Indented(writer);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
indented.Dispose();
|
||||
Writer.WriteLine("];");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user