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 can I tell the difference between source and published .NET code?

How can I tell the difference between source and published .NET code?

Scheduled Pinned Locked Moved C#
questioncsharpsysadminxmlcareer
6 Posts 5 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.
  • X Offline
    X Offline
    Xarzu
    wrote on last edited by
    #1

    How can I tell the difference between source and published .NET code? I am looking at some inherited code that I have not touched in about a year. The original designer had me first publish locally before uploading the published code to the internet server. Now I am looking a number of backed up source folders as well bas backed up published folders. I should have done a better job at naming the folders, I guess. Now I wonder: How can I tell the difference between source and published .NET code? Is there some easy way to see if some folder that contains only published code is lacking a file or xml setting? Is the .csproj file or the .sln file part of the code pushed to the server when you publish?

    L J 2 Replies Last reply
    0
    • X Xarzu

      How can I tell the difference between source and published .NET code? I am looking at some inherited code that I have not touched in about a year. The original designer had me first publish locally before uploading the published code to the internet server. Now I am looking a number of backed up source folders as well bas backed up published folders. I should have done a better job at naming the folders, I guess. Now I wonder: How can I tell the difference between source and published .NET code? Is there some easy way to see if some folder that contains only published code is lacking a file or xml setting? Is the .csproj file or the .sln file part of the code pushed to the server when you publish?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Published code contains only the files needed for the app to run and it does not contain .csproj or .sln files.

      B 1 Reply Last reply
      0
      • L Lost User

        Published code contains only the files needed for the app to run and it does not contain .csproj or .sln files.

        B Offline
        B Offline
        Bernhard Hiller
        wrote on last edited by
        #3

        Hm... Normally, the web server won't throw an exception if csproj and sln files are deployed also...

        OriginalGriffO L 2 Replies Last reply
        0
        • B Bernhard Hiller

          Hm... Normally, the web server won't throw an exception if csproj and sln files are deployed also...

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          Well, no - but it's not automatic. (And I'd rather not do it, it's untidy and prone to error) I'd probably include a version number and a build timestamp, as I do in my non-website code.

          Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          1 Reply Last reply
          0
          • B Bernhard Hiller

            Hm... Normally, the web server won't throw an exception if csproj and sln files are deployed also...

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Yes, it wouldn't. I meant to say that when you publish your code using Visual Studio, it doesn't copy the .csproj and .sln files.

            1 Reply Last reply
            0
            • X Xarzu

              How can I tell the difference between source and published .NET code? I am looking at some inherited code that I have not touched in about a year. The original designer had me first publish locally before uploading the published code to the internet server. Now I am looking a number of backed up source folders as well bas backed up published folders. I should have done a better job at naming the folders, I guess. Now I wonder: How can I tell the difference between source and published .NET code? Is there some easy way to see if some folder that contains only published code is lacking a file or xml setting? Is the .csproj file or the .sln file part of the code pushed to the server when you publish?

              J Offline
              J Offline
              jschell
              wrote on last edited by
              #6

              Xarzu wrote:

              Is the .csproj file or the .sln file part of the code pushed to the server when you publish?

              When I deliver something to production it is - In source control - Labeled in source control - Built from source control - Delivered from that build Other than that I either keep track of the label that went to production and when. Or I specifically re-label using a build version number with a label that indicates a production delivery.

              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