Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to search string in different file and comment it [modified]

how to search string in different file and comment it [modified]

Scheduled Pinned Locked Moved C#
questionhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Situ14
    wrote on last edited by
    #1

    Hello I have to search a string "AssemblyVersion" and if i get this string i have to comment it, and also add comment in front of this string , if this string is already commented then it will not comment again... I have to search this string in Assemblyinfo.cs file and this file is in different project. How do i Solve this problem? If anyone know that how to search the string and comment it then plz tell me as soon as Thanks in Advance.. -- modified at 0:30 Thursday 30th August, 2007

    W 1 Reply Last reply
    0
    • S Situ14

      Hello I have to search a string "AssemblyVersion" and if i get this string i have to comment it, and also add comment in front of this string , if this string is already commented then it will not comment again... I have to search this string in Assemblyinfo.cs file and this file is in different project. How do i Solve this problem? If anyone know that how to search the string and comment it then plz tell me as soon as Thanks in Advance.. -- modified at 0:30 Thursday 30th August, 2007

      W Offline
      W Offline
      WhiteGirl23
      wrote on last edited by
      #2

      Hi, Open the file usual but give right the path and search with regex. hope this help.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups