Skip to content

Commit

Permalink
macos: created build configurations for vs code
Browse files Browse the repository at this point in the history
Dropped to .net 7.0 because 8.0 requires newer xcode
  • Loading branch information
ShendoXT committed Oct 11, 2024
1 parent 37cec53 commit 2d0f2ba
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 8 deletions.
28 changes: 25 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,37 @@
"version": "0.2.0",
"configurations": [
{
"name": "MemcardRex.macOS",
"name": "MemcardRex.macOS.debug.x64",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/MemcardRex.macOS/bin/Debug/net8.0-macos/osx-arm64/MemcardRex.app/Contents/MacOS/MemcardRex",
"preLaunchTask": "x64build",
"program": "${workspaceFolder}/MemcardRex.macOS/bin/Debug/net7.0-macos/osx-x64/memcardrex.app/Contents/MacOS/memcardrex",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "internalConsole"
},
{
"name": "MemcardRex.macOS.debug.arm64",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "armbuild",
"program": "${workspaceFolder}/MemcardRex.macOS/bin/Debug/net7.0-macos/osx-arm64/MemcardRex.app/Contents/MacOS/MemcardRex",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "internalConsole"
},
{
"name": "MemcardRex.macOS.publish",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "publish",
"program": "${workspaceFolder}/MemcardRex.macOS/bin/Release/net7.0-macos/MemcardRex.app/Contents/MacOS/MemcardRex",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "internalConsole"
}
],
}
33 changes: 32 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,42 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"label": "armbuild",
"command": "dotnet",
"type": "process",
"args": [
"build",
"-c",
"debug",
"-r",
"osx-arm64",
"MemcardRex.macOS"
],
"problemMatcher": "$msCompile"
},
{
"label": "x64build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"-c",
"debug",
"-r",
"osx-x64",
"MemcardRex.macOS"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"build",
"-c",
"release",
"MemcardRex.macOS"
],
"problemMatcher": "$msCompile"
Expand Down
4 changes: 1 addition & 3 deletions MemcardRex.macOS/MemcardRex.macOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-macos</TargetFramework>
<TargetFramework>net7.0-macos</TargetFramework>
<AssemblyName>memcardrex</AssemblyName>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
<PublishSingleFile>false</PublishSingleFile>

</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion MemcardRex.macOS/macOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public override void DidFinishLaunching(NSNotification notification)
MessageText = "Warning",
};

alert.RunModal();
//alert.RunModal();

//Add initial window controller to the controller list
//winCtrlList.Add(NSApplication.SharedApplication.KeyWindow.WindowController);
Expand Down

0 comments on commit 2d0f2ba

Please sign in to comment.