提交 73a23433 编写于 作者: A Ashley Hauck

Provide a message with invalid HostObjects

Re-using an already-present error message:
MSB3087: An incompatible host object was passed into the "{0}" task.  The host object for this task must implement the "{1}" interface.
上级 a8dc552f
......@@ -208,7 +208,7 @@ protected internal override void AddResponseFileCommands(CommandLineBuilderExten
}
else if (HostObject != null)
{
throw new InvalidOperationException();
throw new InvalidOperationException(string.Format(ErrorString.General_IncorrectHostObject, "Csc", "ICscHostObject"));
}
if (!designTime)
{
......
......@@ -512,7 +512,7 @@ protected internal override void AddResponseFileCommands(CommandLineBuilderExten
}
else if (this.HostObject != null)
{
throw new InvalidOperationException();
throw new InvalidOperationException(string.Format(ErrorString.General_IncorrectHostObject, "Vbc", "IVbcHostObject"));
}
if (!designTime)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册