-
Notifications
You must be signed in to change notification settings - Fork 754
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
Building solution fails in Azure DevOps pipeline #1986
Comments
It's #1912 |
@SabotageAndi I’m using .net 5 preview 3 as for sdk. Also this seems to work at another ci provider (appveyor) and locally as well |
The .NET 5 preview SDK has the different behavior in assembly loading in MSBuild Task that was introduced with .NET Core 3.1.200 SDK. Please check that you have everywhere the same SDK installed and that the value of the workaround environment variable (MSBUILDSINGLELOADCONTEXT) is everywhere the same. |
@SabotageAndi If I'm using 3.3 I don't need to use the env var, right? |
Yes, no need for env variable with SpecFlow 3.3 |
I'll switch to this version then. Thanks a lot! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
SpecFlow Version:
Used Test Runner
Version number: 2.4.1
Project Format of the SpecFlow project
.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation
NuGet packageVisual Studio Version
Enable SpecFlowSingleFileGenerator Custom Tool
option in Visual Studio extension settingsAre the latest Visual Studio updates installed?
.NET Version:
Test Execution Method:
<SpecFlow> Section in app.config or content of specflow.json
See the repo
Repro Project
https://github.com/LogoFX/cli-dotnet/tree/feature/azure-pipelines
Issue Description
This is the error:
C:\Users\VssAdministrator.nuget\packages\specflow.tools.msbuild.generation\3.1.97\build\SpecFlow.Tools.MsBuild.Generation.targets(93,5): error MSB4018: The "GenerateFeatureFileCodeBehindTask" task failed unexpectedly. [D:\a\1\s\specs\LogoFX.Cli.Dotnet.Specs.Features\LogoFX.Cli.Dotnet.Specs.Features.csproj]
C:\Users\VssAdministrator.nuget\packages\specflow.tools.msbuild.generation\3.1.97\build\SpecFlow.Tools.MsBuild.Generation.targets(93,5): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'TechTalk.SpecFlow, Version=3.1.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'. The system cannot find the file specified. [D:\a\1\s\specs\LogoFX.Cli.Dotnet.Specs.Features\LogoFX.Cli.Dotnet.Specs.Features.csproj]
C:\Users\VssAdministrator.nuget\packages\specflow.tools.msbuild.generation\3.1.97\build\SpecFlow.Tools.MsBuild.Generation.targets(93,5): error MSB4018: File name: 'TechTalk.SpecFlow, Version=3.1.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41' [D:\a\1\s\specs\LogoFX.Cli.Dotnet.Specs.Features\LogoFX.Cli.Dotnet.Specs.Features.csproj]
Steps to Reproduce
Run the job - the error is very consistent.
The question here is whether you saw this before. Maybe something's wrong with the
.yaml
fileThe text was updated successfully, but these errors were encountered: