-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not load file or assembly 'System.CodeDom, Version=4.0.0.0, Culture=neutral #252
Comments
Hi, does it work if you downgrade all of the Reqnroll packages to 2.0.0? |
It seems to be working now. One note I have is that adding the "@Retry" above feature won't retry the scenarios in this feature file. |
Do you mean it works after downgrading Reqnroll to 2.0.0? If so, it's likely an issue with Reqnroll, so it'd be worth raising in their repo. I thought they'd fixed this error in reqnroll/Reqnroll#245 though 🤔 Since you're saying that adding |
unfortunately, I'm not able to share my project. |
I have analyzed the problem on Reqnroll side. The direct problem could be fixed by the change @JoshKeegan did here, but it turned out to be a more generic issue with Reqnroll. A similar problem would happen time to time (Reqnroll v2.2 will have a dependency update on the Gherkin package that would cause a similar issue.) The good news is that I have found a fix: reqnroll/Reqnroll#316 Also as part of the fix I have added a test that checks the compatibility with this plugin, so hopefully we will not have such issues. I plan to release the fix as part of Reqnroll v2.2.0 this week. That will work with xRetry.Reqnroll 1.0.0 as well. |
Thanks for investigating @gasparnagy! Your fix sounds sensible since it makes .Net Framework MSBuild match the out-of-the-box behaviour of dotnet build 👍 I've re-opened this issue & will leave it open until Reqnroll v2.2.0 is released with the fix, in case anyone else comes across this. For anyone else that comes across this trying to use xRetry.Reqnroll, the summary is: if you're using |
With Reqnroll v2.2.0 now released, I'm going to close this. |
Severity Code Description Project File Line Suppression State
Error (active) MSB4018 The "GenerateFeatureFileCodeBehindTask" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'System.CodeDom, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
File name: 'System.CodeDom, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at xRetry.Reqnroll.GeneratorPlugin.customiseDependencies(Object sender, CustomizeDependenciesEventArgs eventArgs)
at Reqnroll.Generator.GeneratorContainerBuilder.CreateContainer(ReqnrollConfigurationHolder configurationHolder, ProjectSettings projectSettings, IEnumerable
1 generatorPluginInfos, IObjectContainer parentObjectContainer) at Reqnroll.Tools.MsBuild.Generation.WrappedGeneratorContainerBuilder.BuildGeneratorContainer(ReqnrollConfigurationHolder reqnrollConfigurationHolder, ProjectSettings projectSettings, IReadOnlyCollection
1 generatorPluginInfos, IObjectContainer rootObjectContainer)at Reqnroll.Tools.MsBuild.Generation.GenerateFeatureFileCodeBehindTaskExecutor.Execute()
at Reqnroll.Tools.MsBuild.Generation.GenerateFeatureFileCodeBehindTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
CostbookUITestsBDD C:\Users\elbaika.nuget\packages\reqnroll.tools.msbuild.generation\2.1.1\build\Reqnroll.Tools.MsBuild.Generation.targets 93
I'm facing the above error. I checked reqnroll/Reqnroll#244 and #245, which should fix the problem.
as you can see below the versions of the packages I have:-
"Reqnroll" Version="2.1.1"
"Reqnroll.CustomPlugin" Version="2.1.1"
"Reqnroll.Autofac" Version="2.1.1"
"Reqnroll.SpecFlowCompatibility" Version="2.1.1"
"Reqnroll.Tools.MsBuild.Generation" Version="2.1.1"
"Reqnroll.xUnit" Version="2.1.1"
"xRetry.Reqnroll" Version="1.0.0"
System.CodeDom" Version="8.0.0"
I would appreciate your help with how to fix this issue.
The text was updated successfully, but these errors were encountered: