visual-studio-2019

setup file failing debugging enabled

折月煮酒 提交于 2021-02-05 12:07:36
问题 I have used Setup Project before with no issue the project did not have SQLite DB as a dependency I am now trying to make a EXE or msi file for a project that has SQLite included as System.Data.SQLite.Core and the project is a WinForms with a WPF TextBox with this code below Public Sub LoadTB() Dim tb As Windows.Controls.TextBox = New Windows.Controls.TextBox() ElementHost1.Child = tb tb.SpellCheck.IsEnabled = True AddHandler tb.TextChanged, AddressOf tb_TextChanged tb.TextWrapping = Windows

setup file failing debugging enabled

允我心安 提交于 2021-02-05 12:07:17
问题 I have used Setup Project before with no issue the project did not have SQLite DB as a dependency I am now trying to make a EXE or msi file for a project that has SQLite included as System.Data.SQLite.Core and the project is a WinForms with a WPF TextBox with this code below Public Sub LoadTB() Dim tb As Windows.Controls.TextBox = New Windows.Controls.TextBox() ElementHost1.Child = tb tb.SpellCheck.IsEnabled = True AddHandler tb.TextChanged, AddressOf tb_TextChanged tb.TextWrapping = Windows

setup file failing debugging enabled

假如想象 提交于 2021-02-05 12:07:06
问题 I have used Setup Project before with no issue the project did not have SQLite DB as a dependency I am now trying to make a EXE or msi file for a project that has SQLite included as System.Data.SQLite.Core and the project is a WinForms with a WPF TextBox with this code below Public Sub LoadTB() Dim tb As Windows.Controls.TextBox = New Windows.Controls.TextBox() ElementHost1.Child = tb tb.SpellCheck.IsEnabled = True AddHandler tb.TextChanged, AddressOf tb_TextChanged tb.TextWrapping = Windows

To use WDK in VS2019, which Spectre-mitigated library should be installed

冷暖自知 提交于 2021-02-05 11:23:06
问题 When using WDK in VS2019, I get this build error: Error MSB8040: Spectre-mitigated libraries are required for this project There are a lot of items in VS2019 setup that contains "spectre". This https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk#wdk-for-windows-10-version-1903 says: For each architecture you intend to build drivers for, install the Spectre mitigated libraries thru Individual Components -> Compilers, build tools, and runtimes -> MSVC v142 - VS 2019 C+

Visual Studio 2019 installer project: how to remove launch condition for .NET Framework

╄→尐↘猪︶ㄣ 提交于 2021-02-05 08:41:50
问题 The extension Visual Studio Installer Projects was dropped at some point - about 10 years ago. Protests from many developers caused Microsoft to change its mind and the extension was reintroduced and then left unchanged as far as I know. I have worked with it for a long time - actually to package applications built outside Visual Studio (i.e. Delphi and Java stuff). This worked well until recently. Now a dependency is somehow detected for .NET Framework 4.7.2, but my colleagues assured me

Auto return type of template and ambiguity

▼魔方 西西 提交于 2021-02-04 12:56:05
问题 I have an overloaded template function: template<typename T1, typename T2> auto overMax(T1 a, T2 b) { std::cout << __FUNCSIG__ << std::endl; return b < a ? a : b; } template<typename RT, typename T1, typename T2> RT overMax(T1 a, T2 b) { std::cout << __FUNCSIG__ << std::endl; return b < a ? a : b; } If I call it like this: auto a = overMax(4, 7.2); // uses first template auto b = overMax<double>(4, 7.2); // uses second template everything works perfect, but auto c = overMax<int>(4, 7.2); //

How to change default C++ language standard in Visual Studio 2019?

…衆ロ難τιáo~ 提交于 2021-02-04 08:09:54
问题 I'd like to use C++17 for my projects without always having to change it in the properties when starting a new one. Is this possible? Thanks! 回答1: Edit the property sheet under the View -> Other Windows -> Property Manager Next open the tree for a project and then the platform you wish to change. The settings here are inherited by default for all project configurations of the corresponding platform so right click the node for "Microsoft.Cpp..User" and then go to C/C++ -> Language and set the

Can't open txt files in c++ program with Visual Studio 2019

99封情书 提交于 2021-02-02 03:46:57
问题 I just started using Visual Studio 2019 after using XCode for a while. I was always able to open txt files in XCode but now I can't open them in Visual Studio 2019. Basically what I do is I press "Start Without Debugging" in the "Debug" tab I and get the error message "File Did Not Open!" from the else statement that I wrote. I am not sure if it has something to do with where the txt file is located or with the file path. Below is the simple program that I've so far been using to figure out

Can't open txt files in c++ program with Visual Studio 2019

天大地大妈咪最大 提交于 2021-02-02 03:46:35
问题 I just started using Visual Studio 2019 after using XCode for a while. I was always able to open txt files in XCode but now I can't open them in Visual Studio 2019. Basically what I do is I press "Start Without Debugging" in the "Debug" tab I and get the error message "File Did Not Open!" from the else statement that I wrote. I am not sure if it has something to do with where the txt file is located or with the file path. Below is the simple program that I've so far been using to figure out

Visual Studio 2019 (16.4.2) crashed without being able to open solutions

心不动则不痛 提交于 2021-01-29 19:05:55
问题 I just see 16.4.2 released, but after I upgraded my VS 2019, as soon as I try to open a solution I got error The 'RoslynPackage' package did not load correctly. The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\my-user\AppData\Roaming\Microsoft\VisualStudio\16.0_db5aa3ff\ActivityLog.xml'. Restarting Visual Studio could help resolve this issue. When I open ActivityLog.xml and