visual-studio-2019

Visual Studio 2019: Error in “locals” panel during debugging - “internal error retrieving local value”

∥☆過路亽.° 提交于 2021-01-29 18:13:30
问题 Original Question (For reproduction instruction see Update II) I recently messed around with Visual Studio 2019 during a debugging session. I pinned some properties of the class "SqlCommand" as "Favorites". Since that moment I receive an error message "internal error retrieving local value" in the "locals". There is a "refresh" button on the right of the value column, and when I hit it, I get the message "Internal error in the expression evaluator." Now I am not able to unpin that specific

VS2019 - ViewBag does't exist in current context

一曲冷凌霜 提交于 2021-01-29 18:00:55
问题 I have installed VS 2019 for Mac and started building an application. In my view, I get the following errors: The name ViewBag does not exist in the current context. The name Layout does not exist in the current context. What could be the cause for the issue and How could we resolve this? 回答1: You might be missing the ../Views/Web.config file, because you created the project from an empty ASP.NET application instead of using an ASP.NET MVC template. Or You need to add MVC-specific Razor

'' is not a valid version string." exception in nuget for VS2019

丶灬走出姿态 提交于 2021-01-29 16:36:08
问题 I have installed VS 2019 today removing all other versions of VS (over come space crunch). Am trying to use nuget package manager but keep getting below exception. Nothing loads. I tried to install packages from console and ended up with same error as below. Any help would be appreciated. PM> Install-Package Microsoft.Azure.Devices -Version 1.21.0 Install-Package : '' is not a valid version string. At line:1 char:1 + Install-Package Microsoft.Azure.Devices -Version 1.21.0 + ~~~~~~~~~~~~~~~~~~

Doing a local NuGet package installation but getting the error - Unable to get repository signature information

元气小坏坏 提交于 2021-01-29 16:16:20
问题 I'm trying to do an offline NuGet package installation by following the answer by Samuel Jack here: Text 1. Add the files to a folder called LocalPackages next to solution 2. Create a file called NuGet.config next to solution file The .nupkg files are stored locally and installed using NuGet Package Manager but I'm getting this error - "Unable to get repository signature information for source https://api.nuget.org/v3-index/repository-signatures/5.0.0/index.json. Response status code does not

File Not Found error System.Data.SQLite, Version=1.0.113.0

帅比萌擦擦* 提交于 2021-01-29 14:53:43
问题 I have a WinForms project that is using System.Data.SQLite.Core with VS 2019 ver 16.7.2 with Net,Framework 4.8.03761 On a Windows 7 64 bit computer I will post a screen shot of my NuGet configuration I have used both PackageReference and Packages.config Here is the error after trying to run the installed project The EXE and MSI are created no error ************** Exception Text ************** System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.113

What changes have to be done to make this Windows textbox from 2011, work now, in 2019?

送分小仙女□ 提交于 2021-01-29 12:28:32
问题 What changes have to be done to make this Windows textbox from 2011, work now, in 2019? I tried compiling the code in this question from 2011 about making a C++ Textbox... #include <windows.h> #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); int APIENTRY WinMain(HINSTANCE

Xamarin Forms iOS AdMobViewRenderer VS2019

て烟熏妆下的殇ゞ 提交于 2021-01-29 12:14:25
问题 Things were working fine for both my Android and iOS versions of the app, then I updated VS2019 to 16.1.2 which brought along Xamarin 16.1 I can move forward in the app and it seems that all is well, but when I move backward (one step or PopToRoot), the Element is null in the AdMobViewRenderer. Any ideas? I am using Xamarin.Firebase.iOS.Admob 7.27.0.3 because that is the one version that would work properly without error. In anticipation of the "update" reply, I updated to the latest AdMob

Create new ProjectTemplate and not found into project template list

最后都变了- 提交于 2021-01-29 12:08:19
问题 Templates created do not appear in the template list for new projects I created a simple c # project and exported it as a template. * the zip is pushed into Visual Studio 2019 \ Templates \ ProjectTemplates * and in Visual Studio 2019 \ My Exported Templates But I can not find in the visual studio window when creating a new project I can not use a created template, which does not contain any changes to the .vstemplate 回答1: The following command allowed me to refresh the templates: devenv

Automating attaching to multiple processes in Visual Studio 2019

半腔热情 提交于 2021-01-29 10:48:46
问题 For my debugging I have to attach to many process instances: The EXE for our app. 5 instances of some other process (let's call it "foo"). 8 instances of some other process (let's call it "bar"). 41 instances of some other process (let's call it "Agnes" in honor of the Twilight Zone episode, "From Agnes with Love"). Rather than having to Ctrl-select all of them and then click "Attach", is there some sort of template I can define that will say?: Attach to and EXE called "whatever". All

How to change the default C++ template file?

本秂侑毒 提交于 2021-01-29 10:29:47
问题 I'm using Visual Studio 2019, and whenever I create a new C++ project it gives me a default file with the following code: // Template Test.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> int main() { std::cout << "Hello World!\n"; } // Run program: Ctrl + F5 or Debug > Start Without Debugging menu // Debug program: F5 or Debug > Start Debugging menu // Tips for Getting Started: // 1. Use the Solution Explorer window to add/manage