473,509 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS2005 Web Project - No DLL for Nunit

Hi,

Creating a new website and building, there's no DLL. Apparently it
builds it on first request and sticks it in some temp cache somewhere.
That's all fine and dandy, except how do I reference my web project
from my test project if there's no DLL to reference?

I found the Web Application Project Template download from MS so that I
can create traditional VS2003 style projects, and this solves the
problem because I have a DLL.
But MS seems to plug this project template ONLY for converting 2003
projects to 2005.
They make no mention of testing.

So this makes me think that I've missed something?
I'd rather develop my website projects using the default VS2005 web
project rather than the new one I downloaded, because thats how MS
wants me to develop (I'm very impressionable). So how do I get a
seperate test project to test my web project classes?
(WITHOUT having to move those classes into a seperate assembly).

Many thanks in advance,
Steven Nagy

Sep 8 '06 #1
8 3343
"Steven Nagy" <le*********@hotmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Hi,

Creating a new website and building, there's no DLL. Apparently it
builds it on first request and sticks it in some temp cache somewhere.
That's all fine and dandy, except how do I reference my web project
from my test project if there's no DLL to reference?

I found the Web Application Project Template download from MS so that I
can create traditional VS2003 style projects, and this solves the
problem because I have a DLL.
But MS seems to plug this project template ONLY for converting 2003
projects to 2005.
They make no mention of testing.

So this makes me think that I've missed something?
I'd rather develop my website projects using the default VS2005 web
project rather than the new one I downloaded, because thats how MS
wants me to develop (I'm very impressionable). So how do I get a
seperate test project to test my web project classes?
(WITHOUT having to move those classes into a seperate assembly).
Can't you use a "reference to project" instead of "reference to DLL"?...
that way it follows the project output, whether it's debug/release, etc.
>
Many thanks in advance,
Steven Nagy

Sep 8 '06 #2
No it doesn't even see the project under the project references.
And I'm assuming this is because the DLL doesn't exist for the web
project.
Does it work for you in VS2005, new web site?

Sep 8 '06 #3
The dll's are created when you publish your site

"Steven Nagy" <le*********@hotmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Hi,

Creating a new website and building, there's no DLL. Apparently it
builds it on first request and sticks it in some temp cache somewhere.
That's all fine and dandy, except how do I reference my web project
from my test project if there's no DLL to reference?

I found the Web Application Project Template download from MS so that I
can create traditional VS2003 style projects, and this solves the
problem because I have a DLL.
But MS seems to plug this project template ONLY for converting 2003
projects to 2005.
They make no mention of testing.

So this makes me think that I've missed something?
I'd rather develop my website projects using the default VS2005 web
project rather than the new one I downloaded, because thats how MS
wants me to develop (I'm very impressionable). So how do I get a
seperate test project to test my web project classes?
(WITHOUT having to move those classes into a seperate assembly).

Many thanks in advance,
Steven Nagy

Sep 10 '06 #4
Ok thats cool, so how do I do testing then?
Its too late once I've published the site.

Sep 10 '06 #5

"Steven Nagy" <le*********@hotmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
No it doesn't even see the project under the project references.
And I'm assuming this is because the DLL doesn't exist for the web
project.
Does it work for you in VS2005, new web site?
Nope, you're right, the web project can't be referenced. Can you explain
your rationale for not putting your testable classes in a reusable assembly?
Sep 11 '06 #6
Nope, you're right, the web project can't be referenced. Can you explain
your rationale for not putting your testable classes in a reusable assembly?
But thats just it... I _am_ putting my test cases in a seperate
assembly.
But this seperate assembly is in a seperate project, so essentially I
have 2 projects:

MySite.Web
MySite.Tests

But I can't reference MySite.Web from within MySite.Tests without
adding a reference.

Unless you ment something different, in which case I'm sorry for
misunderstanding the question.

Sep 11 '06 #7

"Steven Nagy" <le*********@hotmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
>
>Nope, you're right, the web project can't be referenced. Can you explain
your rationale for not putting your testable classes in a reusable
assembly?

But thats just it... I _am_ putting my test cases in a seperate
assembly.
But this seperate assembly is in a seperate project, so essentially I
have 2 projects:

MySite.Web
MySite.Tests

But I can't reference MySite.Web from within MySite.Tests without
adding a reference.

Unless you ment something different, in which case I'm sorry for
misunderstanding the question.
No need to be sorry, but I asked why the testable classes, not the tests,
couldn't go into a new project.

So you'd have something like:

MyLogic
MyLogic.Tests
MySite

where MyLogic is referenced by both MySite and MyLogic.Tests

I know you already said you didn't want that, but I was trying to find out
why, because maybe there's another way to get the behavior you want.
Sep 12 '06 #8
Ah ok I see what you are saying.

Yes there are a number of work arounds, and I have already continued on
with the project with one such work around. I was just more interested
in the design reason for the lack of availability of the assembly for
testing; the 'why' of it all, and if there is a way to do it against
the web site classes, rather than the way you suggested, or resorting
to the web application templates you can download from Microsoft.

Cheers,
SN

Sep 12 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1218
by: Jianwei Sun | last post by:
Hi, Dear gurus, I started to write a test project in VS 2005. I created a blank test project generated by wizard. Every time, when I start the project, the result is "Aborted", and the...
5
1675
by: Marco Zapletal | last post by:
hi group, i am facing the following problem: i have a vs.net (c#) project, which compiles into a class library. now i wrote a kind of testcase (with a main method()) which i want to execute...
5
1980
by: GaryDean | last post by:
(my original post was inaccurate but this post accurately describes what I think is a very bad vs2005 bug) short description... Deleting a dataset and recreating it from the dataadapter causes...
20
1981
by: Parag | last post by:
Hi, I am trying to figure out best testing tool for my project. I have narrowed down my requirements to two tools NUNIT and VSTS unit. But I have used neither and I have to use only one of them....
15
4191
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers...
0
263
by: Steven Nagy | last post by:
Hi, Creating a new website and building, there's no DLL. Apparently it builds it on first request and sticks it in some temp cache somewhere. That's all fine and dandy, except how do I reference...
0
1181
by: intrader | last post by:
There are two solution files: one with the ValidationLibrary and another one with a NUnit test project ValidatorTests. When I click on the .sln files wizard pops up that results in a Conversion...
9
1106
by: Andy B | last post by:
I have an object i want to test before putting into real code. How do i do that in vs 2005 standard?
0
912
by: mohammadhosny | last post by:
The solution of the NUNIT that uploaded on source forge I can't run it There is an one warrning only it is Warning 1 The parent file, 'Results.xsd', for file 'bin\Debug2005\Results.xsx' cannot...
0
7233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7410
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.