I installed Visual Studio 2013 on a fresh Windows 8 machine. Then I installed SQL Server 2012. Then Installed Visual Studio 2013 Update 1. Then I opened Visual Studio and tried to build three different LightSwitch HTML projects following a tutorial from Beth Massi. Each time I got "There were build errors."
Then I started a new project and selected Visual C# Console Application. As the tutorial said, I inserted this code:
// A Hello World! program in C#.
using System;
namespace HelloWorld
{
class Hello
{
static void Main()
{
Console.WriteLine("Hello World!");
// Keep the console window open in debug mode.
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}
}
I still get "There were build errors."
What should I do?
Related
When I built my program and deleted visual studio(cause I didn't want it anymore) I cannot run my application.
The app first asks for two DLL files ( vcruntime140d.dll and ucrtbased.dll). I downloaded it then I got an error that the application could not start correctly (0xc000007b).
I reinstalled Visual Studio again and rebuilt it with a full database. Then delete the visual studio and tried to run the application again and I get the same error.
I installed the Desktop development with C++ for Visual Studio 2019 latest version. When I create a new Console App project and the "Hello World" code opens, the editor shows compile errors on #include and std::cout, as shown below:
What I noticed is that the External Dependencies folder of the project is empty. Do you know why that might be?
I solved by just installing the Windows SDK from Visual Studio Installer. I did not install it at first because it was in the optional extensions.
The mouse speed displacement is not constant when using command prompt depending if Visual Studio is open or not.
I am looking for a resolution to this problem.
Environment:
Windows 10 Enterprise 1803 (17134.407)
VS Test Agent 2017 15.9.2
VS Enterprise 2017 15.9.2
Steps
Creates a Coded UI project (.net 4.7.1).
Add the following test method :
public void CodedUITestMethod1()
{
Mouse.Move(new Point(10, 10));
var start = DateTime.Now;
Console.WriteLine($"MouseMoveSpeed={Mouse.MouseMoveSpeed.ToString()}");
Mouse.Move(new Point(500, 500));
Console.WriteLine($"Time= {DateTime.Now - start}, MouseMoveSpeed= Mouse.MouseMoveSpeed.ToString()}");
}
Run the test from Visual Studio and note the standard output (I got: Time=00:00:01.7835117, MouseMoveSpeed=450).
Close all instances of Visual Studio and execute the previous test method from a command prompt:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "C:\Users\fakeUser\Source\Repos\CodedUITestProject1\bin\Release\CodedUITestProject1.dll" /Logger:trx
Check the standard output from the test result in trx file (I got: Time=00:00:10.3616613, MouseMoveSpeed=450)
Open an instance of Visual Studio (don't need to open the project, it can be the view of the Trx file for example) and run again the test method from the command prompt.
Check the standard output from the test result in trx file (I got: Time=00:00:01.8037781, MouseMoveSpeed=450)
Actual Result:
When Visual Studio is open, the mouse is faster when executing the test method by vstest.console.exe.
Expected Result:
The mouse displacement remains the same no matter the executive method.
FYI:
I have the same result on a fresh installation of Windows 10 Professional with only VS Test Agent installed (no Visual Studio).
MSTest instead of VSTest from command prompt gives the same result (slower than when Visual Studio session is opened).
You have to execute a Test method from Visual Studio first before to run command prompt (follow the steps order). Maybe a dependency loaded by Visual Studio creates this behavior.
I'm trying to get the remote debugging to work on Visual Studio 2017 in Windows. I'm using the gdbserver option in Visual Studio project properties. The project is a make file project created in Visual Studio 2017. I'm getting following error in the output window.
And getting following error in Linux Console output window
What could be the reason for these errors?
So I am trying to run console 64 bit Hello World program.
I have Windows 7 Enterprise x64 bit version.
I have installed Visual Studio 2008 and have added all of components needed for 64 bit.
I want to create simple console application.
It turns out to be a problem.
I have simple standard hello world project.
I have created it using New Project -> Empty project.
I added main.cpp that contains this:
#include <iostream>
using namespace std;
int main()
{
cout << "howdy\n";
}
I added new configuration to the project by clicking on Config Manager and added x64 config.
Compiled and it compiles.
Tried running it and cmd.exe shoots up with following error:
"The application has failed to start because its side-by-side configuration is in
correct. Please see the application event log or use the command-line sxstrace.e
xe tool for more detail.
Press any key to continue . . .
"
Which set-up step if any I am missing.
What am I doing wrong and how should I go about setting simple console hello world in 64 bit world.
Thanks for any help
Instead of starting with an Empty Project, choose a project of type "Console Application" in Visual Studio.