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

Multi tool use


.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.