admin管理员组

文章数量:1323716

In Visual Studio Professional 2013 when I created a new Apache Cordova project, get this warning:

Warning 1 The TypeScript Compiler was given no files for pilation, so it will skip piling.

Few weeks before it is working fine but now I am getting this error.

I re-install VS and Tool for Apache Cordova, but still getting this error.

How to solve this error? Any solution?

In Visual Studio Professional 2013 when I created a new Apache Cordova project, get this warning:

Warning 1 The TypeScript Compiler was given no files for pilation, so it will skip piling.

Few weeks before it is working fine but now I am getting this error.

I re-install VS and Tool for Apache Cordova, but still getting this error.

How to solve this error? Any solution?

Share Improve this question edited Apr 14, 2015 at 20:23 MMiroslav 1,76220 silver badges32 bronze badges asked Apr 14, 2015 at 19:45 Osama UsmaniOsama Usmani 511 silver badge3 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 9

To fix this warning !

  1. open your (your project name).csproj with texteditor tools ( NotePad , Editplus , etc.. )
  2. remove this line..

    <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props')" />
    
  3. save

  4. re open project.

hope this help !

To fix this warning you can remove the line in your .csproj file or .jsproj. You can just open this in your favorite text editor.

Offcourse if you plan to use Typescript in the future you can always add it back in the project file!

You need at least one file marked with the build action "TypeScriptCompile".

This will then be passed to the TypeScript piler for you. You only need to specify your "top level" file, as the piler will walk the dependencies for you.

(Tools>Options>Projects and Solutions>Build and Run>Set MSBuild project build output verbosity= Diagnostic

now you can see in console what fail!

本文标签: