473,387 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Help!! How can I get current visual studio version in VC projectbuild event?

Ed
Hi, guys,
One question block me. I want to know current Visual Studio version,
"vc80" or "vc90" in Build Event. Can I use some macro in Build Event
to get it?

Thanks a lot!
Ed.

Aug 26 '08 #1
1 3505
Ed
On Aug 26, 3:49*pm, Ed <seah...@gmail.comwrote:
Hi, guys,
One question block me. *I want to know current Visual Studio version,
"vc80" or "vc90" in Build Event. Can I use some macro in Build Event
to get it?

Thanks a lot!
Ed.
I used a poor method as following:

<code>

@echo "$(DevEnvDir)">DevEnv.log

findstr /C:"Visual Studio 8" DevEnv.log
if errorlevel 0 goto BuildEventVC80

findstr /C:"Visual Studio 9" DevEnv.log
if errorlevel 0 goto BuildEventVC90

:BuildEventVC80
echo "VC 80"

goto BuildEventEnd
:BuildEventVC90
echo "VC 90"

goto BuildEventEnd

:BuildEventEnd
@echo "Build Event End"

</code>
Aug 26 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: zatenay | last post by:
Hey, I'm a beginner with Visual Studio and C++, so I've the following problem : when I run a program with Debug-Start without debugging command, I can't see the output, so I have to run it...
1
by: Bhargavan | last post by:
Hi, I have a Class A in one project. I need to get the instance of the visual stuio that Class A belongs in Class A. Is this possible? Any help would be greatly appreciated. Bhargavan M
1
by: Little Man | last post by:
is it not possible to connect sql 2000 server by visual basic .net standard version??? any solutions??? thanks
1
by: Tanja Krammer | last post by:
hi, are there compile constants for VS version and .NET version? #if VS_VERSION do() #else .... Thank you,
1
by: frien | last post by:
does anybody know how to create a installer in visual studio 2005.....i.e web setup......i am totally clueless.....plz help me Thanks in advance
1
by: JFMarsella | last post by:
Hello, I am new to Visual Studio and VB and am stumbling along but have hit a roadblock. I am attempting to build a very basic database application that needs to 1) allow input & manipulation of...
3
by: Johnny Jörgensen | last post by:
Just a quick question: The Visual Studio version number for VS6 is 6.0 and I can see in my Registry editor that the version number for Visual Studio 2005 is 8.0. Can I safely assume that the...
3
by: mauridepa | last post by:
I have Windows Vista with Visual Studio 2005 SP 1 i have a problem with debugger, when i start debug display this error: Unable to attach to application 'WebDev.WebServer.exe' (PID: 4832) using...
3
by: jlb | last post by:
I am converting a VB6 app to .NET Visual Studio 2005. I have about 20 forms. Ths app starts with Main_form, and then passes to a "loop" of about 14 forms that pass from 1 to another, with the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.