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. Visual Basic
  4. This File has been modified outside the source editor.

This File has been modified outside the source editor.

Scheduled Pinned Locked Moved Visual Basic
questioncsharp
7 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.
  • Q Offline
    Q Offline
    QuickBooksDev
    wrote on last edited by
    #1

    We have 2 VB.Net 2008 programs. They are not 'related'. They are in separate folders. If I change a module in 1 via VisStudio and save it, then the other gets This File has been modified outside the source editor. The module is NOT in the Solutions Explorer of the 'victum' program. It happens on more than 1 module and both ways but it does not seem to be for all modules. How can I stop this form happening???

    L 1 Reply Last reply
    0
    • Q QuickBooksDev

      We have 2 VB.Net 2008 programs. They are not 'related'. They are in separate folders. If I change a module in 1 via VisStudio and save it, then the other gets This File has been modified outside the source editor. The module is NOT in the Solutions Explorer of the 'victum' program. It happens on more than 1 module and both ways but it does not seem to be for all modules. How can I stop this form happening???

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

      QuickBooksDev wrote:

      The module is NOT in the Solutions Explorer of the 'victum' program.

      Close Visual Studio. Start Notepad and open the module. Add the text "Hello world". Open solution A in Visual Studio. See if it contains the text "Hello world". Do the same for solution B. Chances are, the text will appear in both solutions. Correct?

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

      Q 1 Reply Last reply
      0
      • L Lost User

        QuickBooksDev wrote:

        The module is NOT in the Solutions Explorer of the 'victum' program.

        Close Visual Studio. Start Notepad and open the module. Add the text "Hello world". Open solution A in Visual Studio. See if it contains the text "Hello world". Do the same for solution B. Chances are, the text will appear in both solutions. Correct?

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

        Q Offline
        Q Offline
        QuickBooksDev
        wrote on last edited by
        #3

        I see what you mean. The modules are there but not in the solution explorer. So I should be able to just x out of the 'misplaced' modules and that should do it. Amazing that these modules do not show up even when you show all files. Or am I missing something. THanks

        L 1 Reply Last reply
        0
        • Q QuickBooksDev

          I see what you mean. The modules are there but not in the solution explorer. So I should be able to just x out of the 'misplaced' modules and that should do it. Amazing that these modules do not show up even when you show all files. Or am I missing something. THanks

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

          QuickBooksDev wrote:

          I see what you mean. The modules are there but not in the solution explorer.

          That could happen when the module is in an assembly that's registered in the GAC, taking precedence over another copy. That doesn't explain why the IDE picks the code up as "changed". Open the solution file (.sln, in the root of the project-directory) in notepad, and verify that it ain't the same files. Now and then I make a "link" instead of a copy when adding a file from another project - changing the file in one project would then cause the other IDE to "see" the changes and ask whether it should reload.

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

          Q 1 Reply Last reply
          0
          • L Lost User

            QuickBooksDev wrote:

            I see what you mean. The modules are there but not in the solution explorer.

            That could happen when the module is in an assembly that's registered in the GAC, taking precedence over another copy. That doesn't explain why the IDE picks the code up as "changed". Open the solution file (.sln, in the root of the project-directory) in notepad, and verify that it ain't the same files. Now and then I make a "link" instead of a copy when adding a file from another project - changing the file in one project would then cause the other IDE to "see" the changes and ask whether it should reload.

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

            Q Offline
            Q Offline
            QuickBooksDev
            wrote on last edited by
            #5

            I think it happens if you double click on a file that goes to VisStudio. It adds the file to the solution but does not put it into the solution explorer for some reason. I have looked at the sln in notepad before. I even did a Win 7 search of the folder (but of course the win7 search is not reliable). It was not there. Doing the find on the text then x-ing out of the windows does fix it.

            L 1 Reply Last reply
            0
            • Q QuickBooksDev

              I think it happens if you double click on a file that goes to VisStudio. It adds the file to the solution but does not put it into the solution explorer for some reason. I have looked at the sln in notepad before. I even did a Win 7 search of the folder (but of course the win7 search is not reliable). It was not there. Doing the find on the text then x-ing out of the windows does fix it.

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

              QuickBooksDev wrote:

              I think it happens if you double click on a file that goes to VisStudio. It adds the file to the solution

              Not on my machine; had a solution open, double-clicked on a non-related sourcefile from another project. It opened, could be edited, but was not added to the solution, nor is the filename mentioned in the solution-file.

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

              Q 1 Reply Last reply
              0
              • L Lost User

                QuickBooksDev wrote:

                I think it happens if you double click on a file that goes to VisStudio. It adds the file to the solution

                Not on my machine; had a solution open, double-clicked on a non-related sourcefile from another project. It opened, could be edited, but was not added to the solution, nor is the filename mentioned in the solution-file.

                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

                Q Offline
                Q Offline
                QuickBooksDev
                wrote on last edited by
                #7

                I have seen this before. I have a solution open and I want to view a vb module with notepad but I double click on the modules and it defaults to Vis Studio. That module is not 'in' the solution that I have opened. I have since changed the default program on .vb, etc. to Notepad but this is a 'new' machine and for the first few weeks it was not set. Well I have no other idea how a module not related to a program can get into it, not be in the solution explorer. Anyhow, you have help me solve the problem. Thanks

                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