# Setting up for both Steam and Non-steam?

**URL:** <https://forums.unrealengine.com/t/setting-up-for-both-steam-and-non-steam/421683>\
**Category:** Platform & Builds\
**Tags:** target, onlinesubsystem, Steam, build, unreal-engine, question, CPP\
**Created:** [April 3, 2018, 8:13am UTC](https://forums.unrealengine.com/t/setting-up-for-both-steam-and-non-steam/421683 "2018-04-03T08:13:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelWion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MichaelWion](https://forums.unrealengine.com/u/MichaelWion)\
**Post date:** [April 3, 2018, 8:13am UTC](https://forums.unrealengine.com/t/setting-up-for-both-steam-and-non-steam/421683/1 "2018-04-03T08:13:15Z")

</div>

I’d like to create build targets that allow me to “swap” between building with `OnlineSubsystemSteam` support, and building with the typical `OnlineSubsystemNull`. Basically, during development, I’d like to be testing network code directly within the editor, and then switch to building the Steam-enabled target when I need to test it in Steam. IIRC, to properly test a Steam-enabled project, it needs to be packaged, so having a non-Steam target seems like a decent means to avoid having to wait for building, packaging and deploying just to test changes to a single line of code.

Is this possible?

  
Here's what I've tried:
- [MyGame.Target.cs](https://pastebin.com/3dw5Kcx1)
  - File copied and changed to [MyGameSteam.Target.cs](https://pastebin.com/uS9eKu0U)

- [MyGameEditor.Target.cs](https://pastebin.com/EQzAbnwX)
  - File copied and changed to [MyGameSteamEditor.Target.cs](https://pastebin.com/CRZvLaU5)

- [MyGameServer.Target.cs](https://pastebin.com/etKN2qnQ)
  - File copied and changed to [MyGameSteamServer.Target.cs](https://pastebin.com/9Eb6K7pB)

- [MyGame.Build.cs](https://pastebin.com/BGiTsDsV)
  - File copied and changed to [MyGameSteam.Build.cs](https://pastebin.com/2bnY550P)

  
This gives me the following error when generating project files:

> `Running D:/UE4S/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="D:/Projects/SourceProjects/ProjectMyGame/MyGame/MyGame.uproject" -game -engine -progress`  
> `Discovering modules, targets and source code for project...`  
> `UnrealBuildTool Exception: ERROR: Not expecting project D:\Projects\SourceProjects\ProjectMyGame\MyGame\Intermediate\ProjectFiles\MyGame.vcxproj to already have a target rules of with configuration name Game (MyGameTarget) while trying to add: MyGameSteamTarget`
