0

I have a console application which has project reference of a web application.

This is how the project reference is added in the csproj file of the console application

<ItemGroup>
  <ProjectReference Include="..\..\EMP.Web\EMP.Web.csproj" />
</ItemGroup>

I am trying to publish the console application with these settings

Publish settings

But it is giving me this error

Metadata file 'C:\Projects\EMP\EMP.Web\obj\Release\net7.0\win-x64\ref\EMP.Web.dll' could not be found

What I have found out is that it does generate EMP.Web.dll inside obj path, it is just that it is not getting generated under win-x64 folder, so basically this is the path where the web dll is generating

C:\Projects\EMP\EMP.Web\obj\Release\net7.0\ref\EMP.Web.dll

But it is trying to find it under win-x64 folder.

Is there any setting that I can do to have it find the web dll under the folder where it is actually generating?

4
  • 1
    There is a space after EMP, is it a part of the folder name? Commented Apr 15 at 8:20
  • @shingo No, entered due to the text pasting. No space in the name of the folder Commented Apr 15 at 9:25
  • Oh, you revised an unexpected position, I actually meant the space in the error message, is that also due to the text pasting? Commented Apr 15 at 9:54
  • @shingo - Oops! That was also just the text pasting miss. Corrected it now Commented Apr 15 at 13:14

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.