I have a couple of class libraries wich I built about a year ago. I want to
add it no other project, but I want to change their namespaces without
recompliation ('cos I'm not sure that I have all nessesery libraries).
Is it possible anyhow change namespace of compiled .NET DLL ?
TNX 10 4958
Tamir,
I doubt it, especially if it is signed. If it is signed, then I imagine
the namespace of each type makes up part of the hash that is embedded in the
assembly when it is signed.
What you could do is run ildasm on the assembly, creating files of IL,
and then call ilasm, which would compile the IL. You can change the
namespace in the IL, and get the same results, I believe.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:eH**************@tk2msftngp13.phx.gbl... I have a couple of class libraries wich I built about a year ago. I want
to add it no other project, but I want to change their namespaces without recompliation ('cos I'm not sure that I have all nessesery libraries). Is it possible anyhow change namespace of compiled .NET DLL ?
TNX
Cos I need to incude it in project instead of other version (with different
namespace) so I do not want to mess with exchanging all references
"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Why can't you use the existing namespace? Mattias
-- Mattias Sjögren [MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup.
No, the dll does not signed
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2***************@tk2msftngp13.phx.gbl... Tamir,
I doubt it, especially if it is signed. If it is signed, then I
imagine the namespace of each type makes up part of the hash that is embedded in
the assembly when it is signed.
What you could do is run ildasm on the assembly, creating files of IL, and then call ilasm, which would compile the IL. You can change the namespace in the IL, and get the same results, I believe.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message news:eH**************@tk2msftngp13.phx.gbl... I have a couple of class libraries wich I built about a year ago. I want to add it no other project, but I want to change their namespaces without recompliation ('cos I'm not sure that I have all nessesery libraries). Is it possible anyhow change namespace of compiled .NET DLL ?
TNX
ilasm failed here
Creating PE file
Error: No entry point declared for executable
Could not create output file, error code=0x80004005
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2***************@tk2msftngp13.phx.gbl... Tamir,
I doubt it, especially if it is signed. If it is signed, then I
imagine the namespace of each type makes up part of the hash that is embedded in
the assembly when it is signed.
What you could do is run ildasm on the assembly, creating files of IL, and then call ilasm, which would compile the IL. You can change the namespace in the IL, and get the same results, I believe.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message news:eH**************@tk2msftngp13.phx.gbl... I have a couple of class libraries wich I built about a year ago. I want to add it no other project, but I want to change their namespaces without recompliation ('cos I'm not sure that I have all nessesery libraries). Is it possible anyhow change namespace of compiled .NET DLL ?
TNX
Tamir,
When using IL, I think you need to specify the target to be a DLL, not
an executable.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:O3**************@TK2MSFTNGP09.phx.gbl... ilasm failed here
Creating PE file Error: No entry point declared for executable Could not create output file, error code=0x80004005
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2***************@tk2msftngp13.phx.gbl... Tamir,
I doubt it, especially if it is signed. If it is signed, then I imagine the namespace of each type makes up part of the hash that is embedded in the assembly when it is signed.
What you could do is run ildasm on the assembly, creating files of
IL, and then call ilasm, which would compile the IL. You can change the namespace in the IL, and get the same results, I believe.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message news:eH**************@tk2msftngp13.phx.gbl... I have a couple of class libraries wich I built about a year ago. I
want to add it no other project, but I want to change their namespaces without recompliation ('cos I'm not sure that I have all nessesery libraries). Is it possible anyhow change namespace of compiled .NET DLL ?
TNX
This is the path I running
ilasm BaseOwnClass.il /RESOURCE=BaseOwnClass.ClassView.resources
/OUTPUT=BaseOwnClass.dll
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl... Tamir,
When using IL, I think you need to specify the target to be a DLL, not an executable.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message news:O3**************@TK2MSFTNGP09.phx.gbl... ilasm failed here
Creating PE file Error: No entry point declared for executable Could not create output file, error code=0x80004005
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:%2***************@tk2msftngp13.phx.gbl... Tamir,
I doubt it, especially if it is signed. If it is signed, then I imagine the namespace of each type makes up part of the hash that is embedded
in the assembly when it is signed.
What you could do is run ildasm on the assembly, creating files of IL, and then call ilasm, which would compile the IL. You can change the namespace in the IL, and get the same results, I believe.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message news:eH**************@tk2msftngp13.phx.gbl... > I have a couple of class libraries wich I built about a year ago. I want to > add it no other project, but I want to change their namespaces
without > recompliation ('cos I'm not sure that I have all nessesery
libraries). > Is it possible anyhow change namespace of compiled .NET DLL ? > > TNX > >
Added /DLL key and now I recieve the following:
Resolving member refs: 19157 -> 19157 defs, 0 refs
Could not create output file, error code=0x80070714
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl... Tamir,
When using IL, I think you need to specify the target to be a DLL, not an executable.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message news:O3**************@TK2MSFTNGP09.phx.gbl... ilasm failed here
Creating PE file Error: No entry point declared for executable Could not create output file, error code=0x80004005
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:%2***************@tk2msftngp13.phx.gbl... Tamir,
I doubt it, especially if it is signed. If it is signed, then I imagine the namespace of each type makes up part of the hash that is embedded
in the assembly when it is signed.
What you could do is run ildasm on the assembly, creating files of IL, and then call ilasm, which would compile the IL. You can change the namespace in the IL, and get the same results, I believe.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message news:eH**************@tk2msftngp13.phx.gbl... > I have a couple of class libraries wich I built about a year ago. I want to > add it no other project, but I want to change their namespaces
without > recompliation ('cos I'm not sure that I have all nessesery
libraries). > Is it possible anyhow change namespace of compiled .NET DLL ? > > TNX > >
Tamir,
Can you send the IL files that you are using as input?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:eK**************@tk2msftngp13.phx.gbl... Added /DLL key and now I recieve the following:
Resolving member refs: 19157 -> 19157 defs, 0 refs Could not create output file, error code=0x80070714
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2****************@TK2MSFTNGP12.phx.gbl... Tamir,
When using IL, I think you need to specify the target to be a DLL,
not an executable.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message news:O3**************@TK2MSFTNGP09.phx.gbl... ilasm failed here
Creating PE file Error: No entry point declared for executable Could not create output file, error code=0x80004005
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>
wrote in message news:%2***************@tk2msftngp13.phx.gbl... > Tamir, > > I doubt it, especially if it is signed. If it is signed, then I imagine > the namespace of each type makes up part of the hash that is
embedded in the > assembly when it is signed. > > What you could do is run ildasm on the assembly, creating files
of IL, > and then call ilasm, which would compile the IL. You can change the > namespace in the IL, and get the same results, I believe. > > Hope this helps. > > > -- > - Nicholas Paldino [.NET/C# MVP] > - mv*@spam.guard.caspershouse.com > > "Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message > news:eH**************@tk2msftngp13.phx.gbl... > > I have a couple of class libraries wich I built about a year ago.
I want > to > > add it no other project, but I want to change their namespaces without > > recompliation ('cos I'm not sure that I have all nessesery libraries). > > Is it possible anyhow change namespace of compiled .NET DLL ? > > > > TNX > > > > > >
Works fine with simple path ilasm MyClass.il /DLL :)
KISS = Keep It Stupid Simple :)
Thx to all...
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:O3**************@TK2MSFTNGP09.phx.gbl... ilasm failed here
Creating PE file Error: No entry point declared for executable Could not create output file, error code=0x80004005
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2***************@tk2msftngp13.phx.gbl... Tamir,
I doubt it, especially if it is signed. If it is signed, then I imagine the namespace of each type makes up part of the hash that is embedded in the assembly when it is signed.
What you could do is run ildasm on the assembly, creating files of
IL, and then call ilasm, which would compile the IL. You can change the namespace in the IL, and get the same results, I believe.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message news:eH**************@tk2msftngp13.phx.gbl... I have a couple of class libraries wich I built about a year ago. I
want to add it no other project, but I want to change their namespaces without recompliation ('cos I'm not sure that I have all nessesery libraries). Is it possible anyhow change namespace of compiled .NET DLL ?
TNX
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Leon |
last post by:
Hi all.
For my application I'm using a third-party library which is supplied as a
library file (.lib) and an associated header file to prototype the functions
defined in the library. Important...
|
by: Kevin Newman |
last post by:
I've been toying with a namespace manager, and wanted to get some input.
So what do you think?
if (typeof com == 'undefined') var com = {};
if (!com.unFocus) com.unFocus = {};
...
|
by: SC |
last post by:
i have 2 separate projects:
1) Project A: Class library, written in VB.NET; It's namespace is
explicitly defined in the code like:
Namespace MyCompany.Project.ClassesA
....
End Namespace
...
|
by: Jared Turley |
last post by:
I am currently having an issue with an ASP.NET page not finding the
class library located in the application's /bin directory. The page
recognizes the compiled .dll class when running on my...
|
by: Natan |
last post by:
When you create and aspx page, this is generated by default:
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Configuration;
using System.Text;
using...
|
by: ryan.d.rembaum |
last post by:
Hello,
I have code that I wish to use in many web applications. Basically
sort of stand utility stuff. So from Visual Studio Project I select
add a component and chose Component Class. Lets...
|
by: yuliy |
last post by:
Hello gurus,
I stuck in following: how can I do forward declaration if the forward
declared class is in some namespace?
something like
// header
class std::string; // approach#1
|
by: antonyliu2002 |
last post by:
Hi, guys,
I am using Visual Web Developer Express 2005 for my web application.
I wrote a simple class called MyTestClass.cs and put it in the App_Code
folder.
I compiled it to library from...
|
by: Chris Thomasson |
last post by:
I was thinking of how I was going to create a robust versioning system in
Standard C++ for my library and was wondering exactly what the point of a
namespace alias is? The seem like a rather...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
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...
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
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,...
| |