c# - Renaming project -> "Could not resolve this reference. Could not locate the assembly" -
everytime build solution following warning:
warning not resolve reference. not locate assembly "wordapi". check make sure assembly exists on disk. if reference required code, may compilation errors. offertehost
however seems work fine, it's warning, it's bugging me.
how did start?
i renamed 1 of projects in solution. used right click -> rename option. used search , replace rename namespace files in project. changed assemblyinfo.cs file. in project properties on application tab changed assembly name
, default namespace
. i'm using costura.fody if matter.
how did try fix it?
i changed
hintpath
in project file of executing assembly:<hintpath>..\wordapi\bin\debug\wordapi.dll</hintpath>
- removed reference executing assembly , readded it.
- deleted debug/release folders across solution , rebuilt solution
i can't find solution, it's tempting start blank solution , copy in there...
the properties of reference:
location of project in file explorer:
assuming wordapi in same solution executable, reference should not use hintpath. remove , add reference using solution -> projects selection. reference in executable csproj should like:
<projectreference include="..\wordapi.csproj"> <project>{guid}</project> <name>wordapi</name> </projectreference>
as said in comments, hintpath should not point debug directory since same path used debug , release build configurations, might source of problem.
without more details projects, solution, build paths, build configurations, hard give better answer.
Comments
Post a Comment