Sergey Nechaev

Results 20 comments of Sergey Nechaev

Looks like the problem is here again. If I add the forced `GC.Collect()` in the `Playground.Mac.WindowView` then the `WindowController` will be null or managed wrapper will be created from scratch...

> managed wrapper will be created from scratch again (so, `WindowController` itself will not be null, but all the connected outlets there will be null). Just for the history: looks...

Additionally, even if I copy `MyItem.xib` to the destination project (`UiFromClassLib`), the app still won't run because the `MyItem` obj-c class (not xib) cannot be found. It looks like registrar...

Unfortunately, the wildcard-based workaround works only partially and is not usable in production. It works for `dotnet build` when it is called from the folder, containing the solution. It does...

Additional note for those who coming here from Google - for `net8` you may also need to add a `libclrgc.dylib` to the exclusion list: ``` ```

I did some brief research and here are the results. * the `PublishFolderType` metadata gets lost in the `GetCopyToPublishDirectoryItems` target in [this]( https://github.com/dotnet/sdk/blob/65cd87abc5cedc5cfffbaebe95d643d153f44a92/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Publish.targets#L814) code. The reason: `_GCTPDIKeepMetadata=CopyToPublishDirectory;ExcludeFromSingleFile;TargetPath`, so the only...

From my experience while researching the current behavior after reading the docs, I would say that it might be helpful to emphasize the following moments in the documentation: * The...

> Does it run via `dotnet run`? Yes, it does. ``` cd ./macOSApp6.Desktop dotnet run ``` Application is running and works as expected.

> dotnet macOSApp6.Desktop.dll No, this does not work. ``` ~/work/macOSApp6/macOSApp6.Desktop/bin/Debug/net8.0-macos/osx-x64$ dotnet run ./macOSApp6.Desktop.dll Couldn't find a project to run. Ensure a project exists in ~/work/macOSApp6/macOSApp6.Desktop/bin/Debug/net8.0-macos/osx-x64, or pass the path to...

Oh, my bad, sorry. But, unfortunately, `dotnet macOSApp6.Desktop.dll` also does not work - fails with a `Unhandled exception. System.DllNotFoundException: Unable to load shared library '__Internal' or one of its dependencies.`....