General information
Category:
Coding, syntax and commands
>>>To All:
>>>
>>>I often see complete, self-contained code samples on the Internet for C# .NET programs. What type of Project/File do I have to create within VS to be able to copy/paste/compile/run these code samples?
>>>
>>>It seems the projects and files I can create are too specific for my needs. I just want something like a generic code container, such as the PRG file in FoxPro.
>>>
>>>Thanks for your help,
>>
>>If they're just .cs files that can be run by themselves, then don't use VS to play with them. Get a text editor and do the compiles by command line. I also find that projects are overkill for some testing. In those sorts of situations, I use UltraEdit and I compile and run .cs files using macros. Works very nicely.
>
>Alan,
>
>I tried copying/pasting code examples into VS C# class files so I could see the syntax coloring and use intellisense. The examples run fine, and I can add code and re-compile, etc., but I'm having some problem getting intelliense to work.
>
>Do you have to create a solution or project in order to hook up intellisense? I don't want all the overhead if I can help it.
I'm pretty sure that to get intellisense working, you need to add the necessary references, and in order to do that, you need a project.
>
>Thanks,
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only