G
Guest
I'm using dotnetframework 1.1.
By the way, I don't know how to read the information of AssemblyInfo.cs file.
I wish to read it.
The following Example Files.
File 1: AssemblyInfo.cs
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("C#")]
[assembly: AssemblyDescription("C# language")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.1.0.1913")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
File2 : AssemblyInfoReading.cs
using System;
using System.Reflection;
class Class1
{
public static void Main()
{
Assembly SampleAssembly;
// You must supply a valid fully qualified assembly name here.
SampleAssembly = Assembly.Load("Assembly text name, Version,
Culture, PublicKeyToken");
Type[] Types = SampleAssembly.GetTypes();
// Display all the types contained in the specified assembly.
foreach (Type oType in Types)
{
Console.WriteLine(oType.Name.ToString());
}
}
}
Compile is no error, but Runtime is an error.
How I will change this files?
Thank you.
By the way, I don't know how to read the information of AssemblyInfo.cs file.
I wish to read it.
The following Example Files.
File 1: AssemblyInfo.cs
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("C#")]
[assembly: AssemblyDescription("C# language")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.1.0.1913")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
File2 : AssemblyInfoReading.cs
using System;
using System.Reflection;
class Class1
{
public static void Main()
{
Assembly SampleAssembly;
// You must supply a valid fully qualified assembly name here.
SampleAssembly = Assembly.Load("Assembly text name, Version,
Culture, PublicKeyToken");
Type[] Types = SampleAssembly.GetTypes();
// Display all the types contained in the specified assembly.
foreach (Type oType in Types)
{
Console.WriteLine(oType.Name.ToString());
}
}
}
Compile is no error, but Runtime is an error.
How I will change this files?
Thank you.