User283571144 posted
Hi aex,
Question: How can I restore the deleted 'Bin' folder ? I want to exclude it from source control and if I'm cloning the project clean, I won't be able to run it without restoring
the missing 'Bin' folder.
As far as I know, when I install a NuGet package, such as Microsoft.AspNet.Razor, into an ASP.NET web pages application then the bin folder is created.
Getting the binaries into the bin folder is part of the build process and it is not done by NuGet. NuGet can be used to restore the files into the packages folder but will not do anything with your bin folder when restoring.
For building and package restore to work it looks like you need to keep the bin folder and any .refresh files. You can remove the other binaries from your version control system.
System.Web.Razor.dll.refresh
Its content:
..\packages\Microsoft.AspNet.Razor.3.2.4\lib\net45\System.Web.Razor.dll
So if you want to restore the bin folder's package, you need keep the refresh dll in the bin folder.
If the refresh dll is exists, the VS will auto copy the dll into the bin folder.
Best Regards,
Brando