Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VS 2013 Document to store old code
Message
De
01/04/2015 10:24:12
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Versions des environnements
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01617605
Message ID:
01617615
Vues:
22
>>>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
Fil
Voir

Click here to load this message in the networking platform