From: Wendy Elizabeth on


"Mr. Arnold" wrote:

> Wendy Elizabeth wrote:
> > I am asking for help on compiling a C#.net 2008 application since I have not
> > been able to obtain a successful build with no errors yet.
> >
> > This application that we need to support has no documentation and the
> > programmer(s) who wrote the application are not with the company any longer.
> >
> > This C#.net 2008 solution has lots of project files in it.
> >
> > You can compile this application in the following modes:
> > a.debug, b. debug-test, c.debug-development, d. debug-production,
> > e. release, and there is a class manager configuration file.
> >
> > I am getting errors like:
> >
> > 1. Error 33 The type or namespace name 'completionImport' could
> > not be found (are you missing a using directive or an assembly reference?)
> > C:\Documents and Settings\username\My Documents\Visual Studio 2008\Projects\
> > TableAdapterManager.cs
> >
> > I can find the namespace in lots of different *.cs files. However I do not
> > know what to do get get the correct *.cs file. I am guessing this has to do
> >
> > 2. Warning 2 Could not resolve this reference. Could not locate the assembly
> > "Q.proxy". Check to make sure the assembly exists on disk. If this reference
> > is required by your code, you may get compilation errors.
> >
> > I know that the program would compile without the proxies but I can tell
> > from the code that I will to use proxies like this.
> > Thus can you tell me how to resolve this problem.
> >
> > 3. Can you also tell me know to figure out how to obtain a good build
> > for this soltuion?
> >
> >
> > Us girls at work have not seen a program like this before since
> > our most recent experience is using Vb.net 2003.
> >
> > Thank you very much!
>
> Are you sure you have the latest code for this application?
>
> Usually when you get the error #1, it means that a project is missing,
> the project is there but the code is not up to date for other projects
> that are making references to the project.
>
> Are you running out of memory, which can make the compiler not load all
> of the code during the compile?
>
> Are you trying to compile the entire application (all the projects) or a
> subset of projects based on a solution (.sln) file? If doing a subset of
> projects and not compiling the entire solution first will lead to error #1.
>
> Have you looked at the solution tree in the IDE, expanded the
> (References) for each project to see what is missing?
>
> Are you doing Project Reference for each project?
>
> .
>
From: Mr. Arnold on
Wendy Elizabeth wrote:
> "Mr. Arnold" wrote:
>
> You have kind of answered my question.
>
> The following are a few more items to mention:
>
> 1. In answer to your questions, according to subversion, the open-source
> version control software my company is using, I am using the current solution.

Ok
> 2. error 1- you are correct, I am I doing a subset of projects and not
> compiling the entire solution first. What difference does it make if I
> compile just one of the projects or the entire solution? Why would I need to
> compile the entire solution first and then compile a project by itself? For
> now, I am just trying to see if I could get anything to compile clean at
> first.

That's because if other programmers have made changes to projects added
or removed reference in other projects or changed code in other projects
that your code is reliant upon in a project, then you're going to get
the type of error messages you're seeing or your code may encounter an
exception and blow-up.

So, it's up to you to do a (Get Latest), assuming only valid and tested
code is being checked-in by other programmers that will not create
compile errors or exceptions, for all the code for the solution and
compile the entire solution first (periodically) or as needed to keep
the solution in sync, if doing subset compiling of projects for the
solution.

Otherwise, you are going to face the trouble you're facing when working
with a larger solution that has many projects in it and doing subset
project compiling -- (everything is not in sync, not up to date, not the
greatest and latest).

> 3. Are you doing Project Reference for each project? I do not know what
> you mean by this? Is this part of a a class manager configuration file? Can
> you tell me how to do a 'project reference' for each project?

That means you goto to each project in the IDE that has a reference to
another project or (projects) and set the reference to the referenced
project's project file (a projectname.csproj). Otherwise, that can cause
compile errors if a project is referencing a project (by the referenced
project's DLL) instead of using (Project Reference by project).

> 4. Since I checked out this code from subversion, can you tell me how I can
> find the dll that some 'project files' are looking for?
>

If you're in the IDE and you're at a project, then expand the
"Reference" section. If you see the "yield sign symbol" next to a
reference line, then you know you may have problems with reference to a
DLL the project is using.
From: Peter Duniho on
Wendy Elizabeth wrote:
> "Peter Duniho":
>
> You have kind of answered my question.
>
> The .net solution I have, I obtained from a subversion 'version control'
> open-source that my small company uses. I just checked out the .net solution
> to my desktop.
> I know that I need to add some dll refernces, but I need to be able to
> figure out where the DLL are located at. By the name of the DLL files, I know
> that I have
> the various namespaces I could use and compile. Where you do think the dlls
> would be located at? Would they be in the debug/bin directory or the
> release/bin directory?

I have no idea, nor even any idea why you think I or anyone here would.
We don't even know what DLLs you're talking about, never mind where
one would normally find them. They literally could be anywhere.

> I know that one of the there is at least one 'custom' control that have
> been included in several of the projects in the solution. Do you have any
> ideas on how I could find the custom control, build them and then add them as
> a reference to the various projects?

Google?
From: Wendy Elizabeth on
"Mr. Arnold" wrote:

You answered most of my extra questions but I still have a few more
additional questions based upon your last response which are:

1. This pertains to obtaining the 'latest version' subversion:
a. What do you do to obtain the 'latest' version in subversion? Are
there some commands you execute?
b. The subversion that the programmer used that checked this code in left
some time ago and this company had a different location for subversion. There
was some kind of a problem with the original location for subversion, so a
'new' network person at this company changed the location of the subversion I
checked out code from. Could using a different location for subversion cause
a problem? Should I go try to check out the code from the original location
where the code was checked into subversion?

2. Project Reference for each project
To add a project reference for each project, can could expand upon:
If you're in the IDE and you're at a project, then expand the
> "Reference" section. If you see the "yield sign symbol" next to a
> reference line, then you know you may have problems with reference to a
> DLL the project is using.
Basically I would then select 'add a reference' by right clicking on the
situation listed above.. From the tabbed items I could select, I know there
are about four tabs like '.net', com, and two more tabbed items. Which tab
would I select? Once I pick the correct tab, would kind of an item would I
need to select to add the correct reference?

3. Is there a way to tell when a project should be referenced by the
referenced > project's DLL) and when the project should be referenced by
using (Project Reference by project)? If so, how can you tell this?

4. The following pertains to a dll:
a. Where would I look to obtain a few dll's that are missing in the
solution?
b. If I can not find some dll's, is there a way to tell what code in the
solution I should to use to compile (build) the dll (executable)?
C. Can you tell me how to compile the separate dll's and how to add the
separate dll's into the solution?

Your help has been one of the best I have ever seen for people! Thank you
again very much!

So you are saying each project has its own a projectname.csproj file? (I
was assuming that the entire solution had only one csproj file.)

"Mr. Arnold" wrote:

> Wendy Elizabeth wrote:
> > "Mr. Arnold" wrote:
> >
> > You have kind of answered my question.
> >
> > The following are a few more items to mention:
> >
> > 1. In answer to your questions, according to subversion, the open-source
> > version control software my company is using, I am using the current solution.
>
> Ok
> > 2. error 1- you are correct, I am I doing a subset of projects and not
> > compiling the entire solution first. What difference does it make if I
> > compile just one of the projects or the entire solution? Why would I need to
> > compile the entire solution first and then compile a project by itself? For
> > now, I am just trying to see if I could get anything to compile clean at
> > first.
>
> That's because if other programmers have made changes to projects added
> or removed reference in other projects or changed code in other projects
> that your code is reliant upon in a project, then you're going to get
> the type of error messages you're seeing or your code may encounter an
> exception and blow-up.
>
> So, it's up to you to do a (Get Latest), assuming only valid and tested
> code is being checked-in by other programmers that will not create
> compile errors or exceptions, for all the code for the solution and
> compile the entire solution first (periodically) or as needed to keep
> the solution in sync, if doing subset compiling of projects for the
> solution.
>
> Otherwise, you are going to face the trouble you're facing when working
> with a larger solution that has many projects in it and doing subset
> project compiling -- (everything is not in sync, not up to date, not the
> greatest and latest).
>
> > 3. Are you doing Project Reference for each project? I do not know what
> > you mean by this? Is this part of a a class manager configuration file? Can
> > you tell me how to do a 'project reference' for each project?
>
> That means you goto to each project in the IDE that has a reference to
> another project or (projects) and set the reference to the referenced
> project's project file (a projectname.csproj). Otherwise, that can cause
> compile errors if a project is referencing a project (by the referenced
> project's DLL) instead of using (Project Reference by project).
>
> > 4. Since I checked out this code from subversion, can you tell me how I can
> > find the dll that some 'project files' are looking for?
> >
>
> If you're in the IDE and you're at a project, then expand the
> "Reference" section. If you see the "yield sign symbol" next to a
> reference line, then you know you may have problems with reference to a
> DLL the project is using.
> .
>
From: Mr. Arnold on
Wendy Elizabeth wrote:
> "Mr. Arnold" wrote:
>
> You answered most of my extra questions but I still have a few more
> additional questions based upon your last response which are:
>
> 1. This pertains to obtaining the 'latest version' subversion:
> a. What do you do to obtain the 'latest' version in subversion? Are
> there some commands you execute?

It has to do with going to the code repository, I am sure you have
something, and getting the latest version of all the code out of the
repository. It has to do with you knowing how to work with the code
repository solution to accomplish it.

> b. The subversion that the programmer used that checked this code in left
> some time ago and this company had a different location for subversion. There
> was some kind of a problem with the original location for subversion, so a
> 'new' network person at this company changed the location of the subversion I
> checked out code from. Could using a different location for subversion cause
> a problem? Should I go try to check out the code from the original location
> where the code was checked into subversion?

It comes back to this. If this is the first time you have tried to
compile this solution, then you need to get the latest code/projects
(all of the projects -- all of the code) out of the repository and
compile the entire solution (all of it all of the projects) the first
time, before you can compile a subversion.

You have to compile the entire solution the first time, because if you
compile the subversion the first time, things will not be there that the
subversion of projects are looking for (references to other projects)
outside of the subversion of projects that will lead to compile errors
for the subversion.

If you have not done this, then you have to do it. You can't go to the
subversion initially and compile it, because those projects may be
looking for references to other projects that are outside the subversion
and they are not there (DLL's) compiled from other projects referenced
are not there physically on your development machine.


>
> 2. Project Reference for each project
> To add a project reference for each project, can could expand upon:
> If you're in the IDE and you're at a project, then expand the
>> "Reference" section. If you see the "yield sign symbol" next to a
>> reference line, then you know you may have problems with reference to a
>> DLL the project is using.

> Basically I would then select 'add a reference' by right clicking on the
> situation listed above.. From the tabbed items I could select, I know there
> are about four tabs like '.net', com, and two more tabbed items. Which tab
> would I select? Once I pick the correct tab, would kind of an item would I
> need to select to add the correct reference?

What path to take is based on what type of reference is needed. If its a
.NET Framework reference, the (.NET), if it's a 3rd party DLL, then
you need to 'Browse' to the location of the DLL you have on the machine,
and if it's by project reference, then you have to 'Browse' to the
location of the project file on the machine and use it.

> 3. Is there a way to tell when a project should be referenced by the
> referenced > project's DLL) and when the project should be referenced by
> using (Project Reference by project)? If so, how can you tell this?

None of the projects should be using a DLL for project reference. All
projects should be using (Project Reference). Because when you use
'Project Reference' the complier knows to go find the DLL for other
projects by itself without you needing to point to it yourself.

>
> 4. The following pertains to a dll:
> a. Where would I look to obtain a few dll's that are missing in the
> solution?

You have to determine what the DLL(s) are .Net Framework, 3rd party or
DLL created from compiling a project.

I would say your biggest problem may be is that you have not compiled
the entire solution first to get project DLL(s) on the machine before
you tried to compile a subversion of projects, because those projects
are looking for reference to projects outside the subversion that have
not been complied.

> b. If I can not find some dll's, is there a way to tell what code in the
> solution I should to use to compile (build) the dll (executable)?

Why bother? If this solution is one big solution of projects, then
compile the entire thing not the subversion or an individual project,
and it will work itself out.

> C. Can you tell me how to compile the separate dll's and how to add the
> separate dll's into the solution?

Take note on everything I have told you prior to this point.

>
> Your help has been one of the best I have ever seen for people! Thank you
> again very much!
>
> So you are saying each project has its own a projectname.csproj file? (I
> was assuming that the entire solution had only one csproj file.)
>

A solution has a main .sln file that holds all of the project for the
entire solution, and you can tell it to compiler to use the .sln file
and do the compile of all projects in the .sln.

You can have a .sln file that has a subversion of projects and any
common projects (core projects) that the subversion of projects have
reference to outside of the subversion of projects.

Maybe, you need a contractor in there for a short time to help you
figure this out and what you need to do.

HTH and good luck to you.....