Visual Studio Web Projects and Source Code Repositories



In setting up repositories for use with Visual Studio, I want
developers to be able to work only from within their sandboxes on the
code they checked out from a repository. Everything works except for
web projects. When I open a web project from a sandbox, Visual Studio
reports:

“The project you are trying to open is a Web project. You need to
open it by specifying its URL path”

I don’t want the developer to have to setup IIS on their local machine
to enable the editing of web projects – I want to configure Visual
Studio to directly open and compile web projects as they are only from
a developer’s sandbox. The application’s system dependencies, anyway,
require all the binaries to be copied to a test server for anyone to
be able to run and check their work.

I heard it is possible to bypass IIS by enabling web sharing on a
sandbox’s folder. I did this by clicking properties, selecting Web
Sharing, and chosing “Share this folder” and giving the same alias
name as the virtual folder name IIS uses on the test server.

Despite doing this, I still get the Web Project error. What am I
doing wrong?

Here’s my current configuration of the solution, project, and files in
the sandbox, any help would be much apprecieated:



Sandbox:

G:\MySandBox\MyWebApp.sln
G:\MySandBox\MyWebApp.csproj.webinfo
G:\MySandBox\MyWebApp.csproj
G:\MySandBox\default.aspx
G:\MySandBox\default.aspx.cs
G:\MySandBox\default.aspx.resx
G:\MySandBox\Global.asax
G:\MySandBox\Global.asax.cs
G:\MySandBox\Global.asax.resx



MyWebApp.csproj.webinfo:

<VisualStudioUNCWeb>
<Web URLPath = file:\\MyWebApp.csproj />
</VisualStudioUNCWeb>



MyWebApp.sln:
Microsoft Visual Studio Solution File, Format Version 8.00
Project(“{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}”) = “MyWebApp”,
“MyWebApp.csproj”, “{DB706866-A668-BD49-9501FCC23690}”
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject


Thanks in advance, Andy
.



Relevant Pages

  • Re: 2003 vs 2005B
    ... Microsoft considers that region to be sort of a "sandbox" for code. ... I can assure you that Visual studio 2005 will fix this issue. ... > Yes indeed, *all* of the affected code is in that section, doesn't ... > I don't normally edit that part of the code. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: 2003 vs 2005B
    ... Microsoft considers that region to be sort of a "sandbox" for code. ... I can assure you that Visual studio 2005 will fix this issue. ... > Yes indeed, *all* of the affected code is in that section, doesn't ... > I don't normally edit that part of the code. ...
    (microsoft.public.dotnet.languages.vb)
  • RE: MS Best Practices - .NET development web server
    ... "Web Projects and Source Control Integration in Visual Studio .NET" ... "Team Development with Visual Studio .NET and Visual SourceSafe" ... These articles propose strategies for smoothly developing ASP.NET Web ...
    (microsoft.public.inetserver.asp.general)
  • Visual Studio 2005 IIS Issue
    ... I am using Windows Vista Ultimate and Visual Studio 2005 Team Edition. ... I have pulled down a solution containing several web projects from TFS. ...
    (microsoft.public.dotnet.general)
  • Re: Cleanup in VS2005
    ... only providing a default list of windows projects and not web projects. ...
    (microsoft.public.vsnet.general)