Visual Studio :: Any Better Way To Create An App_Code.dll?

Mar 10, 2010

I am using visual studio 2008 professional. I created a unit test project for my current website (project). This unit testing project is mainly testing code in App-Code folder. In order to be able to access classes from App_Class I need to add App_Code.dll reference to my unit testing project. Right now, I am doing like: publish website, which produce App_Code.dll. Then I added it to my unit testing project. This is very time consuming process: if I make any changes on under test class, I need to publish website to get App_Code.dll. It takes at lest 4 minutes to publish and get App-code.dll. If I have add the new App-code to my unit testing project, it takes about 1 to 2 minites. Is there an easier way toget App_Code.dll?

I have tried use Accessor that MS Test autogenerated, which deos not need App_Code.dll, however, I cannot get an object instantiated. So that is why I add App_Code.dll to my test project.

View 2 Replies


Similar Messages:

App_Code Folder In Project In VIsual Studio 2010

Jun 22, 2010

at vs2008 i could set App_Code folder, but at vs2010 i can not do it, that's why i put my dataset's and class' to App_Data folder. Either I do not know even App_Data folder is secure?

View 4 Replies

Visual Studio 2010 C# And Classes In App_Code Folder?

Jan 7, 2011

I've searched but not found much that helps, could be using wrong search terms.Anyway, currently using Visual Studio 2005 and VB, but just got Visual Studio 2010 and trying to use C# and am having problems using classes, I think I'm missing something simple here.

In both 2005 & 2010 I create a new website and a Default.aspx, in 2005 using VB, C# in 2010.

Right-click the project -> Add New Item -> Class, and leave it as Class1.vb/Class1.cs

Both 2005 & 2010 prompt to place it in the App_Code folder, so choose yes.

Here are the class files, I've not changed anything apart from create a very simple function:

Class1.vb code: [Code]....

Class1.cs code: [Code]....

In my VB project Default.aspx.vb: [Code]....

No errors, and debugging shows that a = "hello"

My Default.aspx.cs: [Code]....

This gives an error:Error 1 The name 'tester' does not exist in the current context D:Visual Studio 2010WebSite11Default.aspx.cs

How do I reference the tester function within Class1 in my C# project?

View 4 Replies

Visual Studio :: The App_Code Folder And Recycling Samples?

Feb 14, 2010

I am a developer who up until now only used WAP assemblies. Is that old and outdated nowadays? For example I have found a really great sample of google map API I'l like to use but my project is in VB.NET and the sample is using code in App_Code folder in C# so I cannot mix and integrate in a easy way. Do I have to convert the C# code into VB.Net to make it work or is there a shortcut when finding sample code in App_Code folder in the wrong code language?

View 1 Replies

Visual Studio :: Web Site App_Code Classes Not Accessible?

Aug 5, 2010

I am fairly new to ASP.net and web page development. I normally create Windows Apps, but the move is on to web pages. I have read and tried a number of posts on this matter, but none of them resolved the problem I am having. I have created a web site (I'm positive it is a web site) and added a class. Visual Studio automatically created and added the class to the App_Code folder. Accordingly, I added the get/set methods to the class and made them public. When ever I try to access the class from a code behind for any page, I get the class name, but nothing more. Intellisense shows only Equals and EqualsReference - no variables. I'm used to using classes in windows forms application and this would make life so much easier if it worked like it is supposed to work.

View 2 Replies

Visual Studio :: New Class File In App_Code In Vs 2010 In New Web Project Not Compiling

May 23, 2010

Best way to describe my issue with vs 2010.create a new website. create the App_Code folder. create a new class in the folder. put the line "x" in the class declaration. hit compile. And the website will compile with no errors. It's not "seeing" this new class as being part of the project best I can tell.

View 1 Replies

Visual Studio :: The Intellisense Doesn't Work At The App_Code Folder Level

Feb 22, 2010

My problem is that the intellisense is not enabled within the App_Code folder, so to twick this problem I initially create a separate folder where I develop my classes then I move them to the App_Code but, but I'm convinced that this is not the right practice so how to configure visual studio 2008 to enable intellisense at the App_Code folder

View 4 Replies

Visual Studio :: To Use A Sql Server 2008 Database When Adding New Data Item To App_code?

Jul 11, 2010

I am using Visual Studio 2010 and have a full version of SQL Server 2008 (not SQL Server Express 2008). I would like to be able to use the database that I created in Sql Server 2008 (not sql server 2008 express) but when I go to app_code -> Add Item and select SQL Server I get the following error message:

"Connections to SQL Server database files (.mdf) requires Sql Server 2005 Express or Sql Server 2008 Express to be installed an running on the local computer ..."

Do I really need to have sql server 2008 express installed on my local computer when I already have the full blown version of Sql Server 2008 installed on my local computer.

View 1 Replies

Visual Studio :: Visual Studio Hangs When Create A New Website Or Project

Sep 2, 2010

Just as the subject says, my VS'05 installation hangs when trying to create a new website. I even installed a fresh version of VS08 along side '05 and '08 is doing the same.

View 9 Replies

Visual Studio :: Can Not Create An C# ASP.NET Web Site From Visual Studio 2010

May 27, 2010

I downloaded a trial version of Visual Studio 2010, created a new c# Solution and then wanted to add an ASP.NET Web Site. I am Folllowing an example in a book: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008.In the book they write that a template for createing an c# ASP.NET Web Site would be found, but whereever I search for o template in VisualStudio I cant find that for c#, I could find it for VisualBasic but that is not wath I want!

View 1 Replies

Visual Studio :: How To Convert Whole Visual Studio 2008 Web Site Project To Visual Studio 2010

Aug 14, 2010

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project

my current project references

i have a very annoying iis problem

iis server stops working until app pool is recycled

i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem

View 2 Replies

Visual Studio :: Opening Visual Studio 2008 Project In Visual Studio 2010?

May 21, 2010

Anyone know if I can maintain a VS 2008 (.net 3.5) project by using the VS 2010 IDE ?

View 1 Replies

Visual Studio :: Can't Execute "create Table" Command With Visual Web Developer Express?

Aug 30, 2010

I have a folder with a web site I'm developing which is connected to a database.Every time I move the folder to a different computer it's a pain when I have to move the database and change the connection string.
I've thought to use for the first time a database in the app_data folder and move all the database inside it.
Nevertheless, when I try to recreate all the tables in the new database for the first time with the query "create table ..." I get and error saying that "SQL CREATE TABLE" is not supported. Is there a way to manage this situation?

View 2 Replies

Visual Studio :: How To Create A Dll

Mar 9, 2011

I need to do in order for me to have a *.dll file created but, what I want is just the *.dll file, I don't want to have the "*.refresh" and the "*.pdb" files, is this even possible? Or I forcely need to have more than one file when I'm generating dll files?

What I usually do when my dll is ready to be compile is to run the "Build Application" option inside Visual Studio then, I'll go to the app's folder and access "Bin/Released" but whenever I add the new "*.dll" in another project I ger three files instead of one (previously mentioned).

View 4 Replies

C# - How To Create A Masterpage In Visual Studio .NET

Jun 9, 2010

Simple question, ok a contentplaceholder is implemented for Page-specific content.What about header region, advertisment, recommended books, footer etc1- What do you insert this as? 2- how do you adjust the size the way you want it?

View 2 Replies

Create An XML Object In Visual Studio C#?

Oct 27, 2010

I want to pass an XML object from code behind file of an aspx to an class library.for that how can i create a XML Object.

View 3 Replies

Create App For Iphone Using Visual Studio?

Dec 24, 2010

I want to create a native app/web app which works on iPhone, iPad. I am having Visual Studio with me. how to create a app using .net.

View 1 Replies

Visual Studio :: Create And Use Of .sln File?

Sep 10, 2010

use of .sln file and how to create it for web-site project in asp.net.?

Whether it is created automatically or have to create on our own?

View 4 Replies

Visual Studio :: Visual Source Safe Plug In Control For Visual Studio 2005 IDE

Jan 28, 2010

where to find/download visual source safe plug in or visual source safe client for visual studio 2005 IDE?

I do not want to install visual source safe 2005 server.

View 1 Replies

Create Table In MSSQL Using Visual Studio?

Feb 23, 2010

my question is that i actually want to make a table in a database and update delete the recordsin that table The thing is that i dont want to make the database table in the sql server but i want to make it in the visual web developer (the editor i am using) can any body gimme any idea abt how i can do this orany link regarding to this

View 11 Replies

Visual Studio :: How To Create A Solution With Project

Aug 12, 2010

I have to modify a exist web application in Asp .Net, the problem is that I have the application just on the server.

I copy the application on my pc but now I have to create the appropriate solution and project to modify it.

I've all the file .cs and the dll already deployed.

How can I create the web application with .net ?

View 1 Replies

Visual Studio :: Can't Create New Database In Windows 7

Mar 26, 2010

I used Visual Studio 2008 in Windows 7. The problem is, I cannot create new database (make new connection). Is it that I have to install any software or tools to support or repair the problem.

View 7 Replies

Visual Studio :: Create Web Application In 2010

Sep 14, 2010

I have a directory with sources of a web application (developed with visual studio 2008) without solution's files. Now I want to create a new web application in visual studio 2010, whit the existing sources.

View 2 Replies

Visual Studio 2008 - Create Xml From Webform In .net Mvc 2 C#?

Mar 2, 2011

what is the easiest way to create a structured xml file based on asp.net mvc 2 webform data ?i am looking for a c# solution and to use maybe linq/lambda expressions?

View 1 Replies

Visual Studio :: How To Create Html File

May 6, 2010

How can I generate a html file within the VS 2008? I used to use 'sp_makewebtask' within SQL Server, but would like to move the job to VS 2008.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved