VS2005 and web projects
Moderator: SourceGear
-
- Posts: 9
- Joined: Mon Feb 06, 2006 3:57 pm
VS2005 and web projects
Hello All,
I am new here so be gentle. I am using VS2005 and Vault 3.1.7 (build 3719)
I created and web project and added it to source control with no issues. However, when I try to open a project from source contril another pc running vs2005 w/Vault client I get the following error.
"There are no solution or project files in this location. Please select a different location."
Now I think this has to do with how the project is being created and then stored in the repository...but what doesn't make sense is that I can double-click on the solution file and it makes me login to the vault and I can then get the latest versions....so it works that way but not the other. I am very confused.
I don't want to have to abandon the web project format MS is using (I read Scottgus article).
Thanks in advance
Bob
I am new here so be gentle. I am using VS2005 and Vault 3.1.7 (build 3719)
I created and web project and added it to source control with no issues. However, when I try to open a project from source contril another pc running vs2005 w/Vault client I get the following error.
"There are no solution or project files in this location. Please select a different location."
Now I think this has to do with how the project is being created and then stored in the repository...but what doesn't make sense is that I can double-click on the solution file and it makes me login to the vault and I can then get the latest versions....so it works that way but not the other. I am very confused.
I don't want to have to abandon the web project format MS is using (I read Scottgus article).
Thanks in advance
Bob
Can you be more specific on the steps you are taking, and when you are seeing the error?
In general, the first time you use a solution on a machine, you should do a Source Control->Open From Source Control from within VS, then go to the solution location in Vault. After that, you shouldn't use Open From Source Control, but just the regular open solution.
If there is no solution or project file in the folder you are trying to open, then you would get that message.
In general, the first time you use a solution on a machine, you should do a Source Control->Open From Source Control from within VS, then go to the solution location in Vault. After that, you shouldn't use Open From Source Control, but just the regular open solution.
If there is no solution or project file in the folder you are trying to open, then you would get that message.
-
- Posts: 9
- Joined: Mon Feb 06, 2006 3:57 pm
Dan....here's what I did:
1) Created and new web project in VS2005 (with one default.aspx and nothing else)
2) Added a VB class to the project, which it prompted and asked if OK to store in the App_code folder....I said "sure". A new app_code folder appeared under my project with the new class
3) I right clicked the project and said add to source control.
4) Everything when up OK.
Next:
1) I when to another machine running vs2005 (although you could use the same PC) and openned vs2005.
2) I tried to open from source control and the I saw a top level project folder, with 2 subfolders: one where my solution file is and the other contains (I think) the app_code folder with the classes. Why it does this separation, I do not know.
3) If I click on the sub folder that contains my sol file, It creates the project OK, but doesn't load the app_code direc and class.
4) If I clcik the folder that just contains the app_code folder, I get the error I mentioned (I guess cause no solution or project file exists)
Should I not store anything in the app_code folder?
Hope this helps clarigy
Bob
1) Created and new web project in VS2005 (with one default.aspx and nothing else)
2) Added a VB class to the project, which it prompted and asked if OK to store in the App_code folder....I said "sure". A new app_code folder appeared under my project with the new class
3) I right clicked the project and said add to source control.
4) Everything when up OK.
Next:
1) I when to another machine running vs2005 (although you could use the same PC) and openned vs2005.
2) I tried to open from source control and the I saw a top level project folder, with 2 subfolders: one where my solution file is and the other contains (I think) the app_code folder with the classes. Why it does this separation, I do not know.
3) If I click on the sub folder that contains my sol file, It creates the project OK, but doesn't load the app_code direc and class.
4) If I clcik the folder that just contains the app_code folder, I get the error I mentioned (I guess cause no solution or project file exists)
Should I not store anything in the app_code folder?
Hope this helps clarigy
Bob
OK, I see. Yes, the problem is that now that web apps no longer have project files (in VS 2005), there is no way to open them via source control, because it requires a solution or project file to open from SCC.
I am honestly not sure how MS recommends handling this in the new 2005 format. Perhaps a solution wrapper around the web project? I'll need to dig around to find the "right" answer, but in the meantime if anyone else out there knows more about this, please chime in.
I am honestly not sure how MS recommends handling this in the new 2005 format. Perhaps a solution wrapper around the web project? I'll need to dig around to find the "right" answer, but in the meantime if anyone else out there knows more about this, please chime in.
I searched MS's site for more info on how to handle a single web project with source control, and couldn't find anything definitive. There is a doc that explains why they've changed it so much here: http://msdn.microsoft.com/library/defau ... rojSys.asp
The only way I've found to get around this is to put the web project under a solution, and then add the solution to source control. Then opening the solution from another machine will also open the web project, and you should be good to go.
The only way I've found to get around this is to put the web project under a solution, and then add the solution to source control. Then opening the solution from another machine will also open the web project, and you should be good to go.
-
- Posts: 9
- Joined: Mon Feb 06, 2006 3:57 pm
VS2005 seems not to like to expose the solution file as much as VS2003. You might need to create a new non-website project with a solution in a different folder, then add the web site project to it. That, or add a new project (like a class lib) to the existing web site project, which will create the solution file. However, I noticed that in this case, the solution file is created in Docs & Settings, not near where the other projects are created, and this causes problems when adding to source control, because it wants to add it from a common root to all projects.
Once you have a solution file, right clicking and adding to source control should work fine.
Once you have a solution file, right clicking and adding to source control should work fine.
-
- Posts: 9
- Joined: Mon Feb 06, 2006 3:57 pm
-
- Posts: 9
- Joined: Mon Feb 06, 2006 3:57 pm
Bob,
Per our earlier conversation, I wanted to forward you a Microsoft link that describes how to open a web project from source control:
http://msdn2.microsoft.com/en-us/library/b9zzhatx.aspx
We have tested this scenario and have successfully opened web projects using the above steps.
Please let me know if you still have the problem.
Thanks,
Tonya Nunn
SourceGear
217-356-0105 ext. 680
Per our earlier conversation, I wanted to forward you a Microsoft link that describes how to open a web project from source control:
http://msdn2.microsoft.com/en-us/library/b9zzhatx.aspx
We have tested this scenario and have successfully opened web projects using the above steps.
Please let me know if you still have the problem.
Thanks,
Tonya Nunn
SourceGear
217-356-0105 ext. 680
-
- Posts: 9
- Joined: Mon Feb 06, 2006 3:57 pm
-
- Posts: 9
- Joined: Mon Feb 06, 2006 3:57 pm
Dan/Tonya...
If I add another project to a solution containing a single web project my other developers don't see if they refresh their solutions. I have already added the new project to source control via the file menu. And if I ask them to do a get latest version on the solution, they don't see it.
Do they need to add the project to the solution manually, using add project to solution from the file menu? Or is there a way to do it more "automatic"
Thanks
-Bob
If I add another project to a solution containing a single web project my other developers don't see if they refresh their solutions. I have already added the new project to source control via the file menu. And if I ask them to do a get latest version on the solution, they don't see it.
Do they need to add the project to the solution manually, using add project to solution from the file menu? Or is there a way to do it more "automatic"
Thanks
-Bob
I have spent a lot of time trying to find a resolution without much of one. This problem is also reproduceable in Visual SourceSafe, so it appears to be a problem within Visual Studio 2005. Researching into how web projects now function within 2005 is much different then VS.Net 2003. Web projects have no actual project files as Dan noted above and appears to be causing issues.
My suggestion is to contact Microsoft in regards to this issue. Please keep me posted and let me know how they respond.
Thanks,
Tonya
My suggestion is to contact Microsoft in regards to this issue. Please keep me posted and let me know how they respond.
Thanks,
Tonya
-
- Posts: 9
- Joined: Mon Feb 06, 2006 3:57 pm
Tonya....I figured out a work around.
1) NEVER create a web project first.
2) Always create some other form of project like a class lib and make sure you indicate that you want a solution create.
3) Once you have created the class lib project within a solution, you can add a web project to the solution. It works great after that. You can add new projects of any type to the solution and the rest of the team will see them with a get all recursive and a refresh.
Oh, did I mention, NEVER create a web project first!
Thanks again,
Bob
1) NEVER create a web project first.
2) Always create some other form of project like a class lib and make sure you indicate that you want a solution create.
3) Once you have created the class lib project within a solution, you can add a web project to the solution. It works great after that. You can add new projects of any type to the solution and the rest of the team will see them with a get all recursive and a refresh.
Oh, did I mention, NEVER create a web project first!
Thanks again,
Bob