Typescript files duplicated with [None]


This started happening for some reason the other day.


So far I know:

1. There is only one physical file.

2. Excluding one of the duplicates leaves it with one file as expected.

3. Changes to one file effects both.

4. Transpiling taking place normally.

5 .It is not destructive (I don't think). 

6. It does not effect all .ts files, just some.


Additional Info

JetBrains Rider 2019.2.3
Build #RD-192.7317.11, built on October 16, 2019
Runtime version: 11.0.4+10-b304.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1450M
Cores: 8
Registry: ide.tree.horizontal.default.autoscrolling=false, performance.watcher.sampling.interval.ms=200, ide.borderless.title.product=false, performance.watcher.unresponsive.interval.ms=1000, ide.tooltip.initialDelay.highlighter=0, search.everywhere.settings=true, parameter.info.max.visible.rows=10, ide.win.file.chooser.native=true, debugger.watches.in.variables=false, ide.borderless.title.project.path=false, search.everywhere.pattern.checking=false, ide.tooltip.initialDelay=0, ide.borderless.title.classpath=false, ide.require.transaction.for.model.changes=false
Non-Bundled Plugins: Abc.MoqComplete.Rider, CMD Support, com.godwin.json.parser, com.imuxuan.core.search, Gitflow, com.microsoft.vso.idea, commit-template-idea-plugin, net.seesharpsoft.intellij.plugins.csv, BashSupport, com.intellij.plugin.adernov.powershell, com.intellij.resharper.azure, com.google.gct.core, com.intellij.kubernetes, com.vladsch.idea.multimarkdown, zielu.gittoolbox


Hi Milas, 

thank you for contacting us. Could you please check if this occurs just in one solution? 

Also, could you please collect the logs (Help -> Compress Logs...)? Please attach the logs and your *.csproj file to a new support ticket: Submit a request.

Thank you in advance. 


I'm getting the same issue on multiple files. Has there been a resolution?


Hi Dave! 

I should ask you the same questions :) 

Could you please check if this occurs just in one solution? 

Also, could you please collect the logs (Help -> Compress Logs...)? Please attach the logs and your *.csproj file to a new support ticket: Submit a request.

Unfortunately, without additional info we can't analyze this issue and find a fix or workaround. Thank you in advance! 


I'm having the same issue.  I checked my .proj file and it does not have duplicates.  I've invalidated the cache in Rider and restarted and the duplicates come back. I've deleted the .idea folder and started my project anew and the duplicates come back. This is very frustrating.


I found that manually removing the lines from the mdm.csproj  that reference the duplicated files resolved this issue.

Look for lines that look like so: 

<None Include="Path\to\duplicate\file.ts" />

...and delete them.


Hi Alexandra, I can't send the logs (corporate policy), but what Mr English has said above did the trick. 

The duplicates were listed under the following:

<!-- Don't publish the SPA source files, but do show them in the project files list -->
<Content Remove="$(SpaRoot)**" />
<None Remove="$(SpaRoot)**" />
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />


Hi all, 

thank you. This is definitely that I wanted to check in your .cproj files :) 

Could you please confirm that none of you did not add these lines manually to your .cproj?  Do you have the same issue with any other projects on Rider 2019.3.1? 


Hi Alexandra,

I will try with a different project when I’m back at work after Christmas. The lines in the project file are added automatically whenever a new typescript file is added, or when I pull new code from the repo via Source Tree.


Please sign in to leave a comment.