1

Closed

Strange: Included typescript file was not added with TypeScriptCompile

description

This caused a problem for me with the compiler did not pick up some types correctly. It simply did not realize the type definition was a typescript file. (File properties : BuildAction = Content instead of TypeScriptCompile)

I noticed this both in a real project and when I was experimenting to try to reproduce.

I even tried to exclude and include the file repeatedly with no change. First when I excluded the file, closed the proj, opened it again, and included the file VS finally got it right.

Unfortunately I can not create steps to reproduce. This happens, but not all the times... :/

Now I know I need to double check BuildAction for my files if they are not being picked up by the compiler.

Perhaps "include file" in Visual Studio is a bit flakey when it comes to typescript file types?
Closed Aug 28, 2013 at 6:02 PM by danquirk
This appears to be working in some scenarios. In others it does not but the bug does not meet our triage bar to fix it at this point in the schedule.

comments

danquirk wrote Aug 22, 2013 at 9:17 PM

Followed up privately, we can re-open this once I get access to your project.

** Closed by danquirk 08/22/2013 1:17PM

danquirk wrote Aug 22, 2013 at 9:17 PM

Whoops, wrong issue, investigating...

danquirk wrote Aug 22, 2013 at 11:54 PM

I'm able to repro this with Add -> Existing item, marked as active. Thanks for the report.