Jump to content

paint.net 4.2.17 alpha build 7858 -- now using .NET 5!


Recommended Posts

On 7/8/2021 at 5:03 PM, null54 said:

@AndrewDavid @Rick Brewster

 

The PSFilterPdn crash is due to the fact that it uses WCF for communication when running 32-bit plugins.

 

Also, it might be possible to use this instead of migrating away from WCF: https://github.com/dotnet/wcf

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

3 hours ago, Rick Brewster said:

Also, it might be possible to use this instead of migrating away from WCF: https://github.com/dotnet/wcf

 

I already migrated to NamedPipeServerStream and NamedPipeClientStream.

Also, that repository only contains the client libraries for consuming existing WCF services, and I need to run a WCF server.

 

The migration from WCF was less work than the migration away from BinaryFormatter, lots of types that needed to be updated to work with DataContract.

Fortunately I only had one settings file that I needed to migrate, and that code will never run for 99% of users.

I have not seen many 3rd-party Photoshop plugins that use the associated API.

  • Like 1

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

Am I right in saying that this version is the first to have an official portable build of PDN?

 

Also, would it be fine to totally clean uninstall my old standard version of PDN with Revo Uninstaller and use the portable PDN with its pre-bundled .NET 5?

 

Thanks for the hard work with this program.

Link to comment
Share on other sites

7 minutes ago, Ishi said:

Am I right in saying that this version is the first to have an official portable build of PDN?

 

Yes.

 

8 minutes ago, Ishi said:

Also, would it be fine to totally clean uninstall my old standard version of PDN with Revo Uninstaller and use the portable PDN with its pre-bundled .NET 5?

 

Yes.

  • Like 1
Link to comment
Share on other sites

16 hours ago, Ishi said:

Am I right in saying that this version is the first to have an official portable build of PDN?

 

Also, would it be fine to totally clean uninstall my old standard version of PDN with Revo Uninstaller and use the portable PDN with its pre-bundled .NET 5?

 

Thanks for the hard work with this program.

 

Just be careful, the portable build does not have an updater, nor does it notify you when there's a new version.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

On 7/7/2021 at 10:21 PM, Rick Brewster said:

Paint.NET has finally been migrated to .NET 5! If you're not familiar, .NET 5 (also known as .NET "Core" 5.0) is the new version of .NET that replaces .NET "Framework" (of which no more new versions will be made). More info here: https://devblogs.microsoft.com/dotnet/introducing-net-5/

 

It was a very large effort to move Paint.NET over to .NET 5 over the last 2 months! Most of that effort went towards rebuilding from scratch how Paint.NET is built and packaged (installer, MSI, APPX, portable ZIPs), because the old solutions were showing their age and were no longer serviceable. The app itself required only minor changes to work on .NET 5.

 

You should not really see any difference in the app's features or the way it behaves, although performance has improved. Sometimes substantially! Sadly there are some plugins that will no longer work, although I may be able to find fixes for some of them.

 

I will be releasing this via the built-in updater sometime later this week. For now, I want to start with a smaller audience, so you must download and install it manually. Just close the app, run the installer EXE inside the ZIP, and it will do everything for you (as usual):

 

 

You may also download a portable version of the app, which is useful if you just want to try things out or are not yet ready to fully commit to the new version. .NET 5 is built-in, so there is no need to install it (the app is "self-contained"). The portable version of the app will save settings in a local JSON file instead of using the registry.
 

 

If you have an ARM64 device such as the Surface Pro X, you may also install the app. For the portable ZIPs, use the architecture appropriate for your operating system: x86 for Win10, or x64 for Win11. This is untested, so please report back with how well it works.

 

Changes:

  • The app has been migrated to .NET 5, and performance has been greatly improved as a result.
  • Installation is much faster now due to no longer needing the "Optimizing performance for your system" stage (NGEN has been replaced with ReadyToRun via crossgen).
  • Portable ZIPs are now officially available, utilizing self-contained deployment, and do not require the installation of .NET 5. You must manually update to newer versions of the app, however.
  • Improved performance of most effects and other compute-intensive tasks by about 20% on average, due to .NET 5's improved code generation
  • Fixed a bug when saving with "Auto Detect" bit-depth that was causing fidelity loss on some images that already had 256 colors or less. This was reported here: https://forums.getpaint.net/topic/118401-images-already-with-256-or-fewer-colors-being-dithered-when-saved-with-palette/
  • Fixed a bug in Polar Inversion that was causing hangs
  • Improved performance of Polar Inversion by 3x, due to the aforementioned bug fix (and a little bit is due to .NET 5)
  • Updated the built-in AvifFileType plugin to v1.1.13.0 (courtesy of @null54). See the project's GitHub Releases page for more information.

 

Known Issues:

  • If you have a lot of plugins installed, such that the Effects menu is too large for the screen and must be scrolled, the scroll indicator buttons (the up/down arrows) are a lot larger than they should be. This seems to be a bug in .NET 5.
  • Several of Ed Harvey's popular plugins are blocked because they are not compatible with .NET 5. I may find a solution for this, but it may also require a new version of the plugin to be released.
    • Color Flip/Rotate
    • Threshold
    • Glass Blocks
    • Color Filter
    • Filtered Black and White
    • Single Hue
    • Color Tint
    • Vitrious
    • White Balance


Will a translation update be added on crowdin that 5.0 is required?

Regards.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...