Porject builds fine in VS but cant compile in editor
I have Unreal Engine 4.13 and I'm using Visual Studio 2015 Community. I had Visual Studio 2015 Enterprise installed before but I uninstalled it for the Community version thinking that it might fix this issue. I installed VC++ Common Tools and everything that is recommended for a good installation.
When I create a C++ project and try to open it, it says that the project was built with a previous version of the engine and that it needs to be rebuilt. When I try to rebuild it through the popup it says that it compiling failed and i should try to rebuild from source manually. Generating Visual Studio project files works fine. When I go to Visual Studio and build it there it compiles fine with no errors and the correct .DLL file for the project is generated with which I can open the project and play it afterwards. Nevertheless, when I try to compile the project from the editor Unreal says that it could not be compiled and throws the following error:
The error would be: Couldn't find target rules file for target '-canskiplink' in rules assembly 'UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
I've tried to find solutions for this in other posts in the answers hub but have had no success in finding a fix for this. People that have exactly the same problem as me are not really getting answered. Anyone else had a problem similar to this one and might give me a hand?
I have already tried uninstalling and reinstalling Visual Studio and Unreal Engine from scratch. I'm thinking it might be a problem with permissions to access the file. I will try to find a solution and will post my progress.
Thanks very much for the help.
EDIT: I created an empty C++ project template and it is now working fine. I was using the flying project template before. Apparently there is something in it that the UE 4.13 editor does not like. Epic, take note. I will try again with a project I was previously developing and see if it is still good.
We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.
answered Oct 07 '16 at 01:35 PM
Could you try and look for '-canskiplink' in your project properties. In VS go to :
Not sure if it will be there but it is the onlything I can think of.
Hope this helps,
answered Sep 26 '16 at 03:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here