PC Review


Reply
Thread Tools Rate Thread

Dll reference in Web Application Projects

 
 
drop
Guest
Posts: n/a
 
      26th Sep 2007
Hi all,

I'm trying to figure out how references works in Web Application
Projects. We have a third party dll that we use in many projects. I've
created a folder containing that DLL. That way, when we want to update
the DLL, we simply have to update it in that folder and it should
normally be distributed to all the project that have references to it,
and since it will be in our versioning system, people will simply need
to update to get the new version.

Now, my problem occurs with references in Web Application Projects.
I'm not sure which file I should send to our versioning system so that
the reference will be set correctly for everybody in the Web
Application Projects. Since there is now csproj in WebApplication, I'm
unsure of where the referenc is kept. Would sending the .dll.refresh
file to the versioning system keep the reference ok for everybody or
is it done in another way?

Thank you
Simon Picard

 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      26th Sep 2007
Hi,

reference is kept in the csproj file. E.g it is told that from which
file/project reference is coming. For example

reference to dll

<Reference Include="nStuff.WebDevHelper.Server, Version=0.5.0.0,
Culture=neutral, PublicKeyToken=8fc0e3af5abcb6c4,
processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\nStuff.WebDevHelper.Server.dll</HintPath>
</Reference>

reference to another project:

<ItemGroup>
<ProjectReference Include="..\MyScripts\MyScripts.csproj">
<Project>{0EF0560C-01A0-4229-9CA0-45A7EB1D620B}</Project>
<Name>MyScripts</Name>
</ProjectReference>
</ItemGroup>

Of course, you would want to put the referenced dll itself also into version
system so that when someone gets updated version, he/she also gets the
updated reference dll.


--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"drop" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
>
> I'm trying to figure out how references works in Web Application
> Projects. We have a third party dll that we use in many projects. I've
> created a folder containing that DLL. That way, when we want to update
> the DLL, we simply have to update it in that folder and it should
> normally be distributed to all the project that have references to it,
> and since it will be in our versioning system, people will simply need
> to update to get the new version.
>
> Now, my problem occurs with references in Web Application Projects.
> I'm not sure which file I should send to our versioning system so that
> the reference will be set correctly for everybody in the Web
> Application Projects. Since there is now csproj in WebApplication, I'm
> unsure of where the referenc is kept. Would sending the .dll.refresh
> file to the versioning system keep the reference ok for everybody or
> is it done in another way?
>
> Thank you
> Simon Picard
>



 
Reply With Quote
 
drop
Guest
Posts: n/a
 
      26th Sep 2007
Thanks for the tip Teepu but my problem is exactly the fact that I
don't have a csproj file. I'm in a Web Application project which has
no csproj file. I would be really happy if I had a csproj, it would be
much easier.

Simon Picard

 
Reply With Quote
 
Teemu Keiski
Guest
Posts: n/a
 
      26th Sep 2007
Web Application Project is officially the project model with project file.
The other one without - which was default and only one in VS2005 for a
while - is a web site project. :-)

Web Site Project is self-contained (no project files), so all you have on
the site should be enough to keep it up-to-date. E.g including the
referenced dll.

Visual Studio 2005 Web Application Projects
http://msdn2.microsoft.com/en-us/asp.net/Aa336618.aspx

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"drop" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for the tip Teepu but my problem is exactly the fact that I
> don't have a csproj file. I'm in a Web Application project which has
> no csproj file. I would be really happy if I had a csproj, it would be
> much easier.
>
> Simon Picard
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Reference Personal.xlsb in other projects... DaveD Microsoft Excel Programming 4 28th Sep 2009 03:05 PM
Can forms in different projects reference one another? MikeB Microsoft VB .NET 7 26th Sep 2006 06:41 PM
Using DLL reference in other projects same solution Divyesh Microsoft Dot NET 1 21st Sep 2006 02:17 PM
Remove Reference from VBA Projects =?Utf-8?B?c2FsdXQ=?= Microsoft Excel Programming 3 7th Aug 2006 07:04 PM
Web application projects vs. Web site projects mark.norgate@gmail.com Microsoft ASP .NET 0 31st Jul 2006 03:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:37 PM.