Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project '<project name>' is not up to date. Input file '<static file>' is modified after output file ''

I'm creating a typescript project (Project type - Web Application with Typescript), that includes typescript, javascript and other static files.

I'm using the Visual Studio 2015 build environment, and the Microsoft.TypeScript.MSBuild.1.8.11 nuget package for the actual compilation (i.e. not using tsconfig.json).

I have a Post-build event task which has the side effect of 'touch'ing some of these static files. When I subsequently trigger another build, I get a warning in the output*:

Project '<project name>' is not up to date.
Input file '<static file>' is modified after output file ''.`

and the project is forced to rebuild.

Can anyone think how I can work out what VS2015 is referring to when it talks about "output file ''"?

  • I've got MSBuild set to output Diagnostic information in the Tools->Options->Build And Run settings.
like image 220
Rich Barber Avatar asked Sep 16 '16 11:09

Rich Barber


2 Answers

I just deleted .vs folder & cleaned solution then worked fine.

enter image description here

like image 190
Arun Prasad E S Avatar answered Nov 08 '22 09:11

Arun Prasad E S


To answer my own question - in the hope that it assists someone else.

The file VS reports as "output file ''", appears to relate to the output dll/pdb files in the bin folder, but also to the obj/$(Configuration) files that get built during the compilation process.

So, if I perform:

touch obj\Debug\myProj.dll obj\Debug\myProj.pdb
touch bin\myProj.dll bin\myProj.pdb

within my post-build task, then this seems to solve the problem and gets the compiler back to what I'd expect:

 ========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
like image 29
Rich Barber Avatar answered Nov 08 '22 10:11

Rich Barber