question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The purpose of refs folder

See original GitHub issue

dotnet publish command produces output that contains refs folder. This folder contains the same core assemblies that I have in the root publish folder plus more. Also it contains one more copy of my .exe file. Without this folder the application throws an error about missing files.

I wonder, what is the purpose of this folder and why the same files have to be deployed twice increasing the deployment size?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
guardrexcommented, Jul 25, 2016

@blackdwarf (is it too soon to ping @spboyer, too 😄 ) I wish this (and this type of information) were over at https://docs.microsoft.com/en-us/dotnet/articles/core/index (perhaps a branch point to a doc under the “Composition” heading) on how the ✨ magic ✨ works; however, I realize that a lot will change moving to MSBuild/csproj. Even if you considered such a doc, I can see why you would want to wait for a while.

0reactions
davidfowlcommented, Jul 27, 2016

@eerhardt yes 1000% 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is 'refs' folder in ASP.NET Core app's publish ...
At run-time, in order to ensure Razor view engine uses same set of assemblies as referenced during compile time, refs folder is generated ......
Read more >
Resilient File System (ReFS) overview
Integrity-streams - ReFS uses checksums for metadata and optionally for file data, giving ReFS the ability to reliably detect corruptions.
Read more >
c# - Ref folder within .NET 5.0 bin folder
These are so called Reference Assemblies (assemblies that only contain the public interface of an assembly), these help speed up the build ......
Read more >
ReFS
ReFS uses B+ trees for all on-disk structures, including all metadata and file data. Metadata and file data are organized into tables similar...
Read more >
Git - Git References
In Git, these simple names are called “references” or “refs”; you can find the files that contain those SHA-1 values in the .git/refs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found