Skip to content

Roslyn files are not copied to bin\ during a MVC 5 publish operation. #62

@DeadX07

Description

@DeadX07

We are using TeamCity 2017.2.3 (build 51047) and the MSBuild configuration step to perform a publish operation on our website. After migrating our project from Microsoft.CodeDom.Providers.1.0.8 to 2.0.0 and packages.config to PackageReference, the publish operation quit publishing the roslyn folder in the bin directory.

See also:
https://stackoverflow.com/questions/52321224/roslyn-not-copied-to-bin-for-aspnet-mvc-5-project-using-packagereference-and-mic

We can use the Command Line configuration step instead and call MSBuild.exe directly, which seems to work okay, but we can't build some of our other solution projects this route (such as SSRS). I was recommended to open a bug ticket here.

I can provide our TC logs if requested, but I will have to provide them in a password protected ZIP archive. I can say that I cannot find anywhere in the logs that it even tries to copy these files. The only references to them are when compiling the actual projects.

Update 9/19/2018:
We also found that the files are copied correctly if you compile the solution file. Compiling just the csproj file containing the PackageReference is what does not seem to work.

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions