visual-studio

How to add new win form in project C#?

跟風遠走 提交于 2021-02-16 13:24:18
问题 I have existing project. I tried to add new empty form in this, but I have limited choose of windows form that mean to inheriting. But I need just simple form. I use VS 2017 回答1: It seems like you didn't install the required components. To do this, close VS, run your Visual Studio Installer (you probably installed VS through it), click modify for your VS Version and make sure that .Net desktop development is checked: Then launch the installation by hitting Modify and start VS again. If you

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

Adding WSDL service reference to VS fail because generated xsd file contains illegal character for TFS

不打扰是莪最后的温柔 提交于 2021-02-15 07:57:41
问题 I have a solution that is on TFS. I'm trying to add a WSDL as service reference to it. The WSDL's URL looks like this: ".../ws/soap;auth=..." When adding the reference, VS will generate all the required xsd files and the xsd files name would use the URL as its name. When generating it, TFS will try to automatically add the files, and at this point it will detect that I have a .xsd files with illegal character ";" as its name and then the whole service reference generation just failed and

Adding WSDL service reference to VS fail because generated xsd file contains illegal character for TFS

自闭症网瘾萝莉.ら 提交于 2021-02-15 07:54:10
问题 I have a solution that is on TFS. I'm trying to add a WSDL as service reference to it. The WSDL's URL looks like this: ".../ws/soap;auth=..." When adding the reference, VS will generate all the required xsd files and the xsd files name would use the URL as its name. When generating it, TFS will try to automatically add the files, and at this point it will detect that I have a .xsd files with illegal character ";" as its name and then the whole service reference generation just failed and

Setting Environment variable in Visual studio C++project

一个人想着一个人 提交于 2021-02-15 07:49:27
问题 I realize that similar questions were posted earlier but I need slightly different solution. I have VS2012 C++ project A.vcxproj,that has debug1 configuration( platform x64) , and it builds corresponding .exe. It also uses a dll from other VS2012 C project B.vcxproj from a path that must be added to the environment variables. A.vcxproj.user file has following text <LocalDebuggerEnvironment>PATH=%PATH%;C:\Program Files\libsndfile\bin;..\..\lib\simulink\;$(LocalDebuggerEnvironment) <

Which version of C is supported by VS2019 compiler?

女生的网名这么多〃 提交于 2021-02-15 06:14:19
问题 How can I know which version of C is supported by the VS2019 compiler? I looked in the project C/C++ and Linker command lines and found no -std=Cxx flag. The following code compiles: for (int i = index; i < nb_users - 1; i++) { users[i] = users[i + 1]; } So I guess it's C99 according to this, but is there a way to check this somewhere in VS2019? 回答1: VS2019 supports ANSI C90 plus a few other features from a few later standards that are required in C++. For example, you can tell that C99 is

Resolving Git conflicts in Visual Studio to have a commit after a bug at linking source and the server

我是研究僧i 提交于 2021-02-11 18:23:21
问题 Suddenly my local git repository bugged in a way that it didn't response to git commands, So with the help of a great professional here was able to reset, re-link it to the remote address at DevOps server. Link to the previous topic: Previous topic Now having some conflicts when trying to Cherry Commit my local repository changes to its DevOps location. Used this: git cherry-pick theversion now it seems pending. Please have a look at the below image: Don't know what should I do now. I want

catch in exception handling doesn't stop program

北城以北 提交于 2021-02-11 17:01:23
问题 I have this function in a c++ class which I have wrote in visual studio: int info::connectSession() { std::string _ErrMsg; std::string _ErrScope; int _RetVal = 0; MyException errMsg; int port = 22; try { if (my_ssh_session == NULL) { std::cout << "Error creating ssh session" << std::endl; throw errMsg; return 0; } ssh_options_set(my_ssh_session, SSH_OPTIONS_HOST, (const void*)(authentication.ip)); ssh_options_set(my_ssh_session, SSH_OPTIONS_USER, (const void*)(authentication.userName)); ssh

Visual studio error connecting exchange email account

纵饮孤独 提交于 2021-02-11 15:59:08
问题 About two months ago I was given the task of making a outlook.com add-in. The basics worked perfectly but somthing with higher priorety came along. So the project layed still fit the last two months. I wanted to go on with the project yesterday and it didn't work anymore. The problem comes whem I go to start the project in visual studio and, need to sign in to my office account. If I sign in it will load for a while and then an error pops up. It says: An error occurred while connecting to the

In Unity when I write Debug.Log(“ ”) it has an error saying that there is a difference between UnityEngine.Log and System.Log. How do I fix this?

最后都变了- 提交于 2021-02-11 15:19:02
问题 It says there is an ambiguous difference between UnityEngine.Log and System.Log and won't print anything. How do I fix it? I am sorry that people didn't like my question. I am just a new game dev looking for help. 回答1: Your simplest solution is just to always type, in that script: UnityEngine.Debug.Log("yo !!"); In general if it tells you "blah blah .. difference between AAA and BBB ..." Simply add either AAA. or BBB. in front of the command in question! (It is usually the "Unity" one you