R
rosenfeld1
I have a question regarding .NET C# programming. Is there a way to set
an assembly attribute in an AssemblyInfo.cs file using a preset Windows
Environment Variable?
The problem is that the AssemblyAtribute requires a CONST string and
the Environment Variable is only linked during run time.
i.e.
public class DelaySignFile
{
public string strFilePath;
DelaySignFile()
{
strFilePath = Environment.GetEnvironmentVariable("OutDirCommon");
}
}
[assembly: AssemblyKeyFile(DelaySignFile.strFilePath)];
Thanks,
Avi
an assembly attribute in an AssemblyInfo.cs file using a preset Windows
Environment Variable?
The problem is that the AssemblyAtribute requires a CONST string and
the Environment Variable is only linked during run time.
i.e.
public class DelaySignFile
{
public string strFilePath;
DelaySignFile()
{
strFilePath = Environment.GetEnvironmentVariable("OutDirCommon");
}
}
[assembly: AssemblyKeyFile(DelaySignFile.strFilePath)];
Thanks,
Avi