且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

编译解决方案时MSBuild找不到SGen

更新时间:2022-01-01 06:33:25

这似乎是我最近刚遇到的一个常见问题.

This seems to be a common issue I just ran into these days myself.

在构建"选项卡上的项目属性中,将选项生成序列化程序集"从自动"设置为关闭".

In your project properties on the "Build" tab set the option "Generate serialization assembly" from "Auto" to "Off".

更新

如果您还没有尝试过,请确保为 Release AND Debug 配置设置了 Off</GenerateSerializationAssemblies>.

If you not already tried, make sure that <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> is set for Release AND Debug configuration.