I created a simple web application with VS2015. In addition, I created an assembly that, in accordance with the default behavior specified in the linked msbuild file, places my site in the _PublishedWebsites folder in the drop folder. What I see if I try to publish my site is that the roslyn folder in the bin directory is missing with it. In fact, there is content, but it is inside the bin directory itself. At the moment I am using a workaround and in postbuild, I am copying the folder in question.
xcopy /s /y /R "$(OutDir)roslyn\*.*" "$(WebProjectOutputDir)\bin\roslyn"
Why not maintain the structure in the bin folder? Is there something I am missing to get this fixed?
EDIT: This problem does not seem to occur if the nuget package recovery is in place. If the package is being restored, the problem does not persist.
source
share