Antes de que su restablecimiento todas sus configuraciones, probar esto ...
tuve un problema similar y trazó a DLL en las carpetas \ obj Refactor faltante. Escribí este script VB (que guardé como reff.vbs en una de las carpetas de la variable de entorno de mi ruta) y lo ejecuté desde un símbolo del sistema. Cuando "Buscar todas las referencias" o "Refactorizar> Método de extracción" falla, reconstruya la solución, luego ejecute esto:
'' reff.vbs ''
Dim refFile, wsh, objFSO
Set wsh = CreateObject("wscript.shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
RefactorFolders "c:\Source" '' Put your root source folder here
Set objOutputFile = objFSO.OpenTextFile("RefreshRefactor.bat", 8, True)
objOutputFile.WriteLine(refFile & "")
objOutputFile.Close
wsh.Run "RefreshRefactor.bat", 1, True
Set wsh = Nothing
Set objFSO = Nothing
Sub RefactorFolders(strFolder)
Set objFolder = objFSO.GetFolder(strFolder)
For Each SubFolder in objFolder.SubFolders
If Right(" " & SubFolder.Path, 9) = "\Refactor" Then
Set objBinFolder = objFSO.GetFolder(Left(SubFolder.Path _
, Len(SubFolder.Path) - 8))
Set files = objBinFolder.Files
For Each binFile In files
chk = Right(" " & binFile.Path, 4)
On Error Resume Next
If chk = ".exe" Or chk = ".dll" Or chk = ".pdb" Then
refFile = refFile & "copy /y """
refFile = refFile & binFile.Path & """ """
refFile = refFile & SubFolder.Path & "\"" "
refFile = refFile & vbCrLf
End If
On Error Goto 0
Next
End If
RefactorFolders SubFolder.Path
Next
Set objFolder = Nothing
End Sub
Lo intenté, no tuve suerte. :( – Jeremiah
Entonces, si crea un proyecto de C# realmente simple con dos tipos, donde uno hace referencia al otro, entonces "buscar todas las referencias" no funcionará, incluso en este caso simple? –
Sí, creó un proyecto simple con dos clases , uno haciendo referencia al otro, luego hizo una búsqueda de todas las referencias y devolvió ambas referencias a la función que creé y usé. – Jeremiah