Skip to content
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.

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

Open
chrisjbampton opened this issue Apr 16, 2018 · 1 comment

Comments

@chrisjbampton
Copy link

chrisjbampton commented Apr 16, 2018

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

@tebjan
Copy link

tebjan commented Apr 16, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants