Skip to content

Commit

Permalink
fixed target ver
Browse files Browse the repository at this point in the history
  • Loading branch information
Егор Желудков committed Nov 24, 2023
1 parent 9f01177 commit 522e6fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<Nullable>Enable</Nullable>

<Version>8.0.0-preview1</Version>
<Version>8.0.0-preview2</Version>

<Company>Egorozh</Company>
<Product>CrossPlatform File Operations</Product>
Expand Down
2 changes: 1 addition & 1 deletion src/FileOperations.MacOs/FileOperations.MacOs.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0-maccatalyst</TargetFramework>
<TargetFramework>net8.0-macos</TargetFramework>

<Description>File operations for MacOs</Description>
<PackageId>Egorozh.FileOperations.Mac</PackageId>
Expand Down
7 changes: 7 additions & 0 deletions src/FileOperations.MacOs/MacOsFileOperations.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.IO;
using AppKit;
using FileOperations.Abstractions;
using FileOperations.Abstractions.Enums;
using Foundation;
Expand All @@ -7,8 +8,14 @@
namespace FileOperations.MacOs;


/// <summary>
/// Use <see cref="Initialize"/> for working api
/// </summary>
public class MacOsFileOperations : IFileOperations
{
public static void Initialize() => NSApplication.Init();


public void DeleteDirectory(string directory, DeleteDirectoryOption onDirectoryNotEmpty,
RecycleOption recycle = RecycleOption.DeletePermanently)
{
Expand Down

0 comments on commit 522e6fd

Please sign in to comment.