How to associate .cs files to Torsion and not C sharp
by Stanley D Chatman · in Torsion · 01/30/2008 (9:11 am) · 11 replies
I have been doing C# development in SilverLight and installed Visual Studio 2008. Is there a way to associate the .cs files in specific directory to use Torsion while other files not in the directory should use Visual Studio. It's not a huge deal but just annoying to be using Torsion and have the icons show as green c# icons.
#2
01/30/2008 (2:00 pm)
One way is to change the file extension for torquescript to .ts, it solved our problem. You need access to the source, but is a very simple change
#4
01/30/2008 (4:17 pm)
Just curious, does anyone know why it is .cs? it seems .ts would make better sense IMHO :)
#5
01/30/2008 (4:23 pm)
The name Torque on the engine cames much later than the script language birth if I remember well. I dont know even if the engine had a name at that time, but for sure .ts didnt make sense!
#6
@Dave D - Using .ts isn't a bad idea.... as from what i can tell its not a very common extension. I'll make sure that makes it into Torque 2 for sure.
01/30/2008 (9:40 pm)
@Stanley - Torsion tries to register itself for .cs if it isn't already assigned to something like C#. There is just not much i can do it C# is installed.@Dave D - Using .ts isn't a bad idea.... as from what i can tell its not a very common extension. I'll make sure that makes it into Torque 2 for sure.
#7
01/31/2008 (6:11 am)
I am not near my dev machine now, but just do a search for .cs in the source. If I remember right, there was only 4 or 5 places. Keep in mind you will have to change .cs in all of your scripts too.
#8
01/31/2008 (8:14 pm)
Quote:Just curious, does anyone know why it is .cs?@Stanley - I think it means Compiled Script, though I am not really sure.
#9
02/01/2008 (9:21 am)
Isn't the .dso the compiled script?
#10
CS was the old shorthand for C-Script most likely.
A widely varying class of scripting languages with "c like" syntax.
02/01/2008 (11:57 am)
RightCS was the old shorthand for C-Script most likely.
A widely varying class of scripting languages with "c like" syntax.
#11
02/07/2008 (2:19 pm)
I believe, it stands for Console Script. (There's references to console scripts, console functions, etc in the source and docs.)
Torque Owner Andrew Edmonds
EiKON Games