xenko icon indicating copy to clipboard operation
xenko copied to clipboard

Script files created in Visual Studio are overwritten with blank file.

Open chrisjbampton opened this issue 6 years ago • 1 comments

Steps to reproduce:

  • Create a new project
  • Open project in GameStudio
  • Load Visual Studio through 'Open in IDE' button
  • Create a new class in VS (File -> New -> Class)
  • File is added to solution in VS
  • Make changes to file in Visual Studio, save changes
  • Go back into GameStudio - it shows the message ‘Some game code files have been modified. Do you want to reload the assemblies?’
  • Click 'Reload'
  • New script shows up in Asset View
  • Opening the script shows the script is empty (source file in filesystem has NOT been overwritten with empty file)
  • The editor then detects another change, and after clicking ‘Reload’ again, it overwrites the file on the filesystem with a blank file and it refuses to show the code editor for ANY code files until you close and reload GameStudio.

Versions: Xenko Game Studio 2.1.2.1 Visual Studio 2017 15.6.0

chrisjbampton avatar Apr 16 '18 14:04 chrisjbampton

this seems to be a visual studio issue. not much game studio can do about that, except changing the visual studio extension, so that it always saves the project and solution file when anything changes in the project structure. as describe here: https://forums.xenko.com/t/editor-overwriting-visual-studio-script-files/1431

tebjan avatar Apr 16 '18 15:04 tebjan