Issue with Cook Content for Windows option

The prompt is clear, u may build UE4 project with visual studio, try it and see the issue still exists?

114775-capture.png

I was searching for solutions on google for this issue but i was unable to find anything that could help me.It appears in option Cook Content for Windows and without that option some scripts for multyplayer wont work properly.Issue appears in every project and even in templates.I aslo tried to reinstal engine but issue is still there.

After trying to generate to Visual Studio project file

Running D:/Program Files (x86)/Epic Games/4.13/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“C:/Users/Fox/Documents/Unreal Projects/Platformer2d/Platformer2d.uproject” -game -rocket -progress
Discovering modules, targets and source code for project…
Messages while compiling C:\Users\Fox\Documents\Unreal Projects\Platformer2d\Intermediate\Build\BuildRules\Platformer2dModuleRules.dll:
c:\Users\Fox\Documents\Unreal Projects\Platformer2d\Intermediate\Source\Platformer2d.Target.cs(6,14) : error CS0101: The namespace ‘’ already contains a definition for ‘Platformer2dTarget’
UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files

With that GenerateProjectFiles error, it seems that there may be another project with the name Platformer2dTarget trying to be generated at the same time. Can you ensure that there aren’t two projects with this same name and/or including a module with that name?

As navylover mentioned, the solution for this problem would be to compile the project for the appropriate configuration, so getting this GenerateProjectFiles error fixed will be the first step.

We haven’t heard from you in a while, foyline. Are you still experiencing this issue? If so, have you tried what I mentioned in my previous comment? In the meantime, I’ll be marking this as resolved for tracking purposes.

No, there is only one project with that name. What do you mean ‘‘GenerateProjectFiles error fixed will be the first step.’’

I mean that you won’t be able to cook properly without being able to generate your project files successfully and thus being able to compile your project, so we should focus on fixing that issue first.

Can you post the contents of your Platformer2d.Target.cs file?