visual-studio-2019

Xamarin.iOS: Cannot run after Visual Studio 2019 Update

混江龙づ霸主 提交于 2020-01-16 09:02:10
问题 i'm facing a strange situation, After Updating Visual Studio 2019, i'm not able to run the application in iOS, this happen when i try to run from a Windows Computer Linked to a Mac. But when i run the app using Visual Studio for Mac instead of windows, the app run without issues. I looked into VS configurations and paths for Xcode and are correct (/Applications/Xcode.app).The path on the Mac exists and are reachables. I tried the following solution, but it doesn't work: Open simulator -- >

Intel Compiler 18.0 Toolset raises exception with msbuild

南笙酒味 提交于 2020-01-16 05:19:06
问题 I reinstalled my machine and installed Visual Studio 2017 , Visual Studio 2019 (Preview) and the Intel Compiler 18 . Due to unknown reasons, my projects do not work anymore, and I can't figure out what's causing it. Did anyone ever experience the following error message? My project uses the Intel C++ Compiler 18.0 toolset. Visual Studio 2017 error message : 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xmemory0(178): error : identifier "_

Update .NET Core Tools

荒凉一梦 提交于 2020-01-15 09:49:26
问题 I'm trying to use EntityFrameworkCore@3.1. In order to do this at this point I already have: - Installed Visual Studio 2019 Preview - Installed the .NET Core 3.1 Runtime - Installed the .NET Core 3.1 SDK Now I still can't run the command dotnet ef migrations add xxx . It's saying that I have to update the dotnet tools. So I run the following command in an administrator powershell: PS C:\WINDOWS\system32> dotnet tool update --global dotnet-ef Tool 'dotnet-ef' was reinstalled with the latest

Why is Visual Studio on Compiler Explorer ignoring the Exception Model setting?

允我心安 提交于 2020-01-14 10:23:39
问题 When I try to use the /EHs flag in a Compiler Explorer testcase (to "enable" exceptions passing through extern "C" functions), VC++ 19.22 seems to be ignoring it, based on it still kicking out a C5039 and not actually changing the code. What am I missing? Have I forgotten another switch or something? Base case cmdline: /O1 /EHsc /Wall /wd4571 Test case cmdline: /O1 /EHs /Wall /wd4571 回答1: Ah, looks like Compiler Explorer sets the exception model itself, and this is taking precedence. 来源:

Why is Visual Studio on Compiler Explorer ignoring the Exception Model setting?

孤街浪徒 提交于 2020-01-14 10:23:32
问题 When I try to use the /EHs flag in a Compiler Explorer testcase (to "enable" exceptions passing through extern "C" functions), VC++ 19.22 seems to be ignoring it, based on it still kicking out a C5039 and not actually changing the code. What am I missing? Have I forgotten another switch or something? Base case cmdline: /O1 /EHsc /Wall /wd4571 Test case cmdline: /O1 /EHs /Wall /wd4571 回答1: Ah, looks like Compiler Explorer sets the exception model itself, and this is taking precedence. 来源:

.Net Core 2.2 Web API 405

只愿长相守 提交于 2020-01-14 04:25:15
问题 I am trying to setup a .net core 2.2 web api to use a post verb. Anything other than a get verb returns a 405 no matter if it is run on my local machine (w10 iis eXPRESS 10.0) or the windows server (2016 R2 IIS 8.0). I've read the other posts about disabling WebDav in your config file, adding a route, and completely removing the WebDav feature. I have done all of those to no avail. I'm just starting to develop in core and find this baffling, on the same server is a non-core web api that runs

After updated Visual Studio 2019 to 16.4.0 I can't run tests with target framework 2.2

左心房为你撑大大i 提交于 2020-01-13 07:48:14
问题 I have updated Visual studio 2019 to version 16.4.0. This version includes .NET Core SDK 3.1.100. After that, I have tried to run some Unit Tests that I have on a project with Target Framework 2.2 but it's not being able to do so. It gives the following error: Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Testhost process exited with error: It was not possible to find any compatible framework version The framework 'Microsoft.AspNetCore.App', version '2.2.0' was not

Trying to write C code in VS, cannot build due to C++ errors [duplicate]

谁都会走 提交于 2020-01-07 09:54:23
问题 This question already has answers here : Does Visual Studio 2017 fully support C99? (2 answers) Closed last month . I'm trying to use the latest Visual Studio 2019 Community to run some C projects, but the compiler tries to build it as if it was c++ code. For example, declaring an array like this throws the error: "expression must have a constant value" #include <stdio.h> int main(){ int input; scanf("%d", &input); int array[input]; return 0; } I understand that C++ doesn't allow declaration

Web API project fails to load in Visual Studio 2019 - error: 'The method or operation is not implemented'

[亡魂溺海] 提交于 2020-01-06 05:39:08
问题 I have a ASP.Net Web API project that is failing to load in Visual Studio 2019. When I try to reload the project from the Solution Explorer I get the error: The method or operation is not implemented Any ideas what might be causing this? 回答1: A bit of a cryptic error message - the actual problem preventing the project from loading was: In the csproj file for the project, section, I had <UseIIS>true</UseIIS> and IISUrl pointing to a local site that was not yet set up on IIS, e.g. <IISUrl>http:

Visual Studio 2019 Typescript Custom Item Template

依然范特西╮ 提交于 2020-01-06 05:37:14
问题 I am trying to create a Custom Item Template in Visual Studio 2019, I tried starting with exporting an existing file in my project using Project->Export Template and left all the defaults as is. But no matter where the file was copied to it doesn't show up in Solution Explorer->Context Menu->Add->New Item I searched through all the groups and it didn't show up. I found a couple of other questions regarding this but none of them seemed to work. Custom ItemTemplate does not appear in Visual