Versions des environnements
Network:
Windows 2008 Server
>>>Hi,
>>>
>>>In my ASPX and CS files I have a lot of commented C# or HTML code or JS scripts, etc. I want to clean up these files, remove the commented code. And I want all of the commented code to be in one document/file where I can put some Tags and Names so that I can find them, if necessary. What type of file can I create in VS 2013 where I can store all these code, without changing much the format. And, of course, the compiler and the builder should ignore this file.
>>>What do you suggest?
>>>TIA
>>
>>You could keep them in the same type of file (ie. .cs, .js etc) so they can be viewed using the relevant editor. Just mark them 'Exclude from Project' (right-click sub-menu) and set 'Build Action' to none in properties. I usually add a 'Docs' folder to the solution or project for these items)
>First, thank you. So you are suggesting to have a document for each type of file (.cs, js, aspx) instead of keeping them all in one file, right?
Up to you. You could just bundle them all into a normal text file. But I find it easier to read them if the can be opened using the relevant editor by default - and if they are tucked away inside a separate folder/s you're not likely to confuse them with production stuff.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement