You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/csharp/language-reference/compiler-messages/assembly-references.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,25 +93,25 @@ These compiler errors indicate one of these problems in your code:
93
93
94
94
If the assembly appears to be referenced in your project but you still receive CS0012, try these troubleshooting steps:
95
95
96
-
1.**Restore packages**: Run `dotnet restore` to ensure all package references are properly resolved, especially after installing or uninstalling NuGet packages.
96
+
-Restore packages: Run `dotnet restore` to ensure all package references are properly resolved, especially after installing or uninstalling NuGet packages.
97
97
98
-
1.**Clear package caches**: Clear the NuGet package cache and restore:
98
+
- Clear the NuGet package cache and restore:
99
99
100
100
```console
101
101
dotnet nuget locals all --clear
102
102
dotnet restore
103
103
```
104
104
105
-
1.**Check for version conflicts**: Verify that all referenced assemblies use compatible versions. Look for binding redirect warnings in the build output.
105
+
-Check for version conflicts: Verify that all referenced assemblies use compatible versions. Look for binding redirect warnings in the build output.
106
106
107
-
1.**Clean and rebuild**: Clean the solution and rebuild to ensure no stale references remain:
107
+
- Clean the solution and rebuild to ensure no stale references remain:
108
108
109
109
```console
110
110
dotnet clean
111
111
dotnet build
112
112
```
113
113
114
-
1.**Verify package integrity**: If the error occurred after package operations, ensure the package was installed correctly by removing and reinstalling it:
114
+
-Verify package integrity: If the error occurred after package operations, ensure the package was installed correctly by removing and reinstalling it:
0 commit comments