Skip to content

Commit 77219c5

Browse files
committed
Update from .Net Framework to .Net Core
1 parent 2ebc06a commit 77219c5

10 files changed

+736
-161
lines changed

ARKModnetLogo.ico

-122 KB
Binary file not shown.

App.config

-6
This file was deleted.

LICENCE.txt

+674
Large diffs are not rendered by default.

Models/Summery.cs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace SpawnCodeGenerator.Models
2+
{
3+
public class Summery
4+
{
5+
public SummeryEnum Type { get; set; }
6+
public string Value { get; set; }
7+
}
8+
}

Models/SummeryEnum.cs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace SpawnCodeGenerator.Models
2+
{
3+
public enum SummeryEnum
4+
{
5+
BLUEPRINT,
6+
ENGRAM,
7+
PRIMAL_ITEM,
8+
SPAWNCODE_ITEM,
9+
SPAWNCODE_CREATURE
10+
}
11+
}

Program.cs

+18-15
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
using System;
1+
using SpawnCodeGenerator.Models;
2+
using System;
23
using System.Collections.Generic;
34
using System.IO;
45
using System.Linq;
6+
using System.Reflection;
57
using System.Text.RegularExpressions;
68

7-
namespace ArkSpawnCodeGen
9+
namespace SpawnCodeGenerator
810
{
911
class Program
1012
{
@@ -50,19 +52,20 @@ public static void Main(string[] args)
5052
var modFolder = path.Split('\\').Last();
5153
PATH_PREFIX += modFolder;
5254

53-
WriteColor(@"[ $$$$$$\ $$\ $$\ $$\ $$\ ]", ConsoleColor.Yellow);
54-
WriteColor(@"[$$ __$$\ $$ | $$$\ $$$ | $$ |]", ConsoleColor.Yellow);
55-
WriteColor(@"[$$ / $$ | $$$$$$\ $$ | $$\ $$$$\ $$$$ | $$$$$$\ $$$$$$$ |]", ConsoleColor.Yellow);
56-
WriteColor(@"[$$$$$$$$ |$$ __$$\ $$ | $$ |$$\$$\$$ $$ |$$ __$$\ $$ __$$ |]", ConsoleColor.Yellow);
57-
WriteColor(@"[$$ __$$ |$$ | \__|$$$$$$ / $$ \$$$ $$ |$$ / $$ |$$ / $$ |]", ConsoleColor.Yellow);
58-
WriteColor(@"[$$ | $$ |$$ | $$ _$$< $$ |\$ /$$ |$$ | $$ |$$ | $$ |]", ConsoleColor.Yellow);
59-
WriteColor(@"[$$ | $$ |$$ | $$ | \$$\ $$ | \_/ $$ |\$$$$$$ |\$$$$$$$ |]", ConsoleColor.Yellow);
60-
WriteColor(@"[\__| \__|\__| \__| \__|\__| \__| \______/ \_______|]", ConsoleColor.Yellow);
61-
55+
Console.WriteLine(Environment.NewLine);
56+
WriteColor(@"[$$$$$$$$\ $$\ $$\ $$$$$$\ $$\]", ConsoleColor.DarkGreen);
57+
WriteColor(@"[$$ _____|\__| $$ | $$ __$$\ $$ |]", ConsoleColor.DarkGreen);
58+
WriteColor(@"[$$ | $$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$ / \__| $$$$$$\ $$$$$$$ | $$$$$$\ $$$$$$\]", ConsoleColor.DarkGreen);
59+
WriteColor(@"[$$$$$\ $$ |$$ __$$\ $$ _____|\_$$ _|$$$$$$\ $$ | $$ __$$\ $$ __$$ |$$ __$$\ $$ __$$\]", ConsoleColor.DarkGreen);
60+
WriteColor(@"[$$ __| $$ |$$ | \__|\$$$$$$\ $$ | \______|$$ | $$ / $$ |$$ / $$ |$$$$$$$$ |$$ | \__|]", ConsoleColor.DarkGreen);
61+
WriteColor(@"[$$ | $$ |$$ | \____$$\ $$ |$$\ $$ | $$\ $$ | $$ |$$ | $$ |$$ ____|$$ |]", ConsoleColor.DarkGreen);
62+
WriteColor(@"[$$ | $$ |$$ | $$$$$$$ | \$$$$ | \$$$$$$ |\$$$$$$ |\$$$$$$$ |\$$$$$$$\ $$ |]", ConsoleColor.DarkGreen);
63+
WriteColor(@"[\__| \__|\__| \_______/ \____/ \______/ \______/ \_______| \_______|\__|]", ConsoleColor.DarkGreen);
6264
Console.WriteLine(Environment.NewLine);
6365
WriteColor(@"[//--Informationen------------------------------------------------]", ConsoleColor.DarkGreen);
64-
WriteColor($"[// Title:] ARK Spawncode Generator", ConsoleColor.DarkGreen);
65-
WriteColor($"[// Autor:] derda, L. Gmann", ConsoleColor.DarkGreen);
66+
WriteColor($"[// Title:] {Assembly.GetEntryAssembly().GetName().Name}", ConsoleColor.DarkGreen);
67+
WriteColor($"[// Version:] {Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyFileVersionAttribute>().Version}", ConsoleColor.DarkGreen);
68+
WriteColor($"[// Autor:] {Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyCopyrightAttribute>().Copyright}", ConsoleColor.DarkGreen);
6669
WriteColor(@"[//--Settings-----------------------------------------------------]", ConsoleColor.DarkGreen);
6770
WriteColor($"[// Output folder:] {OUTPUT_PATH}", ConsoleColor.DarkGreen);
6871
WriteColor($"[// Mod folder name:] {modFolder} (Absolute path: {PATH_PREFIX})", ConsoleColor.DarkGreen);
@@ -115,7 +118,7 @@ static void ParseFiles()
115118
File.Delete(OUTPUT_PATH + PRIMAL_ITEMS_FILE + ".txt");
116119
File.Delete(OUTPUT_PATH + SPAWNCODE_ITEMS_FILE + ".txt");
117120
File.Delete(OUTPUT_PATH + SPAWNCODE_CREATURE_FILE + ".txt");
118-
121+
119122
var path = Directory.GetCurrentDirectory();
120123
var allItems = Directory.GetFiles(Directory.GetCurrentDirectory(), "*", SearchOption.AllDirectories);
121124

@@ -190,7 +193,7 @@ static void WriteFiles()
190193
var type = "";
191194
foreach (var item in summeryFile.OrderBy(el => el.Type))
192195
{
193-
if(type.Equals("") || !type.Equals(item.Type.ToString()))
196+
if (type.Equals("") || !type.Equals(item.Type.ToString()))
194197
{
195198
if (!type.Equals(""))
196199
{

Properties/AssemblyInfo.cs

-37
This file was deleted.

SpawnCodeGenerator.csproj

+25-86
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,30 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
43
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{7E361A54-A631-4204-A1AE-8A6458EDD60B}</ProjectGuid>
84
<OutputType>Exe</OutputType>
9-
<RootNamespace>ArkSpawnCodeGen</RootNamespace>
10-
<AssemblyName>ARK Code Generator</AssemblyName>
11-
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12-
<FileAlignment>512</FileAlignment>
13-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14-
<IsWebBootstrapper>false</IsWebBootstrapper>
15-
<PublishUrl>publish\</PublishUrl>
16-
<Install>true</Install>
17-
<InstallFrom>Disk</InstallFrom>
18-
<UpdateEnabled>false</UpdateEnabled>
19-
<UpdateMode>Foreground</UpdateMode>
20-
<UpdateInterval>7</UpdateInterval>
21-
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
22-
<UpdatePeriodically>false</UpdatePeriodically>
23-
<UpdateRequired>false</UpdateRequired>
24-
<MapFileExtensions>true</MapFileExtensions>
25-
<ApplicationRevision>0</ApplicationRevision>
26-
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
27-
<UseApplicationTrust>false</UseApplicationTrust>
28-
<BootstrapperEnabled>true</BootstrapperEnabled>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
6+
<ApplicationIcon>icon.ico</ApplicationIcon>
7+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
8+
<Copyright>L. Gmann, Dr. Pennysworth</Copyright>
9+
<RepositoryUrl>https://github.com/First-Coder/SpawnCodeGenerator</RepositoryUrl>
10+
<PackageLicenseFile>LICENCE.txt</PackageLicenseFile>
11+
<PackageProjectUrl>https://first-coder.de/</PackageProjectUrl>
12+
<PackageIcon>icon.ico</PackageIcon>
13+
<Authors>L. Gmann, Dr. Pennysworth</Authors>
14+
<Company>First Coder</Company>
15+
<AssemblyVersion>1.1.0.0</AssemblyVersion>
16+
<FileVersion>1.1.0.0</FileVersion>
2917
</PropertyGroup>
30-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
31-
<PlatformTarget>AnyCPU</PlatformTarget>
32-
<DebugSymbols>true</DebugSymbols>
33-
<DebugType>full</DebugType>
34-
<Optimize>false</Optimize>
35-
<OutputPath>bin\Debug\</OutputPath>
36-
<DefineConstants>DEBUG;TRACE</DefineConstants>
37-
<ErrorReport>prompt</ErrorReport>
38-
<WarningLevel>4</WarningLevel>
39-
</PropertyGroup>
40-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
41-
<PlatformTarget>AnyCPU</PlatformTarget>
42-
<DebugType>pdbonly</DebugType>
43-
<Optimize>true</Optimize>
44-
<OutputPath>bin\Release\</OutputPath>
45-
<DefineConstants>TRACE</DefineConstants>
46-
<ErrorReport>prompt</ErrorReport>
47-
<WarningLevel>4</WarningLevel>
48-
</PropertyGroup>
49-
<PropertyGroup>
50-
<ApplicationIcon>ARKModnetLogo.ico</ApplicationIcon>
51-
</PropertyGroup>
52-
<PropertyGroup>
53-
<SignAssembly>true</SignAssembly>
54-
</PropertyGroup>
55-
<PropertyGroup>
56-
</PropertyGroup>
57-
<ItemGroup>
58-
<Reference Include="System" />
59-
<Reference Include="System.Core" />
60-
<Reference Include="System.Xml.Linq" />
61-
<Reference Include="System.Data.DataSetExtensions" />
62-
<Reference Include="Microsoft.CSharp" />
63-
<Reference Include="System.Data" />
64-
<Reference Include="System.Net.Http" />
65-
<Reference Include="System.Xml" />
66-
</ItemGroup>
67-
<ItemGroup>
68-
<Compile Include="Program.cs" />
69-
<Compile Include="Properties\AssemblyInfo.cs" />
70-
<Compile Include="Summery.cs" />
71-
</ItemGroup>
72-
<ItemGroup>
73-
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
74-
<Visible>False</Visible>
75-
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 und x64%29</ProductName>
76-
<Install>true</Install>
77-
</BootstrapperPackage>
78-
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
79-
<Visible>False</Visible>
80-
<ProductName>.NET Framework 3.5 SP1</ProductName>
81-
<Install>false</Install>
82-
</BootstrapperPackage>
83-
</ItemGroup>
84-
<ItemGroup>
85-
<None Include="App.config" />
86-
</ItemGroup>
18+
8719
<ItemGroup>
88-
<Content Include="ARKModnetLogo.ico" />
20+
<None Include="icon.ico">
21+
<Pack>True</Pack>
22+
<PackagePath></PackagePath>
23+
</None>
24+
<None Include="LICENCE.txt">
25+
<Pack>True</Pack>
26+
<PackagePath></PackagePath>
27+
</None>
8928
</ItemGroup>
90-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
91-
</Project>
29+
30+
</Project>

Summery.cs

-17
This file was deleted.

icon.ico

10.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)