Repro steps: (VS2013 Update 2 & NTVS Dev 2014-05-14 VS 2013)
1. Create blank "Basic Express Application" with typescript
2. Rename routes/user.ts to routes/User.ts in VS
3. Change require statement from import user = require('./routes/user'); to import user = require('./routes/User');
4. observe errors when building
5. delete user.js & user.js.map
6. observe errors still (potential second bug),
7. observe mismatch between VS's view of files in solution explorer and file system
8. restart Visual Studio, builds properly
Note: there is potentially a third bug, but I don't know how to repro it. When I ran into this initially when I renamed the file to the uppercase version it didn't change in the filesystem, only in VS
1. Create blank "Basic Express Application" with typescript
2. Rename routes/user.ts to routes/User.ts in VS
3. Change require statement from import user = require('./routes/user'); to import user = require('./routes/User');
4. observe errors when building
5. delete user.js & user.js.map
6. observe errors still (potential second bug),
7. observe mismatch between VS's view of files in solution explorer and file system
8. restart Visual Studio, builds properly
Note: there is potentially a third bug, but I don't know how to repro it. When I ran into this initially when I renamed the file to the uppercase version it didn't change in the filesystem, only in VS