Questions tagged [visual-studio-2017]

Visual Studio 2017 (aka Visual Studio "15", includes C++ compiler version 19.1) is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about this specific version.

Visual Studio 2017 is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about Visual Studio 2017. Visual Studio 2017 was released to market (RTM) on March 7th 2017.

Some Major Changes and improvements

  • Modular installation of the IDE
  • Enhanced Performance on opening a solution
  • Extended support for new and Visual Basic 15 language features
  • is available for all TypeScript projects in Visual Studio
  • Support for language features
  • Live Unit Testing

Release notes can be found at the official Microsoft page.

12688 questions
5
votes
1 answer

Shall using introduce a new member function or just an alias?

The following minimal example compiles fine with MSVC 17 but produces a compilation error on GCC 8.2. Which compiler is right? Is this code correct in C++17? #include class A { public: A() = default; protected: void foo(int…
Joseph
  • 53
  • 5
5
votes
2 answers

How to get the line number from the call site using __LINE__ or some other method?

Consider this short program that I wrote: #include template constexpr int add(const int& a, const int& b) { if (Debug) std::cout << __FUNCTION__ << " called on line " << __LINE__…
Francis Cugler
  • 7,788
  • 2
  • 28
  • 59
5
votes
3 answers

Is it possible to debug a struct/class initialization member by member?

Initializing a class like this: var x = new Item() { ID = (int)..., Name = (string)..., .. }; I am getting an InvalidCastException on one of the assignments. There are quite a lot of them and the exception occurs on the whole expression even if…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
5
votes
1 answer

CMake's VS_PACKAGE_REFERENCES not adding a reference to VS2017 project

I'm trying to automatically add (nuget) references to my (C++) visual studio 2017 project using CMake. In this question, VS_PACKAGE_REFERENCES is suggested, available from CMAKE 3.15. So, I've added the following to my CMAKE…
Ben
  • 1,519
  • 23
  • 39
5
votes
4 answers

Why do my namespace references keep breaking in Visual Studio?

I asked this question on the Unity Forums but unfortunately no response there. Since this seems to be an error/issue with Visual Studio itself I am asking here as well. Situation I am unable to compile my project code in Visual Studio. It still…
5
votes
1 answer

Visual Studio: [DebuggerDisplay], shows "not a valid format specifier" when specifying format

If I specify a (date) format on the [DebuggerDisplay], I see a error CS0726: error CS0726: ':d' is not a valid format specifier For example this code: [DebuggerDisplay("{From:d} - {To:d}") public class DateRange { public DateTime From { get;…
Julian
  • 33,915
  • 22
  • 119
  • 174
5
votes
0 answers

Office 365 and Interop Services not working

Background My office has used Office 2010 for quite some time, and I have written an application to generate some Excel files that we upload to a web site. Recently, our company decided to go with Office 365. So, on my development machine I had 2010…
Doug Sholly
  • 123
  • 1
  • 10
5
votes
1 answer

Output window changes "Debug" to "Source control - Git"

I am using the output window to output some debug info. For some reason, Visual Studio occasionally changes the dropdown labeled "Show output from:" from "Debug" to "Source control - Git". Why? Can I stop this?
Anders Lindén
  • 6,839
  • 11
  • 56
  • 109
5
votes
4 answers

100s of errors that all go away when I view them?

I have hundreds of errors saying type or namespace doesn't exist (some are types and some are namespaces). When I click to view the error it initially opens the file and shows the squiggly line under code in question, however within a second or two…
BVernon
  • 3,205
  • 5
  • 28
  • 64
5
votes
0 answers

I can't preview data in SSIS 2017

I'm trying to extract data from an Oracle DB to SQL Server with SSIS 2016. I installed a Windows Server 2016, a SQL Server 2016 and a SSIS, a Visual Studio Professional 2017 and the ODTwithODAC122011 from Oracle for the drivers. Searching for a…
jmclaps
  • 51
  • 5
5
votes
1 answer

gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1

I used the command truffle unbox react to build a dapp. It is just the initial step of my dapp development. However, it sucks. It continually pops up gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual…
Jessie
  • 1,155
  • 3
  • 16
  • 27
5
votes
1 answer

Error in creating new docker image from my project file

On my windows 10 machine, when I am trying to create a docker image of my solution/project it is giving me following error (this is full log, error is at the end) Sending build context to Docker daemon 1.363MB Step 1/20 : FROM…
Karan
  • 752
  • 2
  • 13
  • 34
5
votes
2 answers

Installing SQL Server 2017 Developer Edition: How to repair the visual studio runtime (library) 'Microsoft Visual C++ 2019 X64 Minimum Runtime'?

I have a fully updated Visual Studio Professional 2017 installed, and I am now trying to install SQL Server 2017 Developer Edition, but receive the following error message (translated to English by me) and the installation of the SQL server…
B--rian
  • 5,578
  • 10
  • 38
  • 89
5
votes
1 answer

How to avoid seeing the Visual Studio Decompiler Legal Warning dialog?

In Visual Studo, if you have the "Enable navigation to decompiled sources" option enabled, and you select "go to definition" on some identifier for which you do not have the source code, you receive a dialog like this: The text of the above dialog,…
Mike Nakis
  • 56,297
  • 11
  • 110
  • 142
5
votes
1 answer

Force linking against Python release library in debug mode in Windows/Visual Studio from CMake

I'm developing a Python binding for a C++ library using Boost Python, for Linux and Windows (Visual Studio). In Windows, the static Boost Python library has a dependency against Python (this is motive for another thread, here), so, in my CMake…