visual-studio-2019

VS 2019 Custom ASP.NET Core project templates

六眼飞鱼酱① 提交于 2019-12-06 13:32:07
问题 I'm trying to figure out how (or even if) I can create a custom Visual Studio project template that hooks into the existing ASP.NET Core Web Application template available in Visual Studio 2019? What I want to do is something similar to madskristensens ASP.NET Core Template Pack (GitHub source code). However instead of VS 2017 I want to do this for VS 2019's revamped "New Project Dialog" window. So imagine adding an additional ASP.NET Core web application template in the place highlighted

Visual Studio 2017 tells me a Visual Studio 2019 version is now available every time I open the IDE

血红的双手。 提交于 2019-12-06 11:22:12
问题 This just started today: whenever I open an instance of the VS 2017 IDE, I get a yellow bar informing me of a new version of Visual Studio 2019, which pushes down the existing windows thus reducing the visible area of the windows. I don't have or use VS 2019, and at this moment in time I don't care about its new versions. The first time it happened I clicked the "x" thinking that would be the end of it, and when it did it again I clicked "More info" with the same result. How do I stop this?

Debug .NET Core source (Visual Studio 2019)

戏子无情 提交于 2019-12-06 06:15:00
I use Visual Studio 2019 and .NET Core 3 web application. I'd like to debug .NET Core source code, so when an error occurs I can dive into the code and examine it in more detail. As I couldn't find an exact description on how to do it (even on Microsoft documentation site), I'll try to summarize here what I know so far. I have the following options in Visual Studio: Enable just my code Enable .NET framework source stepping Enable source server support Enable source link support The first two options are mutually exclusive. I suppose I should select the second option, although I don't

How to Change Ctrl+C in Visual Studio 2017 to Copy Word, Not Entire Line

自古美人都是妖i 提交于 2019-12-06 04:58:30
This question is similar to Disabling single line copy in Visual Studio , except that I'm wanting to change it to just copy the word the cursor is on, if nothing is not selected. If it's on white space, sure, I don't care, copy the line, but 99% I'm trying to copy a word, not the line Is this possible? To copy the word the caret is on, you can assign a shortcut to the following Visual Commander (developed by me) command (language C#): public class C : VisualCommanderExt.ICommand { public void Run(EnvDTE80.DTE2 DTE, Microsoft.VisualStudio.Shell.Package package) { this.DTE = DTE; EnvDTE

VS 2019 SSIS package can't add SQL Server

两盒软妹~` 提交于 2019-12-05 11:33:22
I installed Visual Studio 2019 and the SSIS package extensions and created a new project. I'm able to add my SQL Server as a Connection Manager with no issues, but when I then drag a Data Flow Task to the package and drag a Source Assistant into that, I'm not able to select my SQL Server. The source types shown are Excel, Flat File, and Oracle. If I uncheck the "show only installed source types" then I see SQL Server but I can't pick it. The interesting thing is on this same box I've been editing an SSIS project with Visual Studio 2017 so I know the SQL Server stuff works fine. However, if I

Saving project file in Visual Studio 2019 reverts changes in the csproj file

你离开我真会死。 提交于 2019-12-05 10:16:56
I'm using Microsoft Visual Studio Professional 2019 RC Version 16.0.0 (VisualStudio.16.Release/16.0.0+28729.10) and I'm finding that intermittently when I save a project file the changes to the project file are being undone. This has proved more than a little confusing as NuGet packages I've added disappear, or updated ones revert to previous versions. Likewise, if I've included files in the project they will then no longer be included after the save, so it looks like the changes are not getting to the csproj file correctly? Is anyone else experiencing this and does anyone know why this

How to get terminal window inside Visual Studio 2017 / 2019?

感情迁移 提交于 2019-12-05 09:28:57
I was just reading this article - https://devblogs.microsoft.com/dotnet/visual-studio-2019-net-productivity-2/ and noticed in one of the GIF image, she is showing a terminal window inside VS editor itself. It looks like a fully fledged powershell window. How can we get that? Here is a screenshot. How can we get that? The Terminal Window in the video seems to comes from a VS extension Whack Whack Terminal . You can download and install it in your vs2017. (Note:For vs2017, it should be higher versions than 15.6+) For more details(usage and settings) please check Adding a terminal window to

Installing OData v4 Client Code Generator in Visual Studio 2019

百般思念 提交于 2019-12-05 05:29:53
I made a OData service and I want to make a client program to call this service. I want to use OData v4 Client Code Generator, but I cannot install it in Visual Studio 2019 and I can only install it in vs2017. How can I install it in vs2019? Since Rahul's download link is expired (and according to the comment of Mostafa, it was missing a feature), I reupload a working version of the extension for Visual Studio 2019: https://gofile.io/?c=kXvXoR Some notes about upgrading the vsix file: 1) If you unzip the file, edit the contents (actually even without editing anything), rezip it and finally

Visual Studio 2017 tells me a Visual Studio 2019 version is now available every time I open the IDE

瘦欲@ 提交于 2019-12-04 16:28:00
This just started today: whenever I open an instance of the VS 2017 IDE, I get a yellow bar informing me of a new version of Visual Studio 2019, which pushes down the existing windows thus reducing the visible area of the windows. I don't have or use VS 2019, and at this moment in time I don't care about its new versions. The first time it happened I clicked the "x" thinking that would be the end of it, and when it did it again I clicked "More info" with the same result. How do I stop this? Posts like this erroneously point people to the "Tools | Options | Environment | Extensions and Update"

How do I find files that are missing from visual studio projects?

蹲街弑〆低调 提交于 2019-12-04 07:46:53
问题 Due to issues with merging etc, we have lots of project files that don’t contain all source code files that are within their folders. Before I write a little tool, that checks that every *.cs file is included in a project file, I wish to make sure that no-body else has already done that before. (We have close to 100 project files, and 1000s of C# files) ------------------- Clearly the support that visual studio now has for using wildcards to include all “*.cs” files from a given directory in