提交 a8dc552f 编写于 作者: A Ashley Hauck

Throw InvalidOperationException instead of silently ignoring an invalid HostObject

上级 143c9620
......@@ -206,6 +206,10 @@ protected internal override void AddResponseFileCommands(CommandLineBuilderExten
{
designTime = csHost.IsDesignTime();
}
else if (HostObject != null)
{
throw new InvalidOperationException();
}
if (!designTime)
{
if (!string.IsNullOrWhiteSpace(VsSessionGuid))
......
......@@ -510,6 +510,10 @@ protected internal override void AddResponseFileCommands(CommandLineBuilderExten
{
designTime = vbHost.IsDesignTime();
}
else if (this.HostObject != null)
{
throw new InvalidOperationException();
}
if (!designTime)
{
if (!string.IsNullOrWhiteSpace(this.VsSessionGuid))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册