When adding a dll link to a project, the path to it is indicated as complete: <Диск>:\<Папка1>\<Папка2>\<Папка решения>\<Название файла>.dll Please tell <Диск>:\<Папка1>\<Папка2>\<Папка решения>\<Название файла>.dll how to specify a relative path of type \<Папка решения>\<Название файла>.dll so that on another computer this link works correctly.

  • Something did not notice this. But you can slice your hands in csproj and fix it. - Qwertiy
  • @Qwertiy, thanks for the hint, did not know that in this file you need to look for it. - Rltx11
  • @Qwertiy, is this the right place to point the way? <ItemGroup> <Reference Include="<НАЗВАНИЕ ССЫЛКИ>"> <HintPath>.\<НАЗВАНИЕ ССЫЛКИ>.dll</HintPath> <EmbedInteropTypes>False</EmbedInteropTypes> </Reference> ..... - Rltx11
  • There seems to be a folder with a project ... Or with a solution ... I do not remember. - Qwertiy
  • @Qwertiy, thanks. Understood, everything is now normal. - Rltx11

1 answer 1

When adding a link to a file located in the project folder, the path to the link is indicated relative. This path can be seen in the csproj in the section:

 <ItemGroup> <Reference Include="<НАЗВАНИЕ ССЫЛКИ>"> <HintPath>.\<НАЗВАНИЕ ССЫЛКИ>.dll</HintPath> </Reference> ..... 
  • And then mark it as true :). - andreycha
  • @andreycha, your own only after 2 days can be noted like - Rltx11