I have a console app for .NET Core 2.0.
I can successfully create, distribute, and operate this software locally.
In Azure DevOps, I can successfully create and publish this app.
However, I am unable to launch the finished product if I construct the app in Azure DevOps. I tried creating in Azure DevOps using:
dotnet build -c Release -r win-x64 -o app
When I run:
dotnet publish -c Release -r win-x64 -o app
The System.*.dll files and other files are included, however, I still receive the same files.
This time, I've seen that MyApp.exe runs successfully and functions as intended.
Why does dotnet build... function locally, but when I run it in Azure DevOps, I don't seem to get the same behavior?
I feel as though I must use dotnet publish.
The resulting.zip file grows from 500kb to 30MB, which is my problem.
This difference is significant.