C# Build Errors- Debug Target is Missing - visual-studio

I am just starting out with Visual Studios. When I try to run any code I get the error. There were build errors. Would you like to continue and run the last successful build? When I click OK I get a bunch of errors saying access to the path has been denied.
I have tried everything (ran as administrator, uninstalled and reinstalled, checked the path, made sure main/entry project has checked Build) Nothing is working and i'm very desperate for help.
https://gyazo.com/beb3dfc8d250f492e5dac054fb04273b
https://gyazo.com/0dbc199dd01f714e19197802902b0110
I am using Microsoft Visual Studio Community 2015

Related

How to fix libcmcurl.dll not being found when trying to use cmake?

Haven't found anything online as most threads are focused of libcurl rather than libcmcurl.
For some reason my Cmake stopped working in Windows 10. I have tried uninstalling it and reinstalling, however even basic commands like cmake --version return the following error message:
cmake.exe - System Error
The code execution cannot procees because libcmcurl.dll was not found.
Reinstalling the program may fix the problem.
I tried running cmake --version when cmake was uninstalled and got the same error message.
Not sure what the source of the error was since even google refuses to show results for this file (defaults to libcurl.dll), however I think I solved the issue by repairing the Visual Studio 2019 install.
Open Visual Studio Installer
Click More
Repair
Worked after that.

VS Build Tools 2019 Error in Windows Container

Following this tutorial, if I remove the installPath and use the default MsBuild Visual Studio location, I get the following error.
Error: Visual Studio Build Tools 2019 (2) is already installed
I built a similar container a few weeks back and everything worked, however something appears to have moved and I'm unable to work out what.
Adding the modify parameter to the vs_BuildTools.exe command resolves this issue. Unfortunately it forces an installPath to be included but can be set to the default location.

mfc120d.dll is missing after opening my project exe

I have a MFC vc++ project and I have exe file for this project using Visual Studio 2013. When I open the project exe it is working fine on my development machine.
But when I open this exe in my customer's machine, I'm getting this error message:
The program can't start because mfc120d.dll is missing from your computer. Try reinstalling the program to fix this problem
I noticed that my project exe file is working if the system has Visual Studio installed. I also installed "Visual C++ Redistributable Packages for Visual Studio 2013", but even then I'm getting same error. Please suggest a solution.
This is because you deployed a debug version of your app. If this was intentional (to be able to debug remotely? ) you can find and deploy the mfc120d.dll from your VS2013 installation directory.
Otherwise just build the Release configuration and you should be fine.

How to get Visual Studio to display the real Vue.js error? "The command npm run build exited with code 1.”

I’m working in my first ever vue.js project, and I’m using Visual Studio 2017 as my IDE. Sometimes, when I try to run the site in debug mode, I get a very unhelpful error:
Severity Code Description Project File Line Suppression State
Error The command "
npm run build
" exited with code 1. EIOBoardVueApp D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 5147
I finally figured out that this isn’t the actual error. But, I’m not sure how to force Visual Studio to tell me what the actual error is. Has anyone every seen this before and figured out how to sniff out the real error?
(I've seen other threads on this error, but nothing that has lead me to a solution.)
Found it. Visual Studio -> Tools -> Options -> Projects and Solutions -> Build and Run -> MSBuild project build output verbosity. Change this to Detailed.
Then, when you try to debug the project, VS will still give you the useless error in the ErrorList window, but if you look in the Output window, the real error will be there:

ERROR: Failed to make the following project runnable: This process cannot access the file ~/MyProject.exe' because it is being used by another process

When I am trying to compile and run my ASP.Net Core 1.0 project on Visual Studio 2015, I am getting the following error:
Failed to make the following project runnable: MyProject (.NETFramework,Version=v4.6) reason: The process cannot access the file '~\MyProject.exe' because it is being used by another process.
File: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets
I have no clue why this error is coming. Any solution?
Here is a silly solution to this problem that actually worked! I stopped debugging and closed Visual Studio. Then I restarted the computer. Upon opening Visual Studio again after restarting the computer, I was able to run the application without any error.
It seems the process was still running in the background even though the application had been stopped from Visual Studio.
Source: Basic troubleshooting

Resources