JoshuaKGoldberg / TSLint.MSBuild

[Deprecated] An MSBuild task for running TSLint.
https://www.nuget.org/packages/TSLint.MSBuild
MIT License
15 stars 13 forks source link

The attribute "Include" in element <TSLintExclude> is unrecognized #84

Closed isc30 closed 6 years ago

isc30 commented 6 years ago

I'm trying to use it by adding those lines to my .csproj

<TSLintExclude Include="%2A%2A/%2A.d.ts" />
<TSLintExclude Include="%2A%2A/%2A.tsx" />

I also tried:

<TSLintExclude>**/*.d.ts</TSLintExclude>
<TSLintExclude>**/*.tsx</TSLintExclude>
isc30 commented 6 years ago

Solved: They must be inside <ItemGroup>

<ItemGroup>
    <TSLintExclude Include="**/*.d.ts" />
    <TSLintExclude Include="typings/**/*.ts" />
</ItemGroup>