Questions tagged [assembly-name]
16 questions
16
votes
2 answers
Get name of assembly without version and other details
I am getting the name of an assembly as follows:
String fullName = Assembly.GetAssembly(typeof(CP.Proj.ILogger)).FullName;
And I get the following:
CP.Proj, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Is there a way to get only the…

Miguel Moura
- 36,732
- 85
- 259
- 481
8
votes
2 answers
Need fully qualified type name
I need to resolve an assembly and type at runtime and I need to find the fully qualified type name. For some reason I cannot get it right, as I keep get an exception saying it cannot find the type specified.
The app.config file, in which the…

Tony The Lion
- 61,704
- 67
- 242
- 415
3
votes
1 answer
Get assembly name of referenced project
Let's say I have project A and project B. I have them in the same solution and A references B and uses B as a kinda slave process. I don't want to hardcode the assembly name of B but I'm wondering how to query the assembly name in project A so I can…

Christian Klemm
- 1,455
- 5
- 28
- 49
3
votes
3 answers
How does AssemblyName.ReferenceMatchesDefinition work?
Given the following code:
var n1 = new AssemblyName ("TestDll, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=b77a5c561934e089");
var n2 = new AssemblyName ("TestDll, Version=2.0.0.2001, Culture=en-US, PublicKeyToken=ab7a5c561934e089");
…

Fabian Schmied
- 3,885
- 3
- 30
- 49
3
votes
2 answers
ILMerge & Keep Assembly Name
I need to merge some dlls and both the file name and assembly name need to be the same as for my main dll (mydll.dll). I also need the pdb file. How do I get this done?
Here are a few things I tried:
Just use ILMerge mydll.dll ....…

Hu F.
- 33
- 1
- 6
2
votes
1 answer
Why do I need to change assembly names in my Xamarin.Forms app?
I am wrote this XAML code in an Xamarin.Forms app (multiplatform):

Bob5421
- 7,757
- 14
- 81
- 175
1
vote
1 answer
Conditional AssemblyName causes C# project to always rebuild when using names other than "Debug"/"Release"
So I'm adding a "d" extension to my assembly name when building in debug mode. As far as I can tell the standard way to do this in C# is to edit the .csproj file and put in the following:

Nathan Monteleone
- 5,430
- 29
- 43
1
vote
0 answers
Programmatically get the version number of dotnet core library dll
How to get the version number programmatically from any .NET Core library DLL?
For e.g: "api-ms-win-core-console-l1-1-0.dll"
The same question is asked here but it is not working for core libraries listed…

RPrashant
- 217
- 3
- 13
1
vote
0 answers
.NET AssemblyName per configuration -> always rebuilding
I figured how to change the filename of the output assembly depending on the current configuration:
path-to-debug-output
…

micst
- 31
- 7
1
vote
0 answers
What is the java equivalent of Assembly.GetCallingAssembly().GetName().Name?
If any, what is the java equivalent of Assembly.GetCallingAssembly().GetName().Name?
Background and Research:
I am working on translating some C# code into Java. At the moment I am unable to test what the Assemblyname returns, and so I am unable…

jumps4fun
- 3,994
- 10
- 50
- 96
0
votes
0 answers
WPF ResourceDictionary Source change AssemblyShortName dynamically
I add a ResourceDictionary at Xaml.
Next, I add ResourceDictionary.MergedDictionaries as below:
…

Ricky Chen
- 55
- 6
0
votes
1 answer
ClickOnce app built via Jenkins throwing CS1704 - An assembly with the same simple name {whatever} has already been imported
I have a winforms app, which is deployed via click-once publishing.
Assuming my tests are correct, the only way to have this same app installed more than once in the same machine, is the each publish be made for a different Assembly Name.
My problem…

Veverke
- 9,208
- 4
- 51
- 95
0
votes
2 answers
Get dll file extension by System.Reflection.Assembly
I am going to implement a function that can extract all referenced dll files in an exe.
I'm using "System.Reflection.Assembly" to do it.
But I have no idea how to get file extension.
For example, text.exe contains x.dll, y.dll and z.dll
Above code…

ChiaHsien
- 315
- 1
- 3
- 10
0
votes
0 answers
How to merge multiple c# Projects with same default namespace but different assembly names
i am migrating my old code from VB6 to .net(C#). after rewriting code modules and testing them now started making my application.
i have multiple projects in my solution( Like Framework ). compiler giving Dll files for each project. i want to merge…

Media Hub
- 1
- 1
- 4
0
votes
0 answers
Change AssemblyCompany Attribute in UWP Projetct - AssemblyInfo.Versioning.AutoGenerated.cs Files
Always I rebuil my project, the files with name "AssemblyInfo.Versioning.AutoGenerated.cs" are generated. This files have some information like:
[assembly: AssemblyCompany("Company Name XPTO")]
[assembly: AssemblyProduct("Project Name…

fipcurren88
- 701
- 5
- 26