visual-studio-2019

Can't install the extension on Visual Studio 2017 after installing Visual Studio 2019

浪子不回头ぞ 提交于 2020-05-29 10:34:09
问题 Only Visual Studio 2019 is present in VSIXInstaller, Visual Studio 2017 is missing and when I want to install the extension specifically for Visual Studio 2017 I can't do that 回答1: I believe this issue crops up due to the ' Visual Studio Extension File ' not having the appropriate supported VS Version Numbers specified in the ' .vsixmanifest '. (Changing the supported Version Number range will allow support for previous or future versions of Visual Studio.) Here is a Link to an answer of mine

Get an SSIS C# Script component to read from Excel via OleDb:

走远了吗. 提交于 2020-05-17 08:46:34
问题 I'm trying to build a SSIS package to read from Excel. I've found an excellent example here that is very close to what I need. My question here is: Starting with a blank solution, what are the bare minimum steps required to get a C# Script component to read from an .xlsx file? Here is my code: using System; using System.Data; using System.Data.OleDb; using Microsoft.SqlServer.Dts.Pipeline.Wrapper; using Microsoft.SqlServer.Dts.Runtime.Wrapper; [Microsoft.SqlServer.Dts.Pipeline

Entity Framework Core Error: An error occurred using the connection to database '' on server 'localhost'

≯℡__Kan透↙ 提交于 2020-05-17 08:45:07
问题 I have made an ASP.NET Core 3.1 Web-based application and want to use MySQL as the database. I have been following along with some YouTube tutorials on creating MySQL database with ASP.NET Core 3.1 [code first approach] including a tutorial from this site: https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-3.1&tabs=visual-studio I have created a DataModel Class , added a service to UseMySQL to the Startup.cs Class and created an AppDBContext Class that implements

Visual Studio Community 2019 Save HTML and CSS Files While Debugging

試著忘記壹切 提交于 2020-05-17 07:23:51
问题 I recently re-installed my dev machine and Visual Studio is not behaving like it used to. I must have missed an important setting. I used to be able to modify the html or css files within my ASP.NET Core 3.1 app while debugging. After I saved the files and refreshed my browser, the changes were present. That is no longer the case, I'm losing so much time restarting my debugging sessions. Anyone know what I'm missing? 回答1: After I saved the files and refreshed my browser, the changes were

Attempting to Install an extension to VS2019 results in a NullReferenceException

两盒软妹~` 提交于 2020-05-16 08:56:45
问题 I've not been able to add extensions to my VS 2019 since its release. I recently updated to Version 16.4.3 but I still get the same error when I try to add extensions. I've tried to do the following but it still fails with an error dialog above. Install from the Extension Manager in Visual Studio; Download extension from MarketPlace and double-clicking to install; Install using VSIXInstaller.exe Commandline in VS 2019 Developer Command Prompt admin mode. This is what I get from the install

Form designer view is not available in visual studio 2019 C# CMake project

随声附和 提交于 2020-05-15 17:52:12
问题 I'm trying to port my C# Windows Form project from .csproj to CSharp CMake CMakeLists.txt. I successfully made CMakeLists.txt similar to here. The only problem is when the project opened with CMakeLists.txt, the Form Designer is not available (as shown below). Is it any way to fix the problem? csproj: CMakeLists.txt: 回答1: Your second image (from your CMake-generated project) is in a different View than the first image. The first image is the Solution View , in which the Form1.cs and Form1

What is the official way to access the Visual Studio 2019 version of clang from the command prompt?

浪尽此生 提交于 2020-05-13 07:08:14
问题 I am trying to access the Visual Studio 2019 version of clang from the command prompt. I am looking for the official way to do this. So far it doesn't appear to be documented in any of the MSVC/clang blog posts. (Please note that I am not looking for other ways to build/install clang on Windows. This question specifically relates to the VS2019 clang component.) Using the Visual Studio Installer, I have installed Visual Studio 2019 Professional (version 16.4.1) along with the optional "C++

How can I add WPF items into a c# class library project in VS2019

夙愿已清 提交于 2020-05-11 07:36:33
问题 I have started a Class library project in Visual Studio 2019 and now wish to add WPF items (Window, user control, custom control) into it, but the 'Add Item' dialogue box doesn't list anything under the WPF section. I have come across this problem in previous versions of VS and managed to get round it by adding the element into the csproj file with the relevant WPF guids, however that doesn't appear to work with the new VS2019 stripped down csproj file, or I don't know where to find the

How to add a scroll view in storyboard visual studio 2019

十年热恋 提交于 2020-04-28 11:23:32
问题 I have looked everywhere on the internet and can't find the answer to how to add a scroll view in storyboard visual studio 2019. I know that there is a UI scroll view and that your suppose to put a view on top of that although I can't figure it out. 回答1: Why don't you use the Xcode to design? Just right click on story board and open with Xcode. And check this basic tutorial of UIscrollview. https://youtu.be/_Qn3UGad3lg 来源: https://stackoverflow.com/questions/60234502/how-to-add-a-scroll-view

append %PATH% of many Visual Studio property sheets (.props) additively

依然范特西╮ 提交于 2020-04-18 01:48:21
问题 To define PATH locally in a project from property sheet, I need to add it in LocalDebuggerEnvironment . This approach works well when there is only 1 property sheet that define PATH . If I have more than one property sheet, while I want to use PATH from every property sheet, Visual Studio will consider only PATH of the last property sheet that I have included. Example If I create property sheet B1.props :- <PropertyGroup Label="UserMacros"><LocalDebuggerEnvironment> PATH=SOMEPATH1;%PATH% <