I don't use CodeAnalysis at all. But I don't know why, my output folder contains a lot of folders related to cultural resources of Microsoft.CodeAnalysis.CSharp
.
I've asked it first here.
Can you create a clean output folder when there is no need for localization resources?
@nefcanto Please provide a complete project that demonstrates the issue that concerns you, and identify what specific output folder you are talking about and which files you are referring to.
After upgrading to .NET Core 3.0, based on this issue I had to replace RazorViewEngineOptions
with MvcRazorRuntimeCompilationOptions
which is located inside Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
NuGet package. This package results in this bin folder:
And when I look inside each of these folders, I see this:
Is this information enough?
I had the same issue. Same folders but content is
Microsoft.CodeAnalysis.CSharp.resources.dll
Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
Microsoft.CodeAnalysis.resources.dll
Microsoft.CodeAnalysis.Workspaces.resources.dll
After removing
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.0.0" />
From the project file it was resolved. I got that reference when scaffolding an addition to my project.
@nefcanto and @vankampenp
if you are using the new sdk-style project format you can add this property to your project
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
this should ensure that these resource dlls are not deployed
@jmarolf, that solved my problem. Thank you so much.
@nefcanto I am going to close this issue in that case. Things are working as designed
Most helpful comment
@nefcanto and @vankampenp
if you are using the new sdk-style project format you can add this property to your project
this should ensure that these resource dlls are not deployed