安装 Visual Studio 2015 并构建我的项目后,我收到错误
"CSC : error CS7038: Failed to emit module".
但是我的解决方案在 Visual Studio 2013 中构建良好。
这是一个 ASP.NET webforms 项目 .NET 4.0
有人吗?
更新:看起来问题与 Red Gate Smart Assembly 以及具有默认值的方法参数有关。
更新:Smart Assembly 6.9 为我修复了错误。
最佳答案
原始片段:
private void radButton1_Click(object sender, EventArgs e)
{
string perp = radTextBox1.Text;
int i = 0;
DataRow arp = ale.Rows[i];
while (i <= ale.Rows.Count)
{
if (ale.Rows[i].Field<>("FullName") = perp)
{
arp = ale.Rows[i];
ale.Rows.Remove(arp);
}
}
i = ale.Rows.Count;
radLabel1.Text = i.ToString();
}
改变了这个:
if (ale.Rows[i].Field<>("FullName") = perp)
为此:
if (ale.Rows[i].Field<String>("FullName") == perp)
关于c# - CSC : error CS7038: Failed to emit module,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31692729/