Skip to content

Commit aef0dc8

Browse files
authored
Migrate from .NET Core 3.1 to .NET 6 (#2)
And change program version to 1.2
1 parent 01a7345 commit aef0dc8

22 files changed

Lines changed: 28 additions & 28 deletions

L80/L80.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<RootNamespace>Konamiman.M80dotNet.L80</RootNamespace>
66
<OutputType>Exe</OutputType>
77
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>

LIB80/LIB80.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<RootNamespace>Konamiman.M80dotNet.LIB80</RootNamespace>
77
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>

M80/M80.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
<RootNamespace>Konamiman.M80dotNet.M80</RootNamespace>
77
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
88
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ The Z80 binaries used are slightly modified versions of the originals; the chang
2525

2626
Download the latest release and choose the variant you want to use:
2727

28-
* **Portable:** Consists of multiple `.dll` files and runs on any platform having [the .NET Core Runtime 3.1](https://dotnet.microsoft.com/download/dotnet-core/3.1) installed.
29-
* **Framework-dependant:** Single file, platform-specific applications that also require the .NET Core Runtime 3.1 to be installed. This is the perhaps the most convenient variant for frequent use.
28+
* **Portable:** Consists of multiple `.dll` files and runs on any platform having [the .NET Runtime 6.0](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) installed.
29+
* **Framework-dependant:** Single file, platform-specific applications that also require the .NET Runtime 6.0 to be installed. This is the perhaps the most convenient variant for frequent use.
3030
* **Self-contained:** Single file, platform-specific applications that have the .NET Core Runtime built-in and thus have no dependencies (at the expense of much bigger file sizes). These may be convenient for casual usage, or if you just want to give it a try before installing the .NET Runtime.
3131

3232
Place the chosen variant in a PATH-accessible directory and then run
@@ -123,9 +123,9 @@ The `WINBUILD.BAT` script will use `cpm.exe` and the original `M80.COM` and `L80
123123

124124
## Building the wrappers
125125

126-
The `Shared` project has a `PublishProfiles` folder containing a `build.sh` script and several `.pubxml` files, each containing a publish profile for each of the variants. The script (for Linux, it works on Windows 10 with WSL too) uses the `dotnet` tool to generate all the variants in the `Release` folder in the root directory of the project, you can just run it to build all the variants or pass the name of a publish profile (filename without the `.pubxml`) as a single argument.
126+
To build the wrappers you'll need [the .NET 6 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0). The `Shared` project has a `PublishProfiles` folder containing a `build.sh` script and several `.pubxml` files, each containing a publish profile for each of the variants. The script (for Linux, it works on Windows 10 with WSL too) uses the `dotnet` tool (part of the .NET SDK) to generate all the variants in the `Release` folder in the root directory of the project, you can just run it to build all the variants or pass the name of a publish profile (filename without the `.pubxml`) as a single argument.
127127

128-
If you prefer a more IDE-centric approach for compilation, you can copy all the `.pubxml` files to the `Properties/PublishProfiles` directory of each project, then right-click the project in Visual Studio and select "Publish".
128+
You can also use [Visual Studio 2022](https://visualstudio.microsoft.com) for compiling the wrappers: copy all the `.pubxml` files to the `Properties/PublishProfiles` directory of each project, then right-click the project in Visual Studio and select "Publish".
129129

130130

131131
# Last but not least...

Shared/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
using System.Reflection;
22

3-
[assembly: AssemblyVersion("1.1")]
4-
[assembly: AssemblyFileVersion("1.1")]
3+
[assembly: AssemblyVersion("1.2")]
4+
[assembly: AssemblyFileVersion("1.2")]

Shared/ProgramRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private void ShowBanner()
261261

262262
Console.WriteLine(
263263
@$"{ProgramName} .NET wrapper {version}
264-
By Konamiman, 2020");
264+
By Konamiman, 2023");
265265
}
266266

267267
private void ShowUsageHelp()

Shared/PublishProfiles/FrameworkDependant__linux_arm.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
88
<Platform>Any CPU</Platform>
99
<PublishDir>..\Release\FrameworkDependant\linux_arm</PublishDir>
1010
<PublishProtocol>FileSystem</PublishProtocol>
11-
<TargetFramework>netcoreapp3.1</TargetFramework>
11+
<TargetFramework>net6.0</TargetFramework>
1212
<RuntimeIdentifier>linux-arm</RuntimeIdentifier>
1313
<SelfContained>false</SelfContained>
1414
<PublishSingleFile>True</PublishSingleFile>

Shared/PublishProfiles/FrameworkDependant__linux_x64.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
88
<Platform>Any CPU</Platform>
99
<PublishDir>..\Release\FrameworkDependant\linux_x64</PublishDir>
1010
<PublishProtocol>FileSystem</PublishProtocol>
11-
<TargetFramework>netcoreapp3.1</TargetFramework>
11+
<TargetFramework>net6.0</TargetFramework>
1212
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
1313
<SelfContained>false</SelfContained>
1414
<PublishSingleFile>True</PublishSingleFile>

Shared/PublishProfiles/FrameworkDependant__osx_x64.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
88
<Platform>Any CPU</Platform>
99
<PublishDir>..\Release\FrameworkDependant\osx_x64</PublishDir>
1010
<PublishProtocol>FileSystem</PublishProtocol>
11-
<TargetFramework>netcoreapp3.1</TargetFramework>
11+
<TargetFramework>net6.0</TargetFramework>
1212
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
1313
<SelfContained>false</SelfContained>
1414
<PublishSingleFile>True</PublishSingleFile>

Shared/PublishProfiles/FrameworkDependant__win_arm.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
88
<Platform>Any CPU</Platform>
99
<PublishDir>..\Release\FrameworkDependant\win_arm</PublishDir>
1010
<PublishProtocol>FileSystem</PublishProtocol>
11-
<TargetFramework>netcoreapp3.1</TargetFramework>
11+
<TargetFramework>net6.0</TargetFramework>
1212
<RuntimeIdentifier>win-arm</RuntimeIdentifier>
1313
<SelfContained>false</SelfContained>
1414
<PublishSingleFile>True</PublishSingleFile>

0 commit comments

Comments
 (0)