所有突然的Specflow生成器都在使用Visual Studio 2015抛出异常。我还没有升级Visual Studio或Specflow的任何新包

时间:2018-03-13 15:33:18

标签: specflow

我正在使用Visual Studio 2015和Specflow 2017.1..12。我使用这种组合超过2年。一切都很好,直到2018年1月。

我们在2018年2月没有开发任何新测试。因为我们没有时间从事自动化工作。自上周以来我开始研究新测试并更新现有测试。当我修改现有specflow功能文件并保存它时,不会生成#error TechTalk.SpecFlow.Generator.Interfaces.TestGenerationError #error TechTalk.SpecFlow.Generator #error Server stack trace: #error at TechTalk.SpecFlow.Generator.Plugins.GeneratorPluginLoader.LoadPlugin(PluginDescriptor pluginDescriptor) #error at TechTalk.SpecFlow.Generator.GeneratorContainerBuilder.<>c__DisplayClass3.<LoadPlugins>b__1(PluginDescriptor pd) #error at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() #error at System.Linq.Enumerable.<ConcatIterator>d__58`1.MoveNext() #error at System.Linq.Buffer`1..ctor(IEnumerable`1 source) #error at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) #error at TechTalk.SpecFlow.Generator.GeneratorContainerBuilder.LoadPlugins(ObjectContainer container, IGeneratorConfigurationProvider configurationProvider, SpecFlowConfigurationHolder configurationHolder) #error at TechTalk.SpecFlow.Generator.GeneratorContainerBuilder.CreateContainer(SpecFlowConfigurationHolder configurationHolder, ProjectSettings projectSettings) #error at TechTalk.SpecFlow.Generator.TestGeneratorFactory.CreateGenerator(ProjectSettings projectSettings) #error at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) #error at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg) #error Exception rethrown at [0]: #error at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) #error at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) #error at TechTalk.SpecFlow.Generator.Interfaces.ITestGeneratorFactory.CreateGenerator(ProjectSettings projectSettings) #error at TechTalk.SpecFlow.IdeIntegration.Generator.RemoteAppDomainTestGeneratorFactory.CreateGenerator(ProjectSettings projectSettings) #error at TechTalk.SpecFlow.IdeIntegration.Generator.GeneratorServices.CreateTestGenerator() #error at TechTalk.SpecFlow.IdeIntegration.Generator.IdeSingleFileGenerator.GenerateCode(String inputFilePath, String inputFileContent, GeneratorServices generatorServices, ProjectSettings projectSettings) #error at TechTalk.SpecFlow.IdeIntegration.Generator.IdeSingleFileGenerator.Generate(String inputFilePath, String inputFileContent, GeneratorServices generatorServices, CodeDomHelper codeDomHelper, ProjectSettings projectSettings) 文件。它抛出了一个生成器异常。

我不知道为什么我们突然得到这个例外。我们没有升级任何Visual Studio或Specflow插件超过1年。

我一直在网上寻找解决方案,但我能找到答案。请帮忙!

这是生成器异常:

fetch(`https://www.facebook.com/v2.12/dialog/oauth?
client_id=APP_ID
&redirect_uri=https://www.facebook.com/connect/login_success.html
&scope=manage_pages,publish_pages
&response_type=token`, {
mode: 'no-cors',
});

0 个答案:

没有答案