473,667 Members | 2,737 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 3349
"Steven Nagy" <le*********@ho tmail.comwrote in message
news:11******** **************@ m79g2000cwm.goo glegroups.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*********@ho tmail.comwrote in message
news:11******** **************@ m79g2000cwm.goo glegroups.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*********@ho tmail.comwrote in message
news:11******** **************@ m79g2000cwm.goo glegroups.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
misunderstandin g the question.

Sep 11 '06 #7

"Steven Nagy" <le*********@ho tmail.comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.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
misunderstandin g 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
1225
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 information is "No process is associated with this object". I think I may need to attach some external process to the debug process, but does VS2005 comes with such a tool like NUnit GUI or Console.
5
1680
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 (and debug) from vs.net. but i found no possibility how to execute this testcase in my project... any help would be appreciated,
5
1987
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 VS.Net 2005 to render the associated .resx and .vb file inoperative. detail... I converted an asp 1.1 vb.net app using the vs2005 conversion wizard and then retested the app after conversion.
20
2014
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. Hence can someone who has used them before share his/her experience on them so that I can get a better idea and make a proper choice ? Any link or suggestions are also welcome. Thanks and Regards, Parag
15
4217
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 mapped to the local devleopment folder. Project compiles to a subfolder .\bin. To deploy, the asmx page and bin subfolder are copied to the production server. So now I upgrade to VS2005. OK, so except for the name, everything is changed. No more...
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 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.
0
1187
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 Report that says: Solution:ValidatorLibrary ValidatorLibrary.sln Converted ValidatorLibrary.suo (blank status) 2 files Converted 1 Not converted 1'
9
1113
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
917
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 be found in the project file. nunit.core.tests_VS2005 But in run or debug appeare an exception said A project with an output type of class liberary can't be started directly
0
8458
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8650
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7391
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6206
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5677
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4202
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2779
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1779
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.