Skip to content

Commit

Permalink
updated to NET6, no functional change
Browse files Browse the repository at this point in the history
  • Loading branch information
Truinto committed Nov 26, 2023
1 parent 72c945a commit 44cc78b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
6 changes: 3 additions & 3 deletions BlueprintPurge/BlueprintPurge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private void Search(ZipEntry entry)
else if (isRef && refs.Contains(quote))
{
var parentpurge = purges.First(f => f.Ref == quote && f.File == entry.FileName);
purge.Push(new PurgeRange { File = entry.FileName, Guid = parentpurge.Guid, Data = data, Ref = quote, Type = "$ref" });
purge.Push(new PurgeRange() { File = entry.FileName, Guid = parentpurge.Guid, Data = data, Ref = quote, Type = "$ref" });
depth.Push(stack.Count);
}

Expand All @@ -200,7 +200,7 @@ private void Search(ZipEntry entry)
if (lastId.TryGetValue(stack.Count, out var id))
refs.Add(id);
// generate new range, which is finalized later
purge.Push(new PurgeRange { File = entry.FileName, Guid = Guid.Empty, Data = data, Ref = id!, Type = quote });
purge.Push(new PurgeRange() { File = entry.FileName, Guid = Guid.Empty, Data = data, Ref = id!, Type = quote });
depth.Push(stack.Count);
}

Expand All @@ -212,7 +212,7 @@ private void Search(ZipEntry entry)
if (lastId.TryGetValue(stack.Count, out var id))
refs.Add(id);
// generate new range, which is finalized later
purge.Push(new PurgeRange { File = entry.FileName, Guid = guid, Data = data, Ref = id! });
purge.Push(new PurgeRange() { File = entry.FileName, Guid = guid, Data = data, Ref = id! });
depth.Push(stack.Count);
}

Expand Down
26 changes: 9 additions & 17 deletions BlueprintPurge/BlueprintPurge.csproj
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>0.5.0</Version>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<DebugType>embedded</DebugType>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>disable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<LangVersion>latest</LangVersion>
<ImplicitUsings>disable</ImplicitUsings>
<Authors>Truinto</Authors>
<Title>BlueprintPurge</Title>
<Product>BlueprintPurge</Product>
<Deterministic>False</Deterministic>
<AssemblyVersion>0.2.0.*</AssemblyVersion>
<FileVersion>0.2.0</FileVersion>
<Version>0.2.0</Version>
<PlatformTarget>x64</PlatformTarget>
<Company>Truinto</Company>
<Copyright>Truinto</Copyright>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<Deterministic>False</Deterministic>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions BlueprintPurge/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [0.6.0]
- updated to NET6, no functional change

## [0.5.0]
- removed string restriction on $type
- fixed preceding comma, when purging last entry in a list
Expand Down

0 comments on commit 44cc78b

Please sign in to comment.