.NET Forum / Visual Studio.NET / General / March 2008
Why does VS2005 always check-out solution file when opening projec
|
|
Thread rating:  |
Axel Dahmen - 23 Jan 2008 01:30 GMT Hi,
whenever I open our company solution here, Visual Studio 2005 checks out one C# library project file and the solution file. Examining both files after this check-out shows no difference to the checked-in version.
What makes VS always want to check-out these to files? How can I stop if from doing this?
TIA, Axel Dahmen
WenYuan Wang [MSFT] - 23 Jan 2008 10:47 GMT Hello Axel,
According to your description, you found that VS 2005 always check-out the solution file and one C# library project when openning the solution, correct? If I misunderstood anything here, don't hesitate to correct me.
This is not the default behavior in VS 2005. Does this issue only occur on your company project? If you create a new project and add it into SourceSafe DB, does VS still check-out the solution file? If the issue only occurs on your company solution, do your co-works also have this issue?
As far as I know, VS check-out the file on edit automatically. Did you make any change on the project file? By the way, let me know what the current Source Control Environment setting on your VS 2005. Please click Tools|Options|Source Control|Environment, what the current source control environment settings on your side is? If you change the setting to "Visual SourceSafe", does the issue occur again?
Hope this helps. Let me know if this helps, we are glad to assist you.
Have a great day, Best regards.
Wen Yuan Microsoft Online Community Support ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Axel Dahmen - 23 Jan 2008 14:55 GMT Hi WenYuan,
thanks for helping!
Actually on this project we're using Rational ClearCase (7.0.1.0). But I don't believe it's the SCC provider forcing a check-out.
Is it a perhaps problem that we all have our solution files residing at different paths on our hard drives? It shouldn't be, should it?
As I said, neither the checked-out solution file or the checked-out project files' content differs from their previous content when checking the files in again.
We all encounter this problem within this solution. Another solution works flawlessly.
TIA, Axel Dahmen
--------------------
> Hello Axel, > [quoted text clipped - 23 lines] > ================================================== > This posting is provided "AS IS" with no warranties, and confers no rights. WenYuan Wang [MSFT] - 24 Jan 2008 09:46 GMT Hello Axel, Thanks for your reply.
>Is it a perhaps problem that we all have our solution files residing at different paths on our hard drives? >It shouldn't be, should it? That's fine. Files will be downloaded into your local work folder. It doesn't matter if all developers save the solution files in the different paths.
I'm not familiar with Rational ClearCase. I'm not sure if it will modify the solution/project files. But, I believe there is something which edits/saves the files when VS opens the solution.
It's easy to verify this. You can turn off the "automatic check-out" setting, and open the solution again. If the issue is accused by editing/saving, you will receive a check-out dialog.
To turn off the automatic check-out setting, please do the following steps.
1. Click on "Tools"|"Options" menu, and navigate to "Source Control"|"Enviroment"
2. Select "Prompt for check out" for the "On Save" dropdown list. (Thereby, VS will prompt "Check Out for Save" dialog when the file is saving).
3. Select "Prompt for check out" for the "On Edit" dropdown list. (Thereby, VS will prompt "Check Out for Edit" dialog when the file is modified).
4. Click on the "OK" button.
5. Close the solution, and then open it again.
What happens after you open the solution again? Do you get any warning message?
Hope this helps. Let me know if there is anything unclear. We are glad to assist you.
Have a great day, Best regards,
Wen Yuan Microsoft Online Community Support ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Axel Dahmen - 24 Jan 2008 13:31 GMT Hi WenYuan,
I tried what you said, but to no avail. I get the check-out dialog, of course, but it doesn't give any useful information. It just appears a couple of times while opening the solution.
In VS2005 is there any built-in logic to update any solution/project files while opening them? Perhaps you can find out what causes these update requests?
Your help is quite appreciated.
Best regards, Axel Dahmen
--------------------------
> Hello Axel, > Thanks for your reply. [quoted text clipped - 43 lines] > ================================================== > This posting is provided "AS IS" with no warranties, and confers no rights. WenYuan Wang [MSFT] - 25 Jan 2008 11:04 GMT Hello Axel,
This test could help on confirming if modification causes VS IDE to check-outs the file. Now, there is something updates the solution and project file when VS loads project.
As far as I know, VS IDE doesn't update them when loading project. Did you install any 3rd party add-in on VS 2005? I suggest you can disable them (by "Tools|Add-in Manager"). Base on my experience, this is the most common cause.
Hope this helps. Let me know if this helps. We are glad to assist you.
Have a great day, Best regards,
Wen Yuan Microsoft Online Community Support ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Axel Dahmen - 25 Jan 2008 12:28 GMT Hello WenYuan,
all I can see from my Add-ins dialog is the WSE Settings 3.0 add in.
We all have the same installation, which is just VS2005 and ClearCase 7.0.1.0.
We are all local admins.
One of the projects in this solution utililizes Web Services. Some with static, others with dynamic URL Behaviour.
In fact, only this project file and the solution file are checked-out every time we open the solution.
Does this information help you?
TIA, Axel Dahmen
-----------------
> Hello Axel, > [quoted text clipped - 17 lines] > ================================================== > This posting is provided "AS IS" with no warranties, and confers no rights. WenYuan Wang [MSFT] - 28 Jan 2008 11:02 GMT Hello Axel, Thanks for your reply.
Is it possible for you to send me your problematic project? I cannot reproduce it on my side. Because this issue only occurs on this specific project, it is not a system environment issue. If we can get your problematic project and reproduce the issue on our side, this helps on research very much. My email address is v-wywang@microsoft.com
Please feel free to let me know if you have any more concern. It's my pleasure to assist you.
Have a great day, Best regards,
Wen Yuan Microsoft Online Community Support ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 05 Feb 2008 02:23 GMT Hi Axel,
If you add the solution/project in question to a Sourcesafe database, does this issue still occur?
Regards, Walter Wang (wawang@online.microsoft.com, remove 'online.') Microsoft Online Community Support
================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
ILoveQJ - 06 Feb 2008 05:37 GMT We have the similar problem after using WCSF. We found out that it was caused by the following section in the solution file:
GlobalSection(ExtensibilityGlobals) = postSolution RootNamespace = OurSolution.net IsWCSFSolutionWAP = True IsWCSFSolution = True EndGlobalSection
Once we removed this section , the solution loaded without any checkout prompt. But without this section, the WCSF wizard to add Business Module doesn't work. So we add this section back whenever we need to add modules, and remove it after that.
I guess there must be some lines in your solution file cause the checkout prompt.
> Hi, > [quoted text clipped - 7 lines] > TIA, > Axel Dahmen Axel Dahmen - 10 Mar 2008 20:38 GMT Which source control system are you using?
-----------
> We have the similar problem after using WCSF. We found out that it was caused > by the following section in the solution file: [quoted text clipped - 24 lines] > > TIA, > > Axel Dahmen Stuart - 12 Mar 2008 21:14 GMT Hello,
We've had this problem for ages and still can not figure out a pattern for it. This solution was fine until I added the last project in the list. Now when I open the solution it checks out the last project and the solution with no changes to either file.
Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeckmanCoulter.InfWorkshop.Core", "Core\BeckmanCoulter.InfWorkshop.Core.csproj", "{87E83E36-4675-4FDC-A139-FF2890743174}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeckmanCoulter.InfWorkshop.Core.UnitTest", "Core.UnitTest\BeckmanCoulter.InfWorkshop.Core.UnitTest.csproj", "{FADC33FD-BB1E-4B10-B160-CAA0CF26D802}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeckmanCoulter.InfWorkshop.Gui.dll", "Gui\BeckmanCoulter.InfWorkshop.Gui.dll.csproj", "{9AF89305-37EF-400A-9331-308A6138C5D1}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeckmanCoulter.InfWorkshop.exe", "InfWorkshop\BeckmanCoulter.InfWorkshop.exe.csproj", "{E8E423F3-2695-41AB-821A-A551903C0558}" EndProject Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "Installation", "Installation\Installation.vdproj", "{00447D37-10F3-443A-8ADC-0F75332F5962}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InfWorkshopControls", "InfWorkshopControls\InfWorkshopControls.csproj", "{D582E3B7-23CC-42CF-971D-9A486EE0EA34}" EndProject Global GlobalSection(RationalClearCase) = preSolution SourceControlProvider = RationalClearCase EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {87E83E36-4675-4FDC-A139-FF2890743174}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {87E83E36-4675-4FDC-A139-FF2890743174}.Debug|Any CPU.Build.0 = Debug|Any CPU {87E83E36-4675-4FDC-A139-FF2890743174}.Release|Any CPU.ActiveCfg = Release|Any CPU {87E83E36-4675-4FDC-A139-FF2890743174}.Release|Any CPU.Build.0 = Release|Any CPU {FADC33FD-BB1E-4B10-B160-CAA0CF26D802}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FADC33FD-BB1E-4B10-B160-CAA0CF26D802}.Debug|Any CPU.Build.0 = Debug|Any CPU {FADC33FD-BB1E-4B10-B160-CAA0CF26D802}.Release|Any CPU.ActiveCfg = Release|Any CPU {FADC33FD-BB1E-4B10-B160-CAA0CF26D802}.Release|Any CPU.Build.0 = Release|Any CPU {9AF89305-37EF-400A-9331-308A6138C5D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9AF89305-37EF-400A-9331-308A6138C5D1}.Debug|Any CPU.Build.0 = Debug|Any CPU {9AF89305-37EF-400A-9331-308A6138C5D1}.Release|Any CPU.ActiveCfg = Release|Any CPU {9AF89305-37EF-400A-9331-308A6138C5D1}.Release|Any CPU.Build.0 = Release|Any CPU {E8E423F3-2695-41AB-821A-A551903C0558}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E8E423F3-2695-41AB-821A-A551903C0558}.Debug|Any CPU.Build.0 = Debug|Any CPU {E8E423F3-2695-41AB-821A-A551903C0558}.Release|Any CPU.ActiveCfg = Release|Any CPU {E8E423F3-2695-41AB-821A-A551903C0558}.Release|Any CPU.Build.0 = Release|Any CPU {00447D37-10F3-443A-8ADC-0F75332F5962}.Debug|Any CPU.ActiveCfg = Debug {00447D37-10F3-443A-8ADC-0F75332F5962}.Release|Any CPU.ActiveCfg = Release {00447D37-10F3-443A-8ADC-0F75332F5962}.Release|Any CPU.Build.0 = Release {D582E3B7-23CC-42CF-971D-9A486EE0EA34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D582E3B7-23CC-42CF-971D-9A486EE0EA34}.Debug|Any CPU.Build.0 = Debug|Any CPU {D582E3B7-23CC-42CF-971D-9A486EE0EA34}.Release|Any CPU.ActiveCfg = Release|Any CPU {D582E3B7-23CC-42CF-971D-9A486EE0EA34}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal
This solution was created back in 2003 and subsequently upgraded to 2005 and now 2008 with the same behavior (once upgraded to 2005)
Stuart
> Which source control system are you using?
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|