I'm working in an ASP.NET Web Site project (as opposed to an Web Application project, meaning it doesn't have a .csproj file).
The solution is structured like this:
-Solution
   |-dlls
   |   |-AjaxControlToolkit.dll
   |-packages
   |   |-Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1
   |   |   |-(...)
   |   |-RestSharp.106.6.7
   |       |-(...)
   |-WebSiteProject
   |   |-Bin
   |   |   |-(.refresh files listed below)
   |   |-packages.config
   |   |-(other website files)
After a fresh checkout from source control, in the Bin folder I have these:
- AjaxControlToolkit.dll.refresh: - ..\dlls\AjaxControlToolkit.dll
- Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll.refresh: - ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
- RestSharp.dll.refresh: - ..\packages\RestSharp.106.6.9\lib\net452\RestSharp.dll
- roslyn/csc.exe.refresh: - ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\tools\roslynlatest\csc.exe- ...and other files in the - roslynfolder ending in- .dll.refresh, all similar to- csc.exe.refreshabove.
Upon building the web site, these files appear in the Bin folder:
- ajaxcontroltoolkit.dll
- restsharp.dll
- restsharp.dll.xml
But, Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll does not, and neither do any of the binary files in roslyn/. Thus, the site cannot validate/run.
I have three questions, all closely related:
- Is it correct to check-in to source control (TFS) only the files ending in - .refreshand assume the binaries will be copied locally by the build process?
- How are - ajaxcontroltoolkit.dlland- restsharp.dllcopied correctly (from- Solution/dllsand- Solution/packages/RestSharp.105.2.3, respectively), even though the relative paths are wrong?
- Why is the same magic not working for - Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dlland for all binaries in the- roslyndirectory?
Note: because this is a web site project, sure there are no pre- or post-build events.
Thanks.
P.S. the contents of WebSiteProject/packages.config:
<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" targetFramework="net472" />
  <package id="RestSharp" version="106.6.9" targetFramework="net472" />
</packages>
