Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [visual-studio]

Visual Studio is an integrated development environment (IDE) from Microsoft. It supports many different programming languages.

1
vote
1answer
26 views

FormatMessage not working for HRESULTs returned by Direct3D 11

I am using Windows 7 x64 and Visual Studio 17 (v15.9.7). Say I try to create a swap chain using IDXGIFactory2::CreateSwapChainForHwnd and pass in ...
0
votes
0answers
32 views

initialising constructor

I am using the SFML library to create a 2D grid. i use grid cords so I can place my players on the grid: I use struct to hold information of the nodes ...
0
votes
1answer
44 views

Visual Studio can't handle my unity scripts

I have created a new project in Unity 2018.3.4f1 with Visual Studio Community 2017. I can't edit scripts properly in Visual Studio because of a bunch of errors related to .net framework. How can I fix ...
0
votes
1answer
58 views

How do I compile a namespace to a .DLL in Unity?

I'm developing a core library that I will use in my other games. I've only heard of using Unity .DLLs recently, and have spent some time putting my core scripts into a namespace. If I understand .DLLs ...
0
votes
0answers
21 views

Cannot deploy MonoGame project to BlueStack (ADB0000: closed)

I'm using MonoGame 3.6 with Visual Studio 2017 Community and I'm trying to deploy to BlueStack as Android emulator. VS can see Bluestack and permit me to launch deploy but ends with this error: ...
-1
votes
1answer
45 views

Game development with Unity option is Unavailable

When I am trying to download"Game development with Unity" from the visual studio 2017 the option says it's"Unavailable".. How to download this? So question is : Ques. : How to select the option ...
0
votes
1answer
19 views

Disabling, overriding or hooking a VS warning to Unity's Vector's ToString()?

I've just spent 2 hours debugging a misbehaviour because ToString() truncates to 1 digit by default. I want to disable the parameterless version so I won't use it by accident and I will always have ...
1
vote
0answers
86 views

Getting “System.Int32 is not defined or imported” in Visual Studio 2017 with Unity

I have been working well with Unity 2018.2 & VS2015, the only issue was the constant VS2015 reloading but I was putting up with it. When I upgraded to Unity 2018.3 an issue came up when trying to ...
0
votes
2answers
90 views

Multiple errors on brand new C++ project

I've just started a brand new project and created a created a new C++ Character class. However Visual Studio 2017 shows 140 errors. The project still builds fine, however the syntax highlighting and ...
0
votes
2answers
89 views

error not all code paths return a value unity bool c#

I'm new to unity, so I've been having problems with my code here: ...
0
votes
1answer
134 views

workload not availble on visual studio 2017 setup

i use vs2017 with unity but now when io want to install it on new pc there is a message says: workload unavailable right now. required conditions are not satisfied. not win10 threshold number1 and ...
0
votes
1answer
107 views

How do I allocate to a C# dictionary having a string key and an integer 2D array or transform for value?

I'm working in C# on a Unity 2D game that spawns a shape that has only one correct landing place. There are 7 basic shapes but the component 4 squares of each shape are unique, with each bearing, say, ...
5
votes
0answers
259 views

System.Net.Http.dll and Unity 2018.2.1, 2.2, 2.3 are conflicting, assembly reference keeps being deleted in VS 2017, any suggestions?

I'm looking for some suggestions on how to fix a strange bug i've been getting with System.net.http.dll. For the record, builds work fine as i have the mcs.rsp file in the /Assets/ folder with "-r:...
1
vote
1answer
1k views

Upgrade to Unity 2018.2.2f1 resulting in missing file errors from Visual Studio

After being prompted by Unity to upgrade and doing so, Visual Studio is now giving me a long list of errors in the project about missing files. ...
1
vote
0answers
36 views

Monogame Per Pixel Collision scale texture

I have a problem: I am learning the Per Pixel Collision, because I am very new to Monogame. Everything works thine, but my texture (image) is too big, so I scaled it down to 0.5f. Now it doesn't work ...
0
votes
0answers
33 views

Exclude Unity projects from Visual Studio solution?

While I was happy to see these when they first appeared, I've noticed that loading and unloading all the different projects from Unity is really taking a toll on Visual Studio's performance after each ...
0
votes
2answers
51 views

How can I take ingame images and videos?

I’m using MonoGame and Visual Studio Community on my Mac to develop a game for iOS. I want to take ingame images and videos of the gameplay while the game is running on an iPhone/iPad. Afterwards, I ...
1
vote
1answer
111 views

Why is my call to SetDisplayMode not supported?

I have some legacy DirectX code that always returns DDERR_UNSUPPORTED. I originally developed the code using DirectX3, and I am porting it to DirectX7 after ...
2
votes
1answer
405 views

Nuget in Unity with Mac OS

I have moved over to Mac for Unity development, and am aware you can still use Windows .dll files in your project. I use NuGet as a secure method of getting specific dlls, and have usually done this ...
1
vote
1answer
343 views

Issue importing TileMaps/TileSets in Monogame.Extended 1.0

I've just started coding my first ever videogame using Monogame/Xna. I've reached a point where I would like to start editing maps and importing them into my game using the program Tiled. After ...
1
vote
1answer
40 views

Visual Studio not updating files made in Unity

In the past Visual Studio simply updated solution based on files added in Unity but now all of them have to be added manually and they are as miscellaneous when they are added. How can I fix it?
1
vote
1answer
83 views

Game not responding on different computer with Intel graphics

I have a game that uses SDL2 and OpenGL 3.3 with Visual Studio. It runs fine on the computer that built it, but it did not work on other Windows computers. Initially, it would complain about missing ...
0
votes
1answer
38 views

VSSetConstantBuffers1 does not appear to be working

I'm experiencing something very strange here when using VSSetConstantBuffers1. I have a projection * world matrix that I'm sending to a constant buffer to rotate a triangle on an axis. When I do ...
-1
votes
0answers
28 views

d3d12 how to run an external program inside of an window

Hey I need to know how to run a process ".exe" inside my d3d12 application window So for example the inside border of my window needs to be able to run a program like a game inside of the parent ...
0
votes
1answer
49 views

How can I get Visual Studio to build FXOs when I build my game?

I'm trying to compile a .fxo file when I compile my game. The compile command-line is: fxc.exe /T fx_5_0 /Fo Basic.fxo Basic.fx Instead of manually using fxc....
3
votes
4answers
3k views

No project in visual studio using unity created

As I have sometimes problems with intellisense in visual studio using unity, I searched for some answers. It was almost everytime pretty much the same: Reloading the project. But in my solution ...
0
votes
1answer
1k views

Deactivate VS warning “Macro in skipped region”

Since the UE4 API relies heavily on macros outside of function bodies, the IntelliSense function (not the compiler!) of Visual Studio 2017 throws a lot of warnings with update 15.7, also visible in ...
-4
votes
1answer
64 views

is if statements important or do I need them [closed]

Hey I was wandering I am needing some advice I am using #if expressions to execute my code and I was wandering if you have #if expressions is it really needing to use if statements in your c++ source ...
0
votes
0answers
53 views

How to insert the SDL2 library into visual studio for C but not C++

I am a student and want to make an RPG game using visual studio by C programming as my project, so I need to insert some png photo into the game as the background. But I was frustrated to discover no ...
1
vote
1answer
272 views

Cross-platform GLFW build with CMake

I know this is probably a popular question and can be very vague, so I'm going to be as specific as possible. I don't really know how to even form this question to be able to search Google, so I came ...
-3
votes
1answer
46 views

What is a Linker Map Address ()

I need to know how to execute a linker map address and use a draw method in xna 4.0 to for example in c# My subfolder has this in it textures models sounds ui scripts shaders linker map address <...
0
votes
0answers
53 views

Unable to link to glfw properly

I'm trying to create a glfw application on windows 10 using VC++ 2017 compiler. I built the glfw library using this compiler but when trying to run it with my batch file I keep getting 'unresolved ...
0
votes
1answer
459 views

For Visual Studio Community 2017, 'Unreal Engine Installer' option is not available

On Visual Studio Community Installer, I cannot find 'Unreal Engine Installer' under 'Desktop Developemtn with C++' - 'Optional'. According to the tutorials I am learning, the 'Unreal Engine Installer' ...
0
votes
0answers
29 views

Unity3D always switches back to C# 4.0?

I have already done this: Unity3D > Edit > Project Settings > Player Scripting Runtime Version: Experimental (.NET 4.6 Equivalent) Api Compability Level: .NET 4.6 Visual Studio > Tools > Options > ...
0
votes
0answers
36 views

SFML Include Issues

I'm trying to copy over a VS2017 solution/project which uses SFML to a different machine. On the original machine, everything compiles and runs fine however when copied over to the second machine (...
2
votes
0answers
173 views

Why am I getting errors like these when trying to build my app

I am currently trying to build and publish my app to the universal windows platform halfway through the process of doing so, during the validation process I got stopped with these errors. The 1st one ...
2
votes
2answers
566 views

SDL_image entry point SDL_acosf not found in SDL2_image.dll

I tried using SDL2_image (2.0.3) with SDL2 (2.0.7) to load png files, but when I start the application I get ...
1
vote
0answers
46 views

A question about HLSL debugger in Visual Studio Graphic Diagnostics

Here 's the thing. I developed a graphic project using SharpDx. Every time I actived the graphic diagnostic and debuged some hlsl code in my shaders, It always showed me the disassembling code rather ...
0
votes
0answers
105 views

How to compile RVO2 library for collision avoidance for RTS in Visual Studio 2017?

I have been banging my head for compiling RVO2 to my Visual Studio 2017 for a long time. Can anyone tell me how do i make it compile? Here is my Upgrade Log: For those who are unable to see, It ...
0
votes
1answer
958 views

Problem with folder structure and building project in UE4

I created a new C++ project on Unreal Engine 4. After that I close visual studio and ue4 editor. I manually added public and private folders in the source folder. Then I made folders for the player, ...
0
votes
1answer
21 views

Fresh Unity/Visual Studio 2017 install error

Installed Unity 5.6.3p2 (my projects's current version) on a new machine. When I opened the project in Visual Studio 2017 I got a prompt to update the .NET framework from 3.5 to (I think) 4.2.x. I ...
0
votes
1answer
149 views

Xna Spritefont from installed fonts

I am using Spritefont in my game and I have downloaded a .ttf font and installed it on my machine. I am now using this font in my game. My question is if this game is run on another machine will the ....
0
votes
2answers
68 views

What edition of VS is installed by Unity and what are its capabilities?

My brother just installed Unity on my desktop, and it seems like it installed Visual Studio 2017 as well. I was planning to install Visual Studio before this, so I was wondering what kind of version ...
0
votes
0answers
178 views

Unity - Visual Studio 2017 Unity Syntax Highlighting not working anymore [duplicate]

Everything worked perfectly fine yesterday. But today the syntax hightlighting stopped working: MonoBehaviour and Sprite should ...
2
votes
0answers
292 views

The identifier is not in the scope! [closed]

I have a typical foreach loop in a coroutine like: ...
0
votes
2answers
2k views

Unity3d - Attach to Unity not working

I need to debug my scripts, but if I click "Attach to Unity" or "Attach to Unity and Play" then the button is just grayed out and after a few seconds it is clickable again, but nothing happens. I ...
0
votes
0answers
411 views

“Unity 3d” Why MonoBehaviour Stopped working For New Script [duplicate]

If i Create a new project and add script to it the First script always have mono behavior turned on and auto complete is working But If i add second Script to the project mono behaviour is not ...
4
votes
6answers
5k views

Why is the IntelliSense not working when I open a new script in Visual Studio?

The strange thing is that opened scripts or newly opened ones are working fine. It's the new created C# scripts that are not working. With not working, I mean the MonoBehaviour is not in light blue ...
1
vote
1answer
416 views

Adding Log4Net to Unity

I would like to add log4net library as a logging tool to visual studio project which created by Unity, Is this possible? I ...
2
votes
1answer
166 views

Synchronization problem with Visual Studio 2017 and Unity 2017.1.1f

Sometimes I need to change a lot of files and Clean and Rebuild the Solution to get the changes on Unity, am I missing some configuration on Visual Studio or Unity? I uninstalled everything and make a ...