简体   繁体   中英

Remove Application Files in Visual Studio

I have a WPF project in Visual studio, and suddenly Microsoft.IdentityModel.dll has been included in Application Files. I don't know where it comes from and how to remove it. I know I can set Publish Status to Exclude, but does anyone know why it is there? I have made a text search in all files included in the solution but I'm not able to find it anywhere:

在此输入图像描述

it might be a dependent dll to any reference you added to a project . try removing the reference and check whether it is dependent or not .

I had a similar problem and found the name of the mystery files in the other DLLs in the bin folder. VS appears to be detecting the dependencies and including the proper DLLs.

Try this PowerShell script to see if you can find hidden references:

get-childitem -file -recurse | Select-String -Pattern your_mystery_file | group path | select name

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM