Click here to Skip to main content
16,004,602 members
Home / Discussions / C#
   

C#

 
Questionsignature of a file [modified] Pin
Mahmood Ilyas5-Jun-06 1:19
Mahmood Ilyas5-Jun-06 1:19 
AnswerRe: signature of a file Pin
Ed.Poore5-Jun-06 1:33
Ed.Poore5-Jun-06 1:33 
Questionantispyware Pin
Mahmood Ilyas5-Jun-06 1:12
Mahmood Ilyas5-Jun-06 1:12 
AnswerRe: antispyware Pin
Wjousts5-Jun-06 4:55
Wjousts5-Jun-06 4:55 
GeneralRe: antispyware Pin
led mike5-Jun-06 5:55
led mike5-Jun-06 5:55 
AnswerRe: antispyware Pin
Eric Seipp5-Jun-06 6:05
Eric Seipp5-Jun-06 6:05 
Questionhow to include header file in C# project [modified] Pin
Daniel Dusek5-Jun-06 1:03
Daniel Dusek5-Jun-06 1:03 
AnswerRe: how to include header file in C# project Pin
Ed.Poore5-Jun-06 1:41
Ed.Poore5-Jun-06 1:41 
Is the header file a C# file because that code will not compile, C# seems to only allow you to define symbols and not the C style macro replacements.

I'm guessing that that header file is for another part of the project written in C++ or another language and you want to use that header file to define the assembly version of the C# project, am I correct?

I just tried something like this: [assembly: AssemblyVersion(System.IO.File.ReadAllText(@"temp.txt"))] to see if you could write a static class that would parse the header file but it returns this compile error: An attribute argument must be a constant expression, typeof expression or array creation expression.

So it looks as if you can't do it directly in C#.

The only possibility that I can think of is if you create a small program which parses your header file to extract the version information and then inserts this into the AssemblyInfo.cs file and run this program as a pre-build event.

Hope that's of some help.



You know you're a Land Rover owner when the best route from point A to point B is through the mud.

Ed
GeneralRe: how to include header file in C# project Pin
Daniel Dusek5-Jun-06 2:05
Daniel Dusek5-Jun-06 2:05 
GeneralRe: how to include header file in C# project Pin
Ed.Poore5-Jun-06 2:11
Ed.Poore5-Jun-06 2:11 
GeneralRe: how to include header file in C# project Pin
Kevin McFarlane5-Jun-06 2:26
Kevin McFarlane5-Jun-06 2:26 
GeneralRe: how to include header file in C# project Pin
Daniel Dusek5-Jun-06 2:32
Daniel Dusek5-Jun-06 2:32 
GeneralRe: how to include header file in C# project Pin
Kevin McFarlane5-Jun-06 3:51
Kevin McFarlane5-Jun-06 3:51 
AnswerRe: how to include header file in C# project [modified] Pin
leppie5-Jun-06 8:55
leppie5-Jun-06 8:55 
AnswerRe: how to include header file in C# project [modified] Pin
Daniel Dusek7-Jun-06 2:00
Daniel Dusek7-Jun-06 2:00 
Questionsavefiledialog help ? [modified] Pin
cmpeng345-Jun-06 0:34
cmpeng345-Jun-06 0:34 
AnswerRe: savefiledialog help ? Pin
Ed.Poore5-Jun-06 2:15
Ed.Poore5-Jun-06 2:15 
GeneralMessage Closed Pin
5-Jun-06 2:28
cmpeng345-Jun-06 2:28 
GeneralRe: savefiledialog help ? Pin
Dan Neely5-Jun-06 3:32
Dan Neely5-Jun-06 3:32 
Questiondatagridview problem: change cell type ? [modified] Pin
cmpeng345-Jun-06 0:24
cmpeng345-Jun-06 0:24 
AnswerRe: datagridview problem: change cell type ? Pin
RSindia5-Jun-06 0:35
RSindia5-Jun-06 0:35 
QuestionAdding assembly reference Problem Pin
EngHafez5-Jun-06 0:19
EngHafez5-Jun-06 0:19 
AnswerRe: Adding assembly reference Problem Pin
S. Senthil Kumar5-Jun-06 0:53
S. Senthil Kumar5-Jun-06 0:53 
GeneralRe: Adding assembly reference Problem Pin
EngHafez5-Jun-06 1:15
EngHafez5-Jun-06 1:15 
GeneralRe: Adding assembly reference Problem Pin
S. Senthil Kumar5-Jun-06 1:27
S. Senthil Kumar5-Jun-06 1:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.