visual-studio-2019

GIT Fatal error: Authentication failed in Visual Studio

依然范特西╮ 提交于 2019-12-01 07:01:36
问题 As of today I'm getting errors when trying to use git commands with my repository in Azure-DevOps. The repositories sit in a project on DevOps that I can access with the same account and shows no sign of any recent changes to it. The steps I can take to reproduce it is: Open the command prompt and enter git fetch A window appears prompting for a login I click the account No password is prompted, but an e-mail arrives that a PAT has been created The command prompt yields an error Error: fatal:

Visual Studio ignores the code inside #if DEBUG / RELEASE scope and doesn't check for errors or autocompletes

拥有回忆 提交于 2019-12-01 02:44:42
问题 I've been writing an #if DEBUG , #else , #endif fragment of code, and I noticed that Visual Studio doesn't let me use autocomplete to fulfill partially typed member names, and it doesn't check the greyed out inactive code for errors. The only way I've found to make it care again is to switch the build mode from Debug to Release. But that's inconvenient and feels like there's a better way. example: #if DEBUG throw; #else throw new exc // I want to use autocomplete here but can't because it's

There are no scaffolders supported for this item Visual Studio 2019

女生的网名这么多〃 提交于 2019-11-30 23:19:59
问题 I'm using Visual Studio 2019 version 16.0.4, and I tried to create a view or a partial one on asp.net core 2.1 (in views folder) but I get an error There are no scaffolders supported for this item Then I realized this problem happens when you have a folder which its name is "Pages" in your project that we use this folder for razor pages . If I remove the pages folder then the views scaffold works. When I put it back it is broken again. I don't know it is a bug or not but I need to use both

radial.o : error LNK2001: unresolved external symbol lambda_fatal error LNK1120: 8 unresolved externals,error.failed with exit status 1120

好久不见. 提交于 2019-11-29 18:36:59
I am running an open-source package that has some codes in Python 3.7 mixed with Fortran FOR . I use Visual Studio 2019 and Intel Parallel Studio 2019 integrated.so when I run in Intel CMD f2py -c radial.for I got this error : radial.o : error LNK2001: unresolved external symbol lambda_ fatal error LNK1120: 8 unresolved externals error: Command...failed with exit status 1120 So what should I do.I tested that I have problem with Fortran Codes .Any help would be appreciated. my Intel CMD: There were some command maybe make it working wrong,but now I don't have any idea. ... running build running

Cloning repository from MSA backed Azure DevOps using Visual Studio 2017 or 2019 and AAD account

筅森魡賤 提交于 2019-11-29 16:26:39
Microsoft has introduced the option to invite AAD users into MSA backed Azure DevOps accounts. This is great for companies that are transitioning accounts over from "unmanaged" to "managed", starting with transferring account ownership to an AAD user and then fixing the user and licensing mess in a slower approach. However, when I try to clone a repository using Visual Studio 2017 or 2019, I'm greeted with an error message: Git failed with a fatal error. Authentication failed for: {remote-url}. or, depending on which version of the Git credential manager you have: error: cannot spawn askpass:

the value -1 is outside the acceptable range of [0,2147483647]. Parameter name: value

被刻印的时光 ゝ 提交于 2019-11-29 14:15:33
Problem with scaffolding any controller using visual studio 2019 i get the error : "there was an error running the selected code generator: 'The value -1 is outside the acceptable range of [0,2147483647]. Parameter name :value'" Related links i have tried and still this issues persist I tried the following : 1. ( Error while generating view in Visual Studio 2019 ) 2. ( Can't Add View from Controller in VS 2015 : "There was an error running the selected code generator" ) The issue is now fixed with the latest release of Visual Studio 2019: version 16.2.5: https://docs.microsoft.com/en-us

ASP.NET Core 3.0 not showing on Visual Studio 2019

拜拜、爱过 提交于 2019-11-29 02:51:46
I want to test the new Blazor server-side framework (aka Razor Components). I installed Visual Studio 2019 RC, and then the .Net Core 3.0 preview 2, following this official tutorial . After the install, I only see the ASP.NET Core 2.0 and the 2.1 on the "Create a new ASP.NET Core Web Application" page. The 3.0 is not showing up. I started to mess around, trying to install other packages from this page , uninstalled and reinstalled Visual Studio 2019, updated to the .NET Core Preview 3, installed several times the x64 and x86 packages in different orders, copy/paste the .Net Core binaries to

Cloning repository from MSA backed Azure DevOps using Visual Studio 2017 or 2019 and AAD account

余生颓废 提交于 2019-11-28 10:55:39
问题 Microsoft has introduced the option to invite AAD users into MSA backed Azure DevOps accounts. This is great for companies that are transitioning accounts over from "unmanaged" to "managed", starting with transferring account ownership to an AAD user and then fixing the user and licensing mess in a slower approach. However, when I try to clone a repository using Visual Studio 2017 or 2019, I'm greeted with an error message: Git failed with a fatal error. Authentication failed for: {remote-url

How to change font color for method names (from yellow) in the new Visual Studio 2019?

天涯浪子 提交于 2019-11-28 02:46:06
问题 I have updated to the newest Visual Studio 2019 and it looks like they have changed color scheme for text, e.g. method names became yellow. I would like to return it back to white as before, but can't figure out where this setting is. P.S. Same thing for parameter names that became blue. There is probably some option to switch to old color scheme? 回答1: VS2019 also introduced new "enhanced" colors for .NET languages, for which there is a separate option to toggle on and off: The same checkbox

How to enable Nullable Reference Types feature of C# 8.0 for the whole project

扶醉桌前 提交于 2019-11-27 12:41:31
问题 According to the C# 8 announcement video the "nullable reference types" feature can be enabled for the whole project. But how to enable it for the project? I did not find any new appropriate option in the Project Properties window in Visual Studio 2019 Preview 1. Can it be enabled for 'legacy' .csproj projects if the C# language version is changed to 8.0? 回答1: In Visual Studio 16.2 (from preview 1) the property name changed to Nullable which is simpler and aligns with the command line