Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 C# files without .cs extensions
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jlyonsmith
New Member

9 Posts

Posted - Oct 04 2004 :  10:40:16 AM  Show Profile
I noticed that you don't correctly recognize C# code in the editor if the file does not have a .cs extension. When I edit C# script files (http://lyon-smith.org/downloads.aspx) with a .csx extension, they are not recognized as such. This means things like templates don't work properly. This is despite the fact that I have added the correct GUID's to VS .NET, as follows:

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.0\\Languages\\File Extensions\\.csx]
@="{694DD9B6-B865-4C5B-AD85-86356E9C88DC}"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.0Exp\\Languages\\File Extensions\\.csx]
@="{694DD9B6-B865-4C5B-AD85-86356E9C88DC}"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.1\\Languages\\File Extensions\\.csx]
@="{694DD9B6-B865-4C5B-AD85-86356E9C88DC}"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.1Exp\\Languages\\File Extensions\\.csx]
@="{694DD9B6-B865-4C5B-AD85-86356E9C88DC}"

You should really use the GUID from VS .NET to recognize the file type, not the extension.

support
Whole Tomato Software

5566 Posts

Posted - Oct 04 2004 :  5:06:29 PM  Show Profile
".csx" files will work in build 1273.

You can set the following registries to make it work in in the current version.

[HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet]
"ExtCS"=".cs;.csx;"

[HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet7.0]
"ExtCS"=".cs;.csx;"



Edited by - support on Oct 04 2004 8:10:35 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000