Visual Studio 2017 C++ Up-To-Date check always report up-to-date - c++

I'm using VS2017 write C++ projects. After some version update, it cannot auto detect source file changes. The Build(F7) command always report something like:
1>------ Up-To-Date check: Project: hello, Configuration: Release Win32 ------
1>All outputs are up-to-date.
1>Time Elapsed 3 ms
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
Although I can use Rebuild to get things work, it could be quite slow for some large projects. Are there any idea about this problem, or about how the build process check whether sources are out-dated?
Thanks.

Related

Visual Studio 2015 Community C++ Build Failure: A task was cancelled

I'm trying to build a brand new c++ console project in Visual Studio 2015 Community and getting the following output:
1>------ Build started: Project: ConsoleApplication3, Configuration: Debug Win32 ------
1>A task was canceled.
1>A task was canceled.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
From this question it looks like the same problem. but the time has been recently synced:
And restarting Visual Studio doesn't change the build output. I've tried uninstalling Visual Studio and then reinstalling it, but the outcome is the same.
Delete Debug/Release folders and restart MSVC.

Migrating a project to a different computer: "Error: The device is not ready."

I'm using Visual C++ 2010 Express, and I just copied over a full project folder to a new computer (both are on Windows 8, if that's relevant). I opened the solution file exactly as I did on the other computer, and tried to build.
I'm getting the following error:
1>------ Build started: Project: <project_name>, Configuration: Debug Win32 ------
1>Error: The device is not ready.
1>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
With no other context.
What's the deal?

Error Running Windows Filtering Platform Sample

I am trying to test WFP(Windows Filtering Platform) sample provided by microsoft. While testing I got error.
While building it builds well: With following message:
Build started: Project: package (Package\package), Configuration: Win8 Debug Win32 ------
Inf2Cat task was skipped as there were no inf files to process
========== Build: 1 succeeded, 0 failed, 5 up-to-date, 0 skipped ==========
And While running the exe file I got an error. as:
"Cannot Verify Digital signature of the file.......".
how to resolve this.
Code From: msdn
I am using Windows 8 Release Preview machine with Visual studio 2012.

c++ project, vs2010, "build failed" with no errors

I am trying to create a new c++ cli project in visual studio 2010.
After i create the new project, i try to build it, and get "build failed" message, with no errors, or other description of what went wrong
1>------ Build started: Project: TestProject3, Configuration: Debug Win32 ------
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I am working on windows 7, 64 bit.
This is happening also if i try to create the project with another template (like win32 console application).
I tried to create the project under "c:\Test", to make sure that the problem is not with the folder's path, or write permissions.
This solution also contains a c# project, that is working with no problems.
Does anyone know this problem? do i need to change something in the project properties?
Thanks in advance :)
Amir
Did you include any source files to be built? It would seem natural that compilation fails without any errors only when there are no source files (included for build) or they are empty, perhaps.

Visual Studio 2010 Randomly Stops Building

I am having a problem with Visual Studio 2010 as of late that I can't figure out. Lately after having VS2010 open for an extended period of time, building begins to fail without error. This includes build, rebuild, and clean.
The output from VS2010 is only two lines:
When trying build:
1>------ Build started: Project: example, Configuration: Debug Win32 ------
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
When trying rebuild:
1>------ Rebuild All started: Project: example, Configuration: Debug Win32 ------
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
When trying clean:
1>------ Clean started: Project: example, Configuration: Debug Win32 ------
========== Clean: 0 succeeded, 1 failed, 0 skipped ==========
The only way I can resume using VS to build the project(s) is to restart my system. However, using msbuild from the commandline builds the project(s) without issue. So this appears to be related to VS itself but I can't figure out whats causing it with no actual error being displayed.
I have tried restarting VS itself, deleting .suo, .ncb, precompiled headers, etc. to see if it is a file lock issue which did not help or fix the problem. There are no stray processes running from a previous build when this starts happening either.
Edit --8<------------------------------------------
Just for some added information:
I have reinstalled VS2010 twice to try to correct this.
I have reinstalled VS2010 SP1 twice along with that.
This only happens with VS after an extended period of time.
It seems to occur when modifying a header (C++) file for a long time.
After it happens I can still build from the command line fine just not from VS until I restart the system.
If it started suddenly, keeps happening, and happens on different projects, try testing your RAM. You can download an ISO for memtest86, burn, and boot to it.
I know this is old but try rebuilding and cleaning solution if this happens to you again. It helped me.
A bit late to respond to this but I never did figure out what caused this issue to happen. I landed up reformatting shortly after I posted this question. Thanks all who tried to help though.