visual-studio-2019

Adding OR-Tools Library to Visual Studio

∥☆過路亽.° 提交于 2021-02-09 09:18:49
问题 I am trying to write a code using Google's OR-Tools library on Microsoft Visual Studio 2019. I followed the following steps: Installed OR-Tools from Binary on Windows on their website. Extracted the .zip file in C:\Libraries Wrote my code on VS (I wrote #include <ortools/linear_solver/linear_solver.h> and using namespace operations_research; rest is usual C++ Code) In Visual Studio, went to Project > Properties > C/C++ > Additional Include Directories Added "C:\Libraries\or-tools\include"

Visual studio ask me to clone the same project which is already in the DevOps

天涯浪子 提交于 2021-02-08 08:55:26
问题 I am new to DevOps and Git. (time ago was using VisualSVN) I wanted to commit a project's new changes to it's DevOps repository which I created earlier . For some days repeatedly I made changes, commit, push to the repository. Don't know why now after some days I am not able to do so. Maybe a time-out thing, a disconnection from the repo. By the way, after that seems I needed to reconnect to the repo, but after the connection, it repeatedly asks me to clone the same project , which I am

Set Product Version and File Version to different numbers in C#

余生长醉 提交于 2021-02-07 20:37:39
问题 In a C++ project, I can add different Product Version and File Version values to my assembly using VERSIONINFO in a Version resource file: #define VER_PRODUCTVERSION 1,0,0,0 #define VER_PRODUCTVERSION_STR "1.0\0" #define VER_FILEVERSION 1,0,0,1 #define VER_FILEVERSION_STR "1.0.0.1\0" This appears in the DLL properties as: I'm having trouble achieving the same in a C# project. I've set the following in the AssemblyInfo.cs file: [assembly: AssemblyVersion("1.0")] [assembly: AssemblyFileVersion(

Does Visual Studio update break iText7?

本小妞迷上赌 提交于 2021-02-07 18:46:54
问题 I have a problem with iText7 7.1.6 and Visual Studio 2019. My program has been running for a year now, but having just updated Visual Studio (Community) to version 16.6.2 from 16.6.1, I did a rebuild without changing anything. Now, when I run the program, I get a System,NullReferenceException Object reference not set to an instance of an object exception at PdfFont font = PdfFontFactory.CreateFont(iText.IO.Font.Constants.StandardFonts.HELVETICA); The exact same solution copied to my laptop

Does Visual Studio update break iText7?

青春壹個敷衍的年華 提交于 2021-02-07 18:46:16
问题 I have a problem with iText7 7.1.6 and Visual Studio 2019. My program has been running for a year now, but having just updated Visual Studio (Community) to version 16.6.2 from 16.6.1, I did a rebuild without changing anything. Now, when I run the program, I get a System,NullReferenceException Object reference not set to an instance of an object exception at PdfFont font = PdfFontFactory.CreateFont(iText.IO.Font.Constants.StandardFonts.HELVETICA); The exact same solution copied to my laptop

Compilation errors when stepping over breakpoints

风格不统一 提交于 2021-02-07 18:39:51
问题 I've started getting weird errors whenever I hit a breakpoint and either try to step over it or into it. I get the message: Edits were made which cannot be compiled. Execution cannot continue until the compile errors are fixed. The projects are compiling just fine and this does not happen when I don't hit any breakpoints. I'm using Visual Studio 2019, 16.3.1 and this happens in all of my solutions, not just one. I've tried the following but nothing has worked: Clearing my .vs-folder

Compilation errors when stepping over breakpoints

浪子不回头ぞ 提交于 2021-02-07 18:38:40
问题 I've started getting weird errors whenever I hit a breakpoint and either try to step over it or into it. I get the message: Edits were made which cannot be compiled. Execution cannot continue until the compile errors are fixed. The projects are compiling just fine and this does not happen when I don't hit any breakpoints. I'm using Visual Studio 2019, 16.3.1 and this happens in all of my solutions, not just one. I've tried the following but nothing has worked: Clearing my .vs-folder

Is there any CodeLens add-on available that shows the git history of the given method?

流过昼夜 提交于 2021-02-07 13:17:52
问题 The latest version of VS 2019 Community came out with CodeLens enabled. Is there any CodeLens add-on available for VS 2019 Community showing the git history of the given method, like this excellent one for Visual Studio Code : https://github.com/eamodio/vscode-gitlens? 回答1: When I click on the history link of code lens in Enterprise: I see a history listing. I have not added any extensions to get this. (Do ensure "Show Authors & Changes (Git)" is enabled in Options | Text Editor | All

Have a NuGet package output a file

不想你离开。 提交于 2021-02-07 10:36:33
问题 I have a Visual Studio project that I have made into a NuGet package. The project has a file in it (called SwaggerIndex.html ). I have set that file to have the "Copy to Output Directory" property to "Copy if newer". (I need this file to copy to the build folder on build.) In that solution it works just fine. (I created another project to test it, and when it references my project that has the SwaggerIndex.html , it outputs it to the build folder just fine.) However, when I package it into a

node-gyp configure got “gyp ERR! find VS”

℡╲_俬逩灬. 提交于 2021-02-07 05:34:15
问题 I am trying to start about node c/c++ add-on. the node-gyp command got error I have installed vs2019, my command is node-gyp configure --msvs_version=2019 the verbose output is gyp info it worked if it ends with ok gyp info using node-gyp@5.0.3 gyp info using node@10.16.0 | win32 | x64 gyp info find Python using Python version 2.7.15 found at "C:\Users\seact\.windows-build-tools\python27\python.exe" gyp ERR! find VS gyp ERR! find VS msvs_version was set from command line or npm config gyp ERR