.NET Core 2.1 - dotnet/exe on build, packages are missing

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


.NET Core 2.1 - dotnet/exe on build, packages are missing



I've been developing on one machine and recently tried to install my application on another PC. I think I've deduced to to the nuget packages not being found since in .NET Core, nuget puts the packages in the local 'Users' folder path.



I initially added the <RunTimeIdentifier> tag to create an exe (which worked on my developer machine). When running the exe on a different machine, the console window will flash very quickly and application stops with no error output (even in Event Viewer).


<RunTimeIdentifier>



I also added this tag <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest


<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest



in the *.csproj which did not make a difference.



So I tried running dotnet project.dll which gave me this error on the other machine.


dotnet project.dll



An assembly specified in the application dependencies manifest (project.deps.json) was not found:



package: 'Localization.AspNetCore.TagHelpers', version: '0.3.0'



path: 'lib/netstandard1.6.1/Localization.AspNetCore.TagHelpers.dll'



When I 'recreated' the folder structure, lo-and-behold, everything was working.
Is there a way on compile/build that those packages are copied to the bin folder and paths reference those instead? Or am I building/compiling wrong?



Also note that thie project was updated from .NET Core 2.0 to 2.1.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

y06 YICW,VskIMUUm0VWWsXdO,izNfwigp2OCL9zuH rc7,DaoIv5M MXzHt,XLpdB7xcHL1cvWWJ,V Hmvs
DtHMH61oWL6cFyKc6eS5,YF1bmOTl,oNdh J 9rcNM3xEkVnGa,c4GUqi58eBBZ1yFHY ultvIvCE y,meGmTqCOIMBo LFY7

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham