visual-studio

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:16:28
问题 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

Pre-Processing C++ file using MSBuild and Visual Studio 2012+

南楼画角 提交于 2021-02-11 14:40:23
问题 I have a series of standard cpp files and each of these files contain a file-specific #include statement. However, the content of those included files must be populated by a pre-processing tool prior to invoking the standard C++ compiler. The tricky part is that I want this to be fully integrated into Visual Studio using MSBuild. Therefore, when I bring up Visual Studio's Property Window on a cpp file, I want to see all the standard C++ compiler options and, ideally, some Custom Properties

IronPython support for Visual Studio debugging like Set Next Statement and Edit-and-Continue

自作多情 提交于 2021-02-11 14:39:33
问题 I'm evaluating IronPython for a project. I'm trying to get it working with typical Windows Visual Studio .NET debugging features: Set Next Statement (move the instruction pointer to another line of code) Edit and Continue (this lets you edit lines of code live. It's useful for eliminating bugs.) The most basic debug functions seem to work out of the box. (Setting breakpoints, watches, etc.) However, I've struggled to get these 2 features working. Are they supported by IronPython? I tried

SharedPreferences but on c# Windows Form Apps C# Visual Studio

拟墨画扇 提交于 2021-02-11 14:19:38
问题 I'm creating a simple messages program, in which u can talk to other people. Currently, I'm working on the login screen and I want to create a "remember me" option which will save your credentials the next time u enter the app. I worked a bit with android Studio,and Unity, and they both use something called SharedPreferences , I used it and it's great. So I wanna know if there is a SharedPreferences for C# and how to use it on a Windows Form App. Any help is accepted. 回答1: In winforms, we

Can the Visual Studio IDE use long path names?

家住魔仙堡 提交于 2021-02-11 13:59:51
问题 I'm using VS 2017 on Windows 10 Enterprise build 1803 I ran into trouble with a project that is deeply nested in subfolders and then I remembered reading something about Windows 10 removing the limit on MAX_PATH. I found this link Naming Files, Paths, and Namespaces which suggests that a large number of Win32 API calls can optionally not be limited to MAX_PATH. I tried both toggling the value in the policy and changing the value in the registry. After a reboot Visual Studio still refuses to

cl.exe installed but not found

柔情痞子 提交于 2021-02-11 13:55:04
问题 I've looked at the other questions on this, all say install visual studio with c++, I have done this - 2017 version. I'm trying to build pypoisson in python3 which requires the c++ complier, I get this error: cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\garyn\PycharmProjects\pointcloudprocessor\venv\lib\site-packages\numpy\core\include -IC:\Users\garyn\PycharmProjects\pointcloudprocessor\venv\include "-IC:\Pr ogram Files\Python\Python37\include" "-IC:\Program Files\Python\Python37

After archiving xamarin forms app to apk, it does not work

江枫思渺然 提交于 2021-02-11 13:47:48
问题 I have my xamarin app, when i start it form VS2019 in Release or Debug mode it works great. If i archive it with visual studio, sign and install to mine or other android phone, it crashes. 回答1: APK can't get SQLite table, because i truncated that at start. Logcat helped me understand what the problem is. 来源: https://stackoverflow.com/questions/61630822/after-archiving-xamarin-forms-app-to-apk-it-does-not-work

confused by Windows Run Time Component Directories and which .winmd file do I need to add

时间秒杀一切 提交于 2021-02-11 13:46:34
问题 I create a WindowsRuntimeComponent3 solution, batch build then VS create a series directories as below, there are WindowsRuntimeComponent3.winmd in these different directories. just wonder which WindowsRuntimeComponent3.winmd do I need to add? if them one by one, it will report error your comment welcome 回答1: You add a reference to the project directly, and VS will take care of the CPU architecture and build flavour for you; you shouldn't need to look in those specific directories. When you

confused by Windows Run Time Component Directories and which .winmd file do I need to add

孤街醉人 提交于 2021-02-11 13:45:01
问题 I create a WindowsRuntimeComponent3 solution, batch build then VS create a series directories as below, there are WindowsRuntimeComponent3.winmd in these different directories. just wonder which WindowsRuntimeComponent3.winmd do I need to add? if them one by one, it will report error your comment welcome 回答1: You add a reference to the project directly, and VS will take care of the CPU architecture and build flavour for you; you shouldn't need to look in those specific directories. When you

Chocolatey generated VS 2015 Compiler not found on docker image

天涯浪子 提交于 2021-02-11 12:34:04
问题 I tried to install visual studio 2015 build tools on a Docker Container using the chocolatey packet manager. I need it for a Matlab code gen build operation. The chocolatey steps works fine. But my docker container can't find the compiler. Any Hints? Docker RUN powershell -command choco install -y vcredist140 RUN powershell -command choco install -y vcbuildtools -ia "/Full" Using mex -v -setup I have: Host(WIN10): ... Looking for compiler 'Microsoft Visual C++ 2015 (C)' ... ... Looking for