473,382 Members | 1,332 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

From where is the assembly name taken when you build a user control dll

Hello!

I just want to find out how the system find the name to set on a assembly
User control dll.

I have done this.
1. Create a user control
- Here the namespace was set by the system to WindowsControlLibrary2
- The name of the class was also set by the system to UserControl1
- The name of the assembly dll was set by the system to
WindowsControlLibrary2.dll
- The project name was also set by the system to WindowsControlLibrary2
- The name of the cs file was set by the system to UserControl1.cs
Now I have renamed the namespace where the user control is located.
I have also renamed the actual class.
I have renamed the project
I have renamed the solution
I have renamed the cs file

I have delete the user control from the toolbox.
I have delete the reference to user control
I have deleted all file with name WindowsControlLibrary.dll and
all file with name WindowsControlLibrary.*

When I now build the user control dll I still get WindowsControlLibrary.dll
I can't find out why the system still use that name.

So my question is how does the system find out what assembly name should be
set on a user control when building the dll file.

I have renamed everything that has something to do with
WindowsControlLibrary but still does the system use WindowsControlLibrary
when building the usercontrol dll.

It looks like when you have once chosen a assembly name you can't change it.

Please tell me how the naming of user control works.

//Tony
Jun 1 '06 #1
1 1985
tony wrote:
Hello!

I just want to find out how the system find the name to set on a assembly
User control dll.

I have done this.
1. Create a user control
- Here the namespace was set by the system to WindowsControlLibrary2
- The name of the class was also set by the system to UserControl1
- The name of the assembly dll was set by the system to
WindowsControlLibrary2.dll
- The project name was also set by the system to WindowsControlLibrary2
- The name of the cs file was set by the system to UserControl1.cs
Now I have renamed the namespace where the user control is located.
I have also renamed the actual class.
I have renamed the project
I have renamed the solution
I have renamed the cs file

I have delete the user control from the toolbox.
I have delete the reference to user control
I have deleted all file with name WindowsControlLibrary.dll and
all file with name WindowsControlLibrary.*

When I now build the user control dll I still get
WindowsControlLibrary.dll I can't find out why the system still use that
name.

So my question is how does the system find out what assembly name should
be set on a user control when building the dll file.

I have renamed everything that has something to do with
WindowsControlLibrary but still does the system use WindowsControlLibrary
when building the usercontrol dll.

It looks like when you have once chosen a assembly name you can't change
it.

Please tell me how the naming of user control works.


When you first create a project, the assembly name is the same as the
project name. To change the assembly name, and you can do that without
changing the name of anything else, in Solution Explorer right click on the
project and select Properties. Under Common Propererties select General.
One of the General Properties is the Assembly Name. Since you changed your
namespace, you might also want to change the Default Namespace property so
that if you add a new class t picks up your new namepace.
--
Tom Porterfield

Jun 1 '06 #2

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

Similar topics

5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
0
by: Steve B. | last post by:
Hi all, I'm looking for a pretty way to globalize an ASP.Net application. I base on the Globalization Architecture for ASP.NET article from the MSDN Library. If I have a user control...
10
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web...
4
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
5
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
2
by: Dylan Parry | last post by:
Hi, Is there a way of getting the date that an assembly was last compiled? I am trying to help myself to remember what version of a particular assembly my Web applications are using, so I've...
7
by: John.NET | last post by:
Hi, First please forgive that this is a repost as the first time I didn't have my proper nospam email configured... I'm writing a web service where one method will launch another .NET program...
3
by: Guillaume Hanique | last post by:
Hi, I feel very stupid. I simply want to derive a control from system.web.ui.webcontrols.button and use that on my webform, but I just can't get it done. Can anyone tell me how to do that? I...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.