visual-studio-2017

ResolveComReference task could not be loaded

不问归期 提交于 2021-02-18 06:02:04
问题 Win7, VS2017, ASP Net core app, target framework is 4.6. When I try to build my project with CLI (it is needed before dotnet commands calling) the error occurs: C:...\Microsoft.Common.CurrentVersion.targets(2547,5): error MSB4062: The "Microsoft.Build.T asks.ResolveComReference" task could not be loaded from the assembly Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Confirm that the declaration is correct, that the assembly and all its

ResolveComReference task could not be loaded

你。 提交于 2021-02-18 06:01:26
问题 Win7, VS2017, ASP Net core app, target framework is 4.6. When I try to build my project with CLI (it is needed before dotnet commands calling) the error occurs: C:...\Microsoft.Common.CurrentVersion.targets(2547,5): error MSB4062: The "Microsoft.Build.T asks.ResolveComReference" task could not be loaded from the assembly Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Confirm that the declaration is correct, that the assembly and all its

Visual studio 2017 / 2019 add areas missing

佐手、 提交于 2021-02-18 05:01:05
问题 While creating a ASP.NET MVC Core Web app using VS2017 / 2019, came across that 'Add Areas' option is missing from Context menu. 回答1: Area is not removed from VS 2017/19 but it is moved in Scaffolding and you can access the area using below steps: 1) Right click on your project and click on Add>New Scaffolded Item 2) After click choose the MVC area from the Menu: 3) After choosing give it Name, and after this the Area will be added to your project: Hope it will helps. 回答2: I had a same

Visual studio 2017 / 2019 add areas missing

寵の児 提交于 2021-02-18 05:01:01
问题 While creating a ASP.NET MVC Core Web app using VS2017 / 2019, came across that 'Add Areas' option is missing from Context menu. 回答1: Area is not removed from VS 2017/19 but it is moved in Scaffolding and you can access the area using below steps: 1) Right click on your project and click on Add>New Scaffolded Item 2) After click choose the MVC area from the Menu: 3) After choosing give it Name, and after this the Area will be added to your project: Hope it will helps. 回答2: I had a same

How to use zlib library in visual studio 2017?

本小妞迷上赌 提交于 2021-02-18 02:25:29
问题 I want to use the zlib library in my c++ project. So, I have downloaded zlib library( zlib_1_2_8_msvc2015_64.zip ). Then, I have created zlib folder under "C:\Program Files\Zlib" . Then, Extract zlib_1_2_8_msvc2015_64.zip file into "C:\Program Files\Zlib" . After that, I have opened visual studio 2017 and goes to property => C/C++ => general => additional include directories and added that path : "C:\Program Files\Zlib\msvc2015_64" . After that, I have added #include <zlib.h> header file in

How to use zlib library in visual studio 2017?

安稳与你 提交于 2021-02-18 02:19:56
问题 I want to use the zlib library in my c++ project. So, I have downloaded zlib library( zlib_1_2_8_msvc2015_64.zip ). Then, I have created zlib folder under "C:\Program Files\Zlib" . Then, Extract zlib_1_2_8_msvc2015_64.zip file into "C:\Program Files\Zlib" . After that, I have opened visual studio 2017 and goes to property => C/C++ => general => additional include directories and added that path : "C:\Program Files\Zlib\msvc2015_64" . After that, I have added #include <zlib.h> header file in

How to use zlib library in visual studio 2017?

血红的双手。 提交于 2021-02-18 02:19:04
问题 I want to use the zlib library in my c++ project. So, I have downloaded zlib library( zlib_1_2_8_msvc2015_64.zip ). Then, I have created zlib folder under "C:\Program Files\Zlib" . Then, Extract zlib_1_2_8_msvc2015_64.zip file into "C:\Program Files\Zlib" . After that, I have opened visual studio 2017 and goes to property => C/C++ => general => additional include directories and added that path : "C:\Program Files\Zlib\msvc2015_64" . After that, I have added #include <zlib.h> header file in

How to use zlib library in visual studio 2017?

折月煮酒 提交于 2021-02-18 02:18:35
问题 I want to use the zlib library in my c++ project. So, I have downloaded zlib library( zlib_1_2_8_msvc2015_64.zip ). Then, I have created zlib folder under "C:\Program Files\Zlib" . Then, Extract zlib_1_2_8_msvc2015_64.zip file into "C:\Program Files\Zlib" . After that, I have opened visual studio 2017 and goes to property => C/C++ => general => additional include directories and added that path : "C:\Program Files\Zlib\msvc2015_64" . After that, I have added #include <zlib.h> header file in

Can't get rid of exit code in console window

梦想与她 提交于 2021-02-16 20:06:36
问题 So I run some code similar to this: #include <iostream> using namespace std; //yes, I know this is bad practice int main() { int variable(0); cout << "GET INPUT: "; cin >> variable; //do some math cout << variable << "OUTPUT"; return 0; } And on the computers at school I get this output: GET INPUT: 7 7 OUTPUT Press any key to close this window . . . But on my computer at home I get: GET INPUT: 7 7 OUTPUT e:\...\Project.exe (process 10080) exited with code 0. Press any key to close this window

Visual Studio 2017 failed to locate cl.exe

不羁岁月 提交于 2021-02-16 04:55:30
问题 I recently installed Visual Studio 2017 and need to change something in a C++ project. But when I try to build, it says cl.exe is missing. None of the solutions provided online seem to work. I do have a cl.exe, but it is located under this path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64 I have also tried running vcvars32.bat , but that does not seem to make any changes. And I have installed 'Desktop development with C++'. 回答1: I