Accessing .csproj file for web project

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Accessing .csproj file for web project

    I'm posting in security since I'm not sure where else to look.

    I'm writing a command line build tool for csc.exe based on the .sln file.
    Everything is hunky-dory for Windows Apps but for Web Apps, the solution
    file just lists the URL of the .csproj file. I can't get the .csproj file
    with a web call to the URL because .csproj files are handled by
    HttpForbiddenHandler. Visual Studio get the .csproj file (obviously). Does
    anyone know how VS does this? Or some other way to get it?

    TIA
    </joel>


    Joel Guest

  2. Similar Questions and Discussions

    1. Custom Control accessing Project Files
      Hi all, Is it possible for a custom control to see the other files in the project at design time? Thanks Adam
    2. Extension : adding a new file to the project
      Hi, I have compiled my first extension following the instructions here: http://www.php.net/manual/en/zend.php and more specifically using...
    3. Unable to get the project file from Web server
      Hi, I have an ASP.NET application that somebody gave it to me but when I attempt to run it I get the following error in a dialog with a title...
    4. Help. Trying to get Buddy API to open a file in project burnedto CD-ROM
      Anyone have an idea for this. I am working on OS X, Director MX, Buddy API version 1.4 I have built a Mac Classic Application, that at one...
    5. I can't open Visual Basic ASP.NET new project with file share
      Hi, Whan I trying to open a NEW Visual Basic ASP.NET project(I got Windows 2003 server),then I got an error: The default web access for this...
  3. #2

    Default Re: Accessing .csproj file for web project

    The way Nant handles this with its solution task is allows you to configure
    a mapping for the project URL to a local file system path. That seems to
    work very well. The other option they support uses webdav, but that
    requires configuring webdav. I've never actually tried to get that to work
    as the local mapping just seemed easier.

    Out of curiosity, why reinvent the wheel when Nant already supports this
    very well and does a whole lot of other stuff that you might want your build
    to do as well?

    Joe K.

    "Joel" <joelycat@hotmail.com> wrote in message
    news:uJ$CMoeOFHA.2348@tk2msftngp13.phx.gbl...
    > I'm posting in security since I'm not sure where else to look.
    >
    > I'm writing a command line build tool for csc.exe based on the .sln file.
    > Everything is hunky-dory for Windows Apps but for Web Apps, the solution
    > file just lists the URL of the .csproj file. I can't get the .csproj file
    > with a web call to the URL because .csproj files are handled by
    > HttpForbiddenHandler. Visual Studio get the .csproj file (obviously). Does
    > anyone know how VS does this? Or some other way to get it?
    >
    > TIA
    > </joel>
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  4. #3

    Default Re: Accessing .csproj file for web project

    Easy... Nant sucks. :-)

    I used Nant at my last job for about 18 months and hated it more every day.
    In my opinion it makes no sense to learn a cryptic, unreadable, XML schema
    when, in a couple of days, I put together a full-blown, event-driven build
    tool using a language I know and love: C#. The only thing that was hard was
    figuring out how to accurately map the virtual URL to a local physical
    directory. Unfortunately, I beleive the MSBuild utilitity coming in VS2005
    is similiar to Nant so I'll probably be forced to use it. <sigh>


    As to the mapping problem, I got this from another post:

    adsutil.vbs GET w3svc/1/root/iishelp/path

    will return:

    path : (STRING) "c:\windows\help\iishelp"

    So I just modified adsutil.vbs a little and was able to use it to get me
    what I needed.

    Thanks for the response.

    </joel>

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:O6IBEIkOFHA.3376@TK2MSFTNGP09.phx.gbl...
    > The way Nant handles this with its solution task is allows you to
    > configure a mapping for the project URL to a local file system path. That
    > seems to work very well. The other option they support uses webdav, but
    > that requires configuring webdav. I've never actually tried to get that
    > to work as the local mapping just seemed easier.
    >
    > Out of curiosity, why reinvent the wheel when Nant already supports this
    > very well and does a whole lot of other stuff that you might want your
    > build to do as well?
    >
    > Joe K.
    >
    > "Joel" <joelycat@hotmail.com> wrote in message
    > news:uJ$CMoeOFHA.2348@tk2msftngp13.phx.gbl...
    >> I'm posting in security since I'm not sure where else to look.
    >>
    >> I'm writing a command line build tool for csc.exe based on the .sln file.
    >> Everything is hunky-dory for Windows Apps but for Web Apps, the solution
    >> file just lists the URL of the .csproj file. I can't get the .csproj file
    >> with a web call to the URL because .csproj files are handled by
    >> HttpForbiddenHandler. Visual Studio get the .csproj file (obviously).
    >> Does anyone know how VS does this? Or some other way to get it?
    >>
    >> TIA
    >> </joel>
    >>
    >
    >

    Joel Guest

  5. #4

    Default Re: Accessing .csproj file for web project

    You aren't the only one who complains about Nant and all the XML stuff,
    believe me. Lot's of people would rather use C# or Python to scripting out
    the build.

    You should start your own OSS project with this and get some followers to
    help build it out. :)

    Joe K.

    "Joel" <joelycat@hotmail.com> wrote in message
    news:%23nXaNMsOFHA.3808@TK2MSFTNGP14.phx.gbl...
    > Easy... Nant sucks. :-)
    >
    > I used Nant at my last job for about 18 months and hated it more every
    > day. In my opinion it makes no sense to learn a cryptic, unreadable, XML
    > schema when, in a couple of days, I put together a full-blown,
    > event-driven build tool using a language I know and love: C#. The only
    > thing that was hard was figuring out how to accurately map the virtual URL
    > to a local physical directory. Unfortunately, I beleive the MSBuild
    > utilitity coming in VS2005 is similiar to Nant so I'll probably be forced
    > to use it. <sigh>
    >
    >
    > As to the mapping problem, I got this from another post:
    >
    > adsutil.vbs GET w3svc/1/root/iishelp/path
    >
    > will return:
    >
    > path : (STRING) "c:\windows\help\iishelp"
    >
    > So I just modified adsutil.vbs a little and was able to use it to get me
    > what I needed.
    >
    > Thanks for the response.
    >
    > </joel>
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:O6IBEIkOFHA.3376@TK2MSFTNGP09.phx.gbl...
    >> The way Nant handles this with its solution task is allows you to
    >> configure a mapping for the project URL to a local file system path.
    >> That seems to work very well. The other option they support uses webdav,
    >> but that requires configuring webdav. I've never actually tried to get
    >> that to work as the local mapping just seemed easier.
    >>
    >> Out of curiosity, why reinvent the wheel when Nant already supports this
    >> very well and does a whole lot of other stuff that you might want your
    >> build to do as well?
    >>
    >> Joe K.
    >>
    >> "Joel" <joelycat@hotmail.com> wrote in message
    >> news:uJ$CMoeOFHA.2348@tk2msftngp13.phx.gbl...
    >>> I'm posting in security since I'm not sure where else to look.
    >>>
    >>> I'm writing a command line build tool for csc.exe based on the .sln
    >>> file. Everything is hunky-dory for Windows Apps but for Web Apps, the
    >>> solution file just lists the URL of the .csproj file. I can't get the
    >>> .csproj file with a web call to the URL because .csproj files are
    >>> handled by HttpForbiddenHandler. Visual Studio get the .csproj file
    >>> (obviously). Does anyone know how VS does this? Or some other way to get
    >>> it?
    >>>
    >>> TIA
    >>> </joel>
    >>>
    >>
    >>
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139