Moving Mod And Source Files
Jump to navigation
Jump to search
Fix file copying in Visual Studio Solution
Right-click > Properties on the Server and Client projects. You will need to do this for both the Release and the Debug configuration; four times in all.
- Navigate to Configuration Properties > Custom Build Step.
- Click on Command Line, then click on the ... button that appears on the right.
- Replace the contents of the new dialogue with the first code block below.
- Click on Outputs and paste in the second code block below.


Command Line
if exist "<YOUR MOD PATH>\bin\client.dll" attrib -r "<YOUR MOD PATH>\bin\client.dll" copy "$(TargetDir)"client.dll "<YOUR MOD PATH>\bin\" if exist "<YOUR MOD PATH>\bin\client.pdb" attrib -r "<YOUR MOD PATH>\bin\client.pdb" if exist "$(TargetDir)"client.pdb copy "$(TargetDir)"client.pdb "<YOUR MOD PATH>\bin\"
Outputs
<YOUR MOD PATH>\bin\client.dll;<YOUR MOD PATH>\bin\client.pdb
If errors persist is possible that you have a corrupted bin file instead a bin folder at you steam mod path, delete it and recompile or create your mod project again.