# Really weird behavior when generating project files

**URL:** <https://forums.unrealengine.com/t/really-weird-behavior-when-generating-project-files/434690>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, generate-project-fil, bug-report, Visual-Studio, CPP, question\
**Created:** [September 29, 2018, 2:09am UTC](https://forums.unrealengine.com/t/really-weird-behavior-when-generating-project-files/434690 "2018-09-29T02:09:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrData359](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrData359](https://forums.unrealengine.com/u/MrData359)\
**Post date:** [September 29, 2018, 2:09am UTC](https://forums.unrealengine.com/t/really-weird-behavior-when-generating-project-files/434690/1 "2018-09-29T02:09:41Z")

</div>

I kept on getting a message that said “Couldn’t find target rules file for target ‘MyProjectName’” when I tried to generate visual studio files. I attempted reinstalling UE4 and VS and still got this bug. The weird part was, that when I copied the project to another folder and tried again the code would generate.

I’m not sure if this is a bug, and I have found a workaround, but this is still really weird to me. Here is a video of the phenomenon-

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/4/97450282c6df1a99e87f809180e02443273f58ff.jpeg "weird copy behavior") ](https://www.youtube.com/watch?v=JG-jta-lRLg)

Can anyone explain this?
