Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Accessing .csproj file for web project

Reply
Thread Tools

Accessing .csproj file for web project

 
 
Joel
Guest
Posts: n/a
 
      04-05-2005
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>


 
Reply With Quote
 
 
 
 
Joe Kaplan \(MVP - ADSI\)
Guest
Posts: n/a
 
      04-06-2005
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" <(E-Mail Removed)> wrote in message
news:uJ$(E-Mail Removed)...
> 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>
>



 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      04-06-2005
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)" <(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:uJ$(E-Mail Removed)...
>> 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>
>>

>
>



 
Reply With Quote
 
Joe Kaplan \(MVP - ADSI\)
Guest
Posts: n/a
 
      04-06-2005
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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)" <(E-Mail Removed)> wrote
> in message news:(E-Mail Removed)...
>> 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" <(E-Mail Removed)> wrote in message
>> news:uJ$(E-Mail Removed)...
>>> 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>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting VS 2005 Web Site Project to VS 2005 Web Application Project ITistic ASP .Net 2 08-21-2007 08:56 PM
compile errors when converting web site project to web application project John Dalberg ASP .Net 1 03-28-2007 12:54 AM
Converting VS.NET 2003 web project to VS.NET 2005 web project =?Utf-8?B?anJldHQ=?= ASP .Net 1 09-26-2006 09:56 AM
Web Site Project vs Web Application Project Ethan V ASP .Net 2 06-25-2006 04:10 PM
Add C# web project to VB Web project Brad ASP .Net 2 04-01-2004 02:05 PM



Advertisments