Search broken links(path) in the project in Visual Studio

Asked

Viewed 34 times

2

I have a web project in Visual Studio 2012 and would like to know if there was any way to scan the code for paths to files that are not certain and also identify files that are not used.

For example, let’s say in my aspx I have calls to css files:

<link href="css/base.css" rel="stylesheet" />
<link href="css/bootstrap2.css" rel="stylesheet" />
<link href="css/site.css" rel="stylesheet" />

But let’s say that in the css folder there is no site.css file, I would like the application to inform me about this case. And if there is any css file in this same folder but there is no reference anywhere in the code I would like to be alerted as well.

Any plugin(extension) for VS or native way to do this? Anyone who’s ever used Resharper can tell if he does this kind of scanning?

1 answer

-1


To verify which files are not being used, there is (at least) this extension.

In relation to missing references, Resharper has this type of verification.

  • 1

    Could explain how it works, or give examples of how to check this?

  • @Marconi Resharper puts an underscore under the missing/stylesheet script.

  • Show @Andréfigueiredo!! I will test these extensions there and soon I do with Resharper also to compare. I appreciate the help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.