Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'runtimes' Folder after Publishing a .Net Core App to Azure Publish Via VS Online

What is the purpose of the 'runtimes' folder that gets published along with all my project files? I have a VS Online account, and have the build/deploy process configured through there. The 'runtimes' folder is certainly not a folder that exists in source control or my project folder.

'runtimes' folder contents:

'runtimes' folder contents

example contents:

example contents

Thanks,
Drew

like image 969
DrewE Avatar asked Jan 20 '17 02:01

DrewE


3 Answers

Like @Gregory_Ott I was facing a similar issue where my deployment was an FDD deployment and the 'runtimes' folder was still being created. All I did was, mentioned the runtime and set the self-contained property to false. In the following example I have used dotnet to publish:

dotnet publish -c Release -o ..\publish --runtime win-x64 --self-contained false

The following link should help you with the deployment: https://learn.microsoft.com/en-us/dotnet/core/deploying/deploy-with-cli

like image 177
Bridget Avatar answered Oct 16 '22 10:10

Bridget


These exist because you are building your application as a self contained application as opposed to one that is dependent upon the framework being installed on the machine executing it. Documentation can be found at https://learn.microsoft.com/en-us/dotnet/articles/core/deploying/ describing the various options that can be used to control this output.

like image 5
Kyle Burns Avatar answered Oct 16 '22 12:10

Kyle Burns


If portable target runtime is selected, runtime folder is created.

like image 2
Mohammad Barbast Avatar answered Oct 16 '22 10:10

Mohammad Barbast