mirror of
https://github.com/SabreTools/Transform.git
synced 2026-02-04 05:36:15 +00:00
Add support for .NET 10
This commit is contained in:
@@ -181,7 +181,11 @@ namespace Transform
|
||||
// If it's an output name, set that instead of interleaved
|
||||
else if (arg.StartsWith("-out=") || arg.StartsWith("--out="))
|
||||
{
|
||||
#if NETCOREAPP || NETSTANDARD2_1_OR_GREATER
|
||||
output = arg.TrimStart('-')["out=".Length..];
|
||||
#else
|
||||
output = arg.TrimStart('-').Substring("out=".Length);
|
||||
#endif
|
||||
}
|
||||
// Otherwise, it's an invalid flag
|
||||
else
|
||||
@@ -393,9 +397,9 @@ Usage: Transform.exe [-bi | -by | -w | -b] <file> ...
|
||||
FileStream oddStream = File.Open(input + ".odd", FileMode.Create, FileAccess.Write);
|
||||
|
||||
// Now get the binary readers and writers
|
||||
BinaryReader bri = new BinaryReader(inputStream);
|
||||
BinaryWriter bwe = new BinaryWriter(evenStream);
|
||||
BinaryWriter bwo = new BinaryWriter(oddStream);
|
||||
var bri = new BinaryReader(inputStream);
|
||||
var bwe = new BinaryWriter(evenStream);
|
||||
var bwo = new BinaryWriter(oddStream);
|
||||
|
||||
// Now we loop and flip as we go
|
||||
bool even = true;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Assembly Properties -->
|
||||
<TargetFrameworks>net20;net35;net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
|
||||
<TargetFrameworks>net20;net35;net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
@@ -13,7 +13,7 @@
|
||||
<!-- Package Properties -->
|
||||
<Authors>Matt Nadareski</Authors>
|
||||
<Description>File transformation test program</Description>
|
||||
<Copyright>Copyright (c)2017-2024 Matt Nadareski</Copyright>
|
||||
<Copyright>Copyright (c)2017-2025 Matt Nadareski</Copyright>
|
||||
<RepositoryUrl>https://github.com/mnadareski/Transform</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
@@ -26,11 +26,11 @@
|
||||
<PropertyGroup Condition="$(TargetFramework.StartsWith(`netcoreapp`)) OR $(TargetFramework.StartsWith(`net5`))">
|
||||
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64</RuntimeIdentifiers>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="$(TargetFramework.StartsWith(`net6`)) OR $(TargetFramework.StartsWith(`net7`)) OR $(TargetFramework.StartsWith(`net8`)) OR $(TargetFramework.StartsWith(`net9`))">
|
||||
<PropertyGroup Condition="$(TargetFramework.StartsWith(`net6`)) OR $(TargetFramework.StartsWith(`net7`)) OR $(TargetFramework.StartsWith(`net8`)) OR $(TargetFramework.StartsWith(`net9`)) OR $(TargetFramework.StartsWith(`net10`))">
|
||||
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="$(RuntimeIdentifier.StartsWith(`osx-arm`))">
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user