Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Detect which version of Visual Studio compiled a program

Reply
 
Old 12-16-2008   #1 (permalink)
Barry Flynn


 
 

Detect which version of Visual Studio compiled a program


Is it possible for a VB Win Forms program to detect whether it has been
compiled with VS 2005 or VS 2008?

Thanks

Barry Flynn




My System SpecsSystem Spec
Old 12-16-2008   #2 (permalink)
Stanimir Stoyanov


 
 

Re: Detect which version of Visual Studio compiled a program

To my knowledge, such information is not kept in the assembly metadata.

Why do you have to perform this check; what has to happen in either case?
--
Stanimir Stoyanov
http://stoyanoff.info

"Barry Flynn" <Anonymouse> wrote in message
news:%23Qs06f8XJHA.1272@xxxxxx
Quote:

>
> Is it possible for a VB Win Forms program to detect whether it has been
> compiled with VS 2005 or VS 2008?
>
> Thanks
>
> Barry Flynn
>
>
>
My System SpecsSystem Spec
Old 12-16-2008   #3 (permalink)
Barry Flynn


 
 

Re: Detect which version of Visual Studio compiled a program

Thanks for the reply.

<< > Why do you have to perform this check; what has to happen in either
case?
Its just for informational purposes.
I need to keep some projects in both VS 2005 and VS 2008 for a while, and to
avoid doubling up coding & testing of changes, I would like to keep a single
set of source code in VS2005 which periodically gets copied into a VS 2008
environment and compiled.
In case I get myself confused, I was just considering ways to tell, with
certainty, which version a particular .exe had been compiled with.

Thanks

Barry

--

Barry Flynn
Complete Solutions DG


"Stanimir Stoyanov" <stoyanov@xxxxxx> wrote in message
news:F1E5329A-1BCE-4E6E-8AF4-86CF2D73E24A@xxxxxx
Quote:

> To my knowledge, such information is not kept in the assembly metadata.
>
> Why do you have to perform this check; what has to happen in either case?
> --
> Stanimir Stoyanov
> http://stoyanoff.info
>
> "Barry Flynn" <Anonymouse> wrote in message
> news:%23Qs06f8XJHA.1272@xxxxxx
Quote:

>>
>> Is it possible for a VB Win Forms program to detect whether it has been
>> compiled with VS 2005 or VS 2008?
>>
>> Thanks
>>
>> Barry Flynn
>>
>>
>>
>

My System SpecsSystem Spec
Old 12-16-2008   #4 (permalink)
Bob Milton


 
 

Re: Detect which version of Visual Studio compiled a program

Barry,
Try using dumpbin. The PE headers used to contain the version of the
linker used to produce the file, and MS always changed the linker version
for each version of VS.
Bob

"Barry Flynn" <Anonymouse> wrote in message
news:%23luSTI9XJHA.1328@xxxxxx
Quote:

> Thanks for the reply.
>
> << > Why do you have to perform this check; what has to happen in either
> case?
> Its just for informational purposes.
> I need to keep some projects in both VS 2005 and VS 2008 for a while, and
> to avoid doubling up coding & testing of changes, I would like to keep a
> single set of source code in VS2005 which periodically gets copied into a
> VS 2008 environment and compiled.
> In case I get myself confused, I was just considering ways to tell, with
> certainty, which version a particular .exe had been compiled with.
>
> Thanks
>
> Barry
>
> --
>
> Barry Flynn
> Complete Solutions DG
>
>
> "Stanimir Stoyanov" <stoyanov@xxxxxx> wrote in message
> news:F1E5329A-1BCE-4E6E-8AF4-86CF2D73E24A@xxxxxx
Quote:

>> To my knowledge, such information is not kept in the assembly metadata.
>>
>> Why do you have to perform this check; what has to happen in either case?
>> --
>> Stanimir Stoyanov
>> http://stoyanoff.info
>>
>> "Barry Flynn" <Anonymouse> wrote in message
>> news:%23Qs06f8XJHA.1272@xxxxxx
Quote:

>>>
>>> Is it possible for a VB Win Forms program to detect whether it has been
>>> compiled with VS 2005 or VS 2008?
>>>
>>> Thanks
>>>
>>> Barry Flynn
>>>
>>>
>>>
>>
>
>

My System SpecsSystem Spec
Old 12-17-2008   #5 (permalink)
Barry Flynn


 
 

Re: Detect which version of Visual Studio compiled a program

Thanks Bob.

I didn't know about DumpBin.
I'll have a look at it.

Barry


"Bob Milton" <DocBob1945@xxxxxx> wrote in message
news:eA0Q%23J9XJHA.5336@xxxxxx
Quote:

> Barry,
> Try using dumpbin. The PE headers used to contain the version of the
> linker used to produce the file, and MS always changed the linker version
> for each version of VS.
> Bob
>
> "Barry Flynn" <Anonymouse> wrote in message
> news:%23luSTI9XJHA.1328@xxxxxx
Quote:

>> Thanks for the reply.
>>
>> << > Why do you have to perform this check; what has to happen in either
>> case?
>> Its just for informational purposes.
>> I need to keep some projects in both VS 2005 and VS 2008 for a while, and
>> to avoid doubling up coding & testing of changes, I would like to keep a
>> single set of source code in VS2005 which periodically gets copied into a
>> VS 2008 environment and compiled.
>> In case I get myself confused, I was just considering ways to tell, with
>> certainty, which version a particular .exe had been compiled with.
>>
>> Thanks
>>
>> Barry
>>
>> --
>>
>> Barry Flynn
>> Complete Solutions DG
>>
>>
>> "Stanimir Stoyanov" <stoyanov@xxxxxx> wrote in message
>> news:F1E5329A-1BCE-4E6E-8AF4-86CF2D73E24A@xxxxxx
Quote:

>>> To my knowledge, such information is not kept in the assembly metadata.
>>>
>>> Why do you have to perform this check; what has to happen in either
>>> case?
>>> --
>>> Stanimir Stoyanov
>>> http://stoyanoff.info
>>>
>>> "Barry Flynn" <Anonymouse> wrote in message
>>> news:%23Qs06f8XJHA.1272@xxxxxx
>>>>
>>>> Is it possible for a VB Win Forms program to detect whether it has been
>>>> compiled with VS 2005 or VS 2008?
>>>>
>>>> Thanks
>>>>
>>>> Barry Flynn
>>>>
>>>>
>>>>
>>>
>>
>>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Debugging a Visual Studio 2008 Program under Vista? Vista General
What version of visual studio for vb.net? .NET General
Code compiled on old visual studio. Running VS2008 Pro now .NET General
install old visual studio .net version .NET General
Microsoft Enhances Application Security Tool in Visual Studio With Improved Version of Dotfuscator Vista News


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46