Jump to content

[HELP!] How do I make a toolbar button?


Recommended Posts

line 19, there's a dollar sign in front of a string, my IDE shows it as an error, and it's the first I've seen that. usually there's an @

- per chance it's a typo?

Edited by Xyphos
Link to comment
Share on other sites

Just now, Xyphos said:

line 19, there's a dollar sign in front of a string, my IDE shows it as an error, and it's the first I've seen that. usually there's an @

- per chance it's a typo?

That's this:

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/interpolated-strings

You may need to update your language version to C# 6 to use that code as-is. Probably easier to change it to call String.format instead.

Link to comment
Share on other sites

Just now, Xyphos said:

oh, I tend to use 3.5 for KSP plugins, as I understand it, that's the recommended runtime version?

Yeah, all plugins have to use .NET 3.5 to load properly. But I believe the language/compiler version is separate from that.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

×
×
  • Create New...