How to check c++ version in microsoft visual studio 2017
I am trying to check the version of c++ i have with the following code.
the output is C++98 version , but i am definitely able to use c++11 features so i think i am not getting the correct version from the code.
How can i check which version of c++ i am using ?
![]()
2 Answers 2
Easier way to check it than writing a program is under Project (right-click your project name in solution explorer) > Properties > C/C++ > Language > C++ Language Standard
And you can also change it there.
I know it thanks to this answer.
![]()
You need to compile with the /Zc:__cplusplus switch to see the updated value of the __cplusplus macro.
Note that this was added in MSVC 2017 (version 15.7 Preview 3), it’s not available in older versions.
![]()
-
The Overflow Blog
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.8.29.43607
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
какую версию C # я использую
Я совершенно не знаком с С#, поэтому, пожалуйста, не слишком сильно меня бить. Что меня удивляет тем, что я не смог найти этот ответ на SO, поэтому я думаю, что мне не хватает чего-то или чего-то плохого в поисках вещей. BTW, этот вопрос не отвечает, хотя название предполагает, что он должен.
Спасибо за ответы. Сейчас я понял, что это зависит от платформы .NET, но есть ли программный способ выяснить мои рамки? (не переходя в каталог и не проверяя имя моих папок .NET)
Узнать версию стандарта C++
Visual с++ выбрать версию стандарта си
visual с++ выбрать версию стандарта си в настройках visual studio 2017 есть только возможность.
Как узнать версию gcc (или g++)?
прогаю на C::B. Нужно понять, что ставить в поле языка для загрузки проги на сайт. там дофига.
Как узнать версию windows и модели видеокарты и саундкарты?
Как узнать версию windows и модели видеократы и саундкарты? MinGW, code blocks.
Узнать версию
В начале QML же обычно пишется что-то типа import QtQuick 5.7? Так вот как узнать эту самую версию.
Сообщение от rikimaru2013
rikimaru2013, хм. А студия не переводится между стандартами, как gcc ?
Добавлено через 1 минуту
Ибо gcc может так:
C:\Users\FraidZZ\c++\test\Test>g++ main.cpp -o test.exe & test
199711
C:\Users\FraidZZ\c++\test\Test>g++ main.cpp -o test.exe -std=c++11 & test
201103
C:\Users\FraidZZ\c++\test\Test>g++ main.cpp -o test.exe -std=c++14 & test
201300
Сообщение от FraidZZ
Узнать версию Java из реестра
Нужно узнать версию Java на компьютере и в зависимости от результата принять какое либо действие.
Как узнать версию приложения?
В про-файле у меня стоит строчка VERSION = 1.0 Как во время компиляции/исполнения программы.
Узнать версию компилятора в CodeBlocks
Хотел проверить версию компилятора, но когда открываю gcc.exe выдает ошибку.
Как правильно создать и использовать radiobutton? Можно ли из программы узнать версию Windows ?
Здравствуйте. Как правильно создать и использовать элементы radiobutton ? Если я просто создам.
Узнать версию ОС
хотелось бы попробовать пример с оператором исполнения, но прежде чем его использовать(например.
Как узнать версию ОС?
У меня задача стоит, сделать проверку операционки, чтобы задействовать правильный участок скрипта.
The Ultimate Guide to Checking the C# Version in Visual Studio 2022
In this article, I will tell you about how to check the C# version in Visual Studio 2022.
Recently, I came across a real-time project in which I had to migrate the .Net Core older version application to .NET Core 3.1.
In my next blog, I will explain the whole migration process step by step .
But before that, I would like to explain a piece of very basic information that every .NET developer should be aware of.
How to know which C# version is being used in Visual Studio?
I copied one project which was built in Visual Studio 2017 and .NET Core 2.2, then I opened the same project in Visual Studio 2022 .
And I see so many errors mentioning similar lines. The error statement was –
So, first I checked the C# version of the current project.
To check this, right-click on the Project name in solution explorer and select Build->Advanced
You will see the Language version 8.0 as shown in the article.

How to change C# version in your project?
To change the version of C# go to the .csproj file and add the below line.
Complete .csproj file snippet.
I have used C# 10 because I am using Visual Studio 2022, you can change it according to your availability and requirement.
You may check this link for C# Version History – Evolution of .NET