Click here to Skip to main content
15,921,028 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to compare the image in datagridviewImage column Pin
Henry Minute30-Sep-10 18:57
Henry Minute30-Sep-10 18:57 
QuestionConsole Apps for Assemblyinfo.cs version number update. Pin
123!@#aruk29-Sep-10 18:57
123!@#aruk29-Sep-10 18:57 
AnswerRe: Console Apps for Assemblyinfo.cs version number update. Pin
SeMartens29-Sep-10 20:51
SeMartens29-Sep-10 20:51 
Hi Arul,

Reflection does not seem to be the best way to do this. I suggest that you should search all AssemblyInfo.cs files in a specified folder (using DirectoryInfo-class). Open each file (with a StreamReader) and read the file content. Then use a regular expression (Regex-namespace) to find the "AssemblyVersion"-string and replace the version with '4.0.0.0' or whatever number you want to set. Then write the content to the file (to overwrite) by using a StreamWriter.

After that you can build your assembly with the new version number.

Let me know if you need more details on the point where you stuck.

Regards
Sebastian
It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

GeneralRe: Console Apps for Assemblyinfo.cs version number update. Pin
123!@#aruk30-Sep-10 20:39
123!@#aruk30-Sep-10 20:39 
AnswerRe: Console Apps for Assemblyinfo.cs version number update. Pin
Pete O'Hanlon29-Sep-10 21:54
mvePete O'Hanlon29-Sep-10 21:54 
AnswerRe: Console Apps for Assemblyinfo.cs version number update. Pin
PIEBALDconsult30-Sep-10 3:26
mvePIEBALDconsult30-Sep-10 3:26 
QuestionWPF MVVM Navigation Pin
eddieangel29-Sep-10 11:55
eddieangel29-Sep-10 11:55 
AnswerRe: WPF MVVM Navigation Pin
Arun Jacob29-Sep-10 18:38
Arun Jacob29-Sep-10 18:38 
AnswerRe: WPF MVVM Navigation Pin
Pete O'Hanlon29-Sep-10 21:51
mvePete O'Hanlon29-Sep-10 21:51 
GeneralRe: WPF MVVM Navigation Pin
eddieangel30-Sep-10 6:27
eddieangel30-Sep-10 6:27 
GeneralRe: WPF MVVM Navigation Pin
Pete O'Hanlon30-Sep-10 10:04
mvePete O'Hanlon30-Sep-10 10:04 
Questionreceiving data from usb port Pin
Zafar24829-Sep-10 4:39
Zafar24829-Sep-10 4:39 
AnswerRe: receiving data from usb port Pin
OriginalGriff29-Sep-10 4:51
mveOriginalGriff29-Sep-10 4:51 
GeneralRe: receiving data from usb port Pin
Sauro Viti29-Sep-10 4:56
professionalSauro Viti29-Sep-10 4:56 
GeneralRe: receiving data from usb port Pin
Dave Kreskowiak29-Sep-10 5:48
mveDave Kreskowiak29-Sep-10 5:48 
AnswerRe: receiving data from usb port Pin
Sauro Viti29-Sep-10 4:53
professionalSauro Viti29-Sep-10 4:53 
QuestionWCF Get Endpoint from my Client Pin
softwarejaeger29-Sep-10 3:22
softwarejaeger29-Sep-10 3:22 
AnswerRe: WCF Get Endpoint from my Client Pin
Nish Nishant29-Sep-10 5:34
sitebuilderNish Nishant29-Sep-10 5:34 
GeneralRe: WCF Get Endpoint from my Client Pin
softwarejaeger30-Sep-10 20:45
softwarejaeger30-Sep-10 20:45 
GeneralRe: WCF Get Endpoint from my Client Pin
softwarejaeger4-Oct-10 21:09
softwarejaeger4-Oct-10 21:09 
QuestionWCF Connection Pin
cdpace29-Sep-10 1:03
cdpace29-Sep-10 1:03 
AnswerRe: WCF Connection Pin
Pete O'Hanlon29-Sep-10 1:09
mvePete O'Hanlon29-Sep-10 1:09 
GeneralRe: WCF Connection Pin
cdpace29-Sep-10 1:17
cdpace29-Sep-10 1:17 
GeneralRe: WCF Connection Pin
Pete O'Hanlon29-Sep-10 1:32
mvePete O'Hanlon29-Sep-10 1:32 
GeneralRe: WCF Connection Pin
jschell29-Sep-10 9:34
jschell29-Sep-10 9:34 

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.