Jump to content

ForeColor Effects Plugin - build error


Recommended Posts

Hey Rick,

When I was updating my Cloud Effect plugin, I accidentally built against the 3.0 dlls.

When I tried compiling my plugin, I received a warning (as expected) for EnvironmentParameters.BackColor being deprecated and to use SecondaryColor instead.

What threw me off was EnvironmentParameters.ForeColor throws an error and won't let me finish building the project. I know ForeColor has been replaced with PrimaryColor, but shouldn't I receive a warning (like I did with BackColor) instead of an error and still be able to build my project? The BackColor function should just make the call to PrimaryColor right?

(built with Visual Studio 2005 Standard Edition)

Link to comment
Share on other sites

Nope, this is on purpose.

Foreground/background are deprecated terms. Plus, you should be compiling with "warnings as errors" anyway, so either way it would be an error.

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

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...