Jump to content

[FIXED - Solution added]Trying to recompile a mod, getting several errors


Niami

Recommended Posts

I'm trying to recompile an old mod so I can update and customise it (KSPlogiRGB).

I've downloaded it, opened it in VS2019 and added all the assembly references but there are still errors in the error list:

The name 'KSPAddon' does not exist in the current context

The type or namespace name 'KSP' could not be found (are you missing a using directive or assembly reference?)

 

Although those errors show in the list there are no actual errors in the code (no red lines) and I don't know what to do now.

 

 

Edit : I figured out what's wrong but I don't want to delete in case anyone else has the same issues.

Make sure your project is using the correct .Net Framework version (Project > Properties > Application - for Visual Studio Users). For KSP 1.9 you must use .Net Framework 4.5

Edited by Niami
Improved solution
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...