# Target.cs problem

**URL:** <https://forums.unrealengine.com/t/target-cs-problem/53874>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [January 29, 2016, 1:23am UTC](https://forums.unrealengine.com/t/target-cs-problem/53874 "2016-01-29T01:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GaberLitch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GaberLitch](https://forums.unrealengine.com/u/GaberLitch)\
**Post date:** [January 29, 2016, 1:23am UTC](https://forums.unrealengine.com/t/target-cs-problem/53874/1 "2016-01-29T01:23:28Z")

</div>

Hi all,  
I’ve posted the same question on ueanswer but i didn’t receive an answer, so I really hope to find a solution here.

My problem is that I can’t open my project, if I try to do this a window alert me that there is a problem with UE4Editor-ProjectName.dll

I’ve tried to start with “generate visual studio…” but nothing is changed, a message says:

Running C:/Program Files/Epic Games/4.9/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="[Mydirectory]/Unreal Projects/[Project Name]/[ProjectName].uproject" -game -rocket -progress Discovering modules, targets and source code for game… Errors detected while compiling [Mydirectory\Unreal Projects\ProjectName\Intermediate\Build\BuildRules\RocketUE4ModuleRules.dll: [My Directory]\Unreal Projects[ProjectName]\Intermediate\Source[ProjectName].Target.cs(6,14) : error CS0101: The Namespace already contains a definition for ‘[ProjectName]Target’. UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files

on “incriminated” file:

using UnrealBuildTool; using System.Collections.Generic;  
public class [ProjectName]Target : TargetRules { public [ProjectName]Target(TargetInfo Target) { Type = TargetType.Game; }  
I’ve tried to: - Downgrade from 4.10 to 4.9 - Reinstall Visual Studio - Change engine version

I’m going crazy, i’m a designer, i’m not a programer, my knowledge is limited to blueprints and this problem happened when I’ve tried to localize my game.

Bye!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3a8723ae](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3a8723ae](https://forums.unrealengine.com/u/anonymous_user_3a8723ae)\
**Post date:** [January 30, 2016, 10:56am UTC](https://forums.unrealengine.com/t/target-cs-problem/53874/2 "2016-01-30T10:56:08Z")

</div>

is this the content of your Target.cs file?
