Asp.net - How Are Classes Shared Between Projects In The Same Solution

Jan 29, 2011

Currently, I have a solution that contains two projects (ASP.net websites, FWIW). If I create a class in Project1, how do I expose it to Project2? Is it automatically available to Project2 because they are in the same solution? Or do I need to do something special to make the connection?

View 5 Replies


ADVERTISEMENT

.Net Solution With C# And VB Projects

Aug 30, 2011

I have a .Net solution with 5 projects in c# and one in visual basic. I want to know whether there would be a gain of performance to convert my visual basic project to C# in the day to day while I compile my solution.

View 3 Replies

Managing Several Projects In The Same Solution?

Feb 7, 2012

It's me again, trying to have multiple projects in the same solution. How can I do that?

I know that the project name should accompany whatever functions I'll be calling but somewhere it does not work.

One more thing, can I include forms in all the projects I create?

View 7 Replies

One Solution / Multiple Projects

Jun 13, 2009

I've developed a stand-alone RTF project/solution and a stand-alone calendar project/solution. I'm trying to incorporate them into a master project/ solution.If I just add the RTF & Calendar projects to the master solution, I cannot access them from the Main form of the master project. It just doesn't see them. Just adding the forms doesn't work because it doesn't contain all of the necessary information embedded in the project (references, etc.)

View 4 Replies

Using Forms In Other Projects Same Solution?

Nov 18, 2009

I have solution that has main app & userManagement app in the main app i referenced the userManagement app and I can see the class in my main app userManagement is a userLogin etc. how can I use the forms from userManagement project in main project??

in formLoad in main app If userID = "" then 'show formLogin from userManagement end if

View 2 Replies

9 Projects In One Solution And Can Only Publish One Project

Jan 24, 2012

I am coming to the end of coding this system in Visual Studios 2008 which I took over from a guy who has worked on it for a year.He is not here anymore.He made 9 projects and put them into one solution(screen shot below).I have only published a .NET website for VB and have never published something like this.P3Data is the only one that the publishing tab comes up with. All the other projects the publishing tab does not come up. Why is P3Data bold? How can I publish the whole solution 'P3Data' as one whole entity?

View 5 Replies

IDE :: Creating A Solution With Multiple Projects?

Aug 20, 2009

I thought I'd give VB a go after developing with C# for the past few months. I'm using Visual Studio 2008 and have imported the VB IDE settings. I'm going through the same steps in VB as I've gone through in C# to create my solution for an n-tiered ASP.NET web application, but the results are unexpected. Here's the steps:

1. File > New Project > Other Project Types > Visual Studio Solutions > Blank Solution .... name the solution & choose the location ...

2. At this point, I want to proceed to add projects as follows by right-click on the solution in solution explorer

a. Add > Visual Basic > Web > ASP.NET Web Application ... name / location of the Web Client

b. Add > Visual Basic > Windows > Class Library.. name / location of the Business Layer

c. Add > VB > Windows > Class Library ... name / location of the Data Access Layer

BUT, as soon as I complete step 2a, the solution disappears from solution explorer. "Show all files" is selected. This happens regardless of the project I create first.

View 4 Replies

Interoperation Of Multiple Projects Within A Solution

Nov 5, 2008

All too often, when I am looking for sample .NET code to do something and actually find it, it is written in C#. I am by no means proficient with C#... I can read and follow the logic of C# or modify the code, though I have difficulty following along since everything ends in "}".So what do I do? I create a solution with 2 projects. I put the C# code in one project and VB code in the other project. The VB project references the C# project and I modify the C# as necessary so I can call the useful code from the VB project.The current C# code I'm working with is a rather large project. Specifically what it does is handle input from HIDs (specifically I want to use it for input from a media remote).What I wanted to do was leave the C# code pretty much alone and just call a VB subroutine when any HID input is received (many of the remote buttons can't be distinguished from keyboard keystrokes) and process them in VB. Problem is that the VB code also needs access to pieces of the C# code (circular reference). Ideally what I'd want to do is create a VB module within the C# project (since VB.NET and C#.NET are functionally equivalent -- mostly -- though syntactically different). I've used compilers in the past with similar functionality, though I don't know if VS.NET 2008 has this capability. If I just add a module to the C# project, it expects it to be written in C#.If I can't do that, I see 3 options:

1) Write my application in C#

2) Write a new class in C# that exposes the functionality I need, instantiate it in VB

3) Convert all the C# code to VB

These options are beyond my current skillset (except maybe 3), though now is just as good a time as any to learn C#. But this may require more time than I'm willing to invest. I just wanted to create a task launcher / application switcher to be able to switch between music, video, and other players. I, in fact, already have most of the VB code I need from another project, including a DirectX "cover flow" style interface. I just want to add remote control support to it.

View 2 Replies

Multiple Setup Projects In Same Solution?

Feb 8, 2010

Can I included several setup projects in the same vb solution such that when solution is built each setup creates its own setup package?

View 1 Replies

Share/access Xsd In Different Projects In A Solution?

Nov 16, 2010

Am I able to share/access xsd in different projects in a solution? If so, how do I do it. If not, what are the other options.

What I intend to do is have the xsd in the DAL project and have the business logic checkings/validations in BLL project.

View 3 Replies

Sharing Files Between Projects Within Solution

Jul 22, 2009

I am working on a solution that contains 2 projects one to be built as an exe and the other as a service. Both projects will share a class for certian functions and properties. I would like to have both projects use the same physical file so when I make a change in one of the projects it is also made in the other.

This was simple to do in VB6 but as of yet I see no way to do it under dot net. It seems to want to make a copy of the file and place it into the project folder for the second project resulting in the need to either copy after every change or manually make the changes twice.

Anyone know if there is a way to have common files area for a solution so that any project within the solution has access to the actual file rather than a copy of it?

View 2 Replies

VS 2005 Running Different Projects In Same Solution

Aug 18, 2009

I have a solution which consists among other things 2 windows applications.I would like to be able to run the first windows application then click on the second windows application and run that as well.

View 3 Replies

VS 2008 Combining Projects Into A Solution?

Apr 6, 2011

As far as I know , it is possible to combine projects into a solution . So , lets say we have 3 projects . Each project has a starting form , lets call them SF1 , SF2 and SF3 .What I would like to ask you is how can I write code in order to have both the solution and the partial projects , working . You see , the solution (which as far as I know will also be accompanied by a new project) has to have a starting form ; lets call it SF0 .A) First of all I'd like to know how can I call a partial project from the solution itself .B) What code do I have to write in the partial projects in order to keep them running correctly when they are separate (that is not part of the solution) . I am asking this question too , because as I guess , there has to be code in SF1 , SF2 and SF3 (into buttons) that lead back to SF0 , but

View 3 Replies

VS 2008 Why Use Multiple Projects In One Solution

Dec 8, 2010

I've been doing some lite coding over the last couple years so I'm no where near where a lot of you already are. So my code tends to be organized in the standard beginners format... one project per solution with one executable (*.dll or *.exe). So I have a bit of a "best-practices" question for you... Why use multiple projects in one solution?

[Code]...

View 14 Replies

Accessing Multiple Projects In A Single Solution

Jun 17, 2009

I've developed a couple of different stand-alone projects, myRibbonRTF and myRibbonCalendar and have them functioning well. I want to tie these together with other projects in a single solution called myMain. When I add these projects to the solution, their forms are not accessible in myMain (e.g. myRibbonRTF.frmMain.Show()). I've searched high and low for the last week trying to solve this and the only nearby solution is to turn the other projects into .dlls and access them in myMain that way.

View 7 Replies

C# - Avoid Building All .NET Projects In A VisualStudio Solution?

Oct 28, 2009

We create a class library and ship C# and VB.NET examples.I have a solution of 60 C# projects. If I make an edit to one of them, Visual Studio only builds the changed one. I have an equivalent solution of 60 VB.NET projects. Visual Studio always builds all 60 projects. Why? Is there a way to force Visual Studio to behave like it does with C# projects?

I should mention that there are no dependencies between the projects.More information: It's not recompiling, really, it's just checking if they need compilation and that takes a significant amount of time.

Here's the build output: Build: 0 succeeded, 3 failed, 58 up-to-date, 0 skipped Those 58 checks take about 30 seconds in my solution of VB.NET projects. This same up-to-date check is almost instant in the solution of C# projects.No edit is necessary. Just switching startup projects is enough.

View 1 Replies

IDE :: Difficulty Using Existing Projects Added To A Solution?

Mar 28, 2011

I'm not sure if this is really a VB IDE issue, or a more general VS10 issue, but I couldn't find any other relevant category to post in, so here goes!I have several VB projects which I want to use in the same solution in Visual Studio 10. I created a project (& corresponding solution) which will reference them and added the existing projects by right clicking the solution in solution explorer choosing 'Add->Existing Project'. Then I went to the containing project's Properties window and added references to the existing projects, so they could be used by the project.

[Code]...

View 3 Replies

Pass Data Between Forms In Different Projects In One Solution?

Apr 21, 2011

I need to pass data (a user name) from a logon form in one vbproj to a form in another vbproj that are compiled in one solution. Public Read Only does not seem to work.

View 2 Replies

Declare Public Constants That Are Available Solution Wide Across All Projects?

Jan 11, 2012

How can I declare public constants that are available solution wide across all projects?

View 8 Replies

VS 2008 Solution Compiles All Setup Projects On F5 Debug?

Feb 19, 2009

Just got a little quirk with VS2008 on 1 solution.When i press F5 to debug my solution builds the current project but then insists on building all my setup projects...

This only occurs on 1 of my solutions and it has 20 projects within it.

I've checked startup projects and it has no dependancies and is set to selected project.

EDIT: Right click and debug in new instance works fine

View 2 Replies

Shared Module In Many Different Projects?

Jan 3, 2012

I would like to know how can I have the same module in many different projects. The trick is that I want to be able to modify that module only in one place and still be used in all the projects.

View 6 Replies

.net - Use Classes In Several Projects?

Jun 8, 2011

How can I create a namespace and classes in it, then save it, and reuse the namespace in other projects? Do I have to click on Create Class Library in Visual Studio?

View 2 Replies

Declare A Variable Globally So That It Is Visible To All Projects Of A Single Solution?

May 26, 2009

In vb.net 2.0 is it possible to declare a variable globally so that it is visible to all projects of a single solution?

View 1 Replies

Class Module Which Is Shared Between The 2 Projects?

Mar 29, 2010

I have no idea what is going on here but it is strange to say the least.I created a new solution in VS2008Pro under windows 7 This solution has 2 projects one for the pc and one for a CE based device.There is one class module which is shared between the 2 projects.In VS2005 under xp this same basic project worked fine but here I am seeing error messages that appear out of no where.

Example the CE portion flags 3 lines initially 1 related to a file i.o function and 2 others related to socket methods. All three of these were supported in VS2005 using framework 2.0 which is the same framework I am using here. This is just the tip of the ice berg however.If I attempt to run the code it runs fine for the pc client and of course not for the CE device. If I make any kind of change, add a line, comment a line or just add a comment I get lots more errors with odd messages that are not even valid.

In one case after I saved it jumped from 3 errors to 30, in another case to 50 and yet another to 144 errors yet the only errors that were present were the original 3 that were flagged.The ide threw errors like Try Catch must end with matching End Try.Get no longer supported ' apparently referring to the binary file get but here it is used as the get portion of the property.Get must end with matching end get.It also started complaining about functions and data types.For example saying "an is not declared" pointing to the word Boolean Or telling me my functions are not declared point to only 1/2 of the function name.

I do not see any errors in the code and it reports no errors in VS2005 under XP.As a test I tryed adding a new property to the project after it was telling me there were 144 errors. I allowed the ide to do most of the work and when I hit enter the errors went back to 3. Then I saved the project and the errors went to 105 pointing first at the new property just created.

View 5 Replies

Referencing Classes Across Projects

Jan 21, 2010

I've got a project folder which contains all my forms and another project folder where I keep my classes. The forms folder references the classes folder.I can reference the classes folder from the forms folder alright but I have problems when I try to reference a form from a class. For example, if I pass one of my form objects to a class, the class doesn't recognize its type.VB doesn't allow circular referencing so how can I get around this ?

View 3 Replies

Asp.net - Use Abstract Classes In A 3-tier Solution?

Feb 1, 2012

My immediate issue is that currently I have a 3 tier solution (Presentation.aspx.vb calls BusinessLayer.vb which calls DataAccessLayer.vb). However, I want to make BusinessLayer and DataAccessLayer.vb abstract classes because several Webforms will use have the same functionality.

So I currently am doing this (no abstract classes):

'Presentation Layer (pseudocode)
public sub checkUser(byval userName as string, byval dept as string)
dim isGood as boolean = BL.checkUserAccess(userName, dept)

[Code].....

View 1 Replies

IDE :: Referencing Solution-level Classes?

Feb 19, 2009

hello,if i have a solution with two projects, and add a class at the Solution-level, how do i reference that solution-level class within one of the two projects?

View 2 Replies

Why Does Changing Solution Platforms Stop Partial Classes From Being Seen

Nov 18, 2010

There is an older version of the software which works fine on all of our deployment platforms, but the version I am trying to push out is working fine on 32-bit desktop installations, but is crashing-and-burning when it attempts to access Crystal Reports and Informix installed DLLs on a 64-bit machine, running terminal server sessions (yeah, I know, could I change anything more about the deployment platform?)One of the suggested avenues of investigation was changing the solution platform from "Any CPU" to x86.On attempting to do this, Visual Studio seems to stop being able to connect the partial classes constructed by XAML objects, with objects declaring that they have no "InitializeComponent" methods, and then failing on down the line until I reach the maximum number of errors.

Oddly, changing the solution platform, and then rebuilding in Expression Blend compiles just fine. Changing the platform back to AnyCPU makes the problem disappear. All projects have compile and debug configurations set to Active. I can't see any reason why simply changing the targeted platform would stop the XAML from generating partial classes Okay, it seems to be that there are some external DLLs to the project, and that those are the cause of what I'd call the first-level compilation failure, as they don't seem to contain any classes once the target platform has switched.In VS2008, this causes the cascading failure of absolutely nothing working at all, as described above, but at one point I somehow managed to import the project to VS2010 with only those errors in place (missing classes, etc.), without the rest of the project imploding.I'm now working on reconstructing those classes from those DLLs, and hopefully will be able to get together a project that will compile on multiple target platforms by the end of the day.

View 2 Replies

Shared (Static) Classes With Events In C#

Mar 27, 2010

[code]Now how do i do this in c#. I know there is not handles clause in c# so i need some function that is called and assign the event handlers there. However since its a shared class there is no constructor i must put it somewhere outside of a function.

View 2 Replies

Shared Events In Child Classes

Jul 7, 2011

I have a program with a base class and classes that inherit the base. A Windows Form will call a function of each child class which raises an event from the base class. The function call to the first child class works fine: the event is raised for the first child class.

[Code]...

View 7 Replies







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