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. Clean Solution

Clean Solution

Scheduled Pinned Locked Moved C#
csharpquestionvisual-studio
4 Posts 3 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.
  • R Offline
    R Offline
    Reza Shojaee
    wrote on last edited by
    #1

    Hi My Friends, In the Microsoft Visual Studio .Net sometimes when you change your source code and run your project the changes not effect. In this cases you should from the Build menu select Clean Solution and run again. My question is : 1. Why ? 2. How can prevent from this action ? Best Regards, Reza Shojaee

    C U 2 Replies Last reply
    0
    • R Reza Shojaee

      Hi My Friends, In the Microsoft Visual Studio .Net sometimes when you change your source code and run your project the changes not effect. In this cases you should from the Build menu select Clean Solution and run again. My question is : 1. Why ? 2. How can prevent from this action ? Best Regards, Reza Shojaee

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      1 - I've never seen this happen to a C# solution, but the main reason is that the compiler tries to be intelligent and only build what has changed. If it gets confused, it may not build your code, saw this in VC6 all the time 2 - you can't, if you could, then why would you need the option in the first place.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      R 1 Reply Last reply
      0
      • C Christian Graus

        1 - I've never seen this happen to a C# solution, but the main reason is that the compiler tries to be intelligent and only build what has changed. If it gets confused, it may not build your code, saw this in VC6 all the time 2 - you can't, if you could, then why would you need the option in the first place.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        R Offline
        R Offline
        Reza Shojaee
        wrote on last edited by
        #3

        Thank you I use C# 2005 and sometimes haven't this problem but sometimes have problem, I think perhaps one option exists that prevent intelligent compiling, and I search for this option. Best Regards, Reza Shojaee

        1 Reply Last reply
        0
        • R Reza Shojaee

          Hi My Friends, In the Microsoft Visual Studio .Net sometimes when you change your source code and run your project the changes not effect. In this cases you should from the Build menu select Clean Solution and run again. My question is : 1. Why ? 2. How can prevent from this action ? Best Regards, Reza Shojaee

          U Offline
          U Offline
          Urs Enzler
          wrote on last edited by
          #4

          Do you use project or file references for your projects in your solution to reference each other? Project references are preferable. Just a guess though :)

          -^-^-^-^-^-^-^- no risk no funk

          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