Skip to content

Mvc.Performance benchmark failing to run: An assembly specified in the application dependencies manifest has already been found but with a different file extension #22915

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

Closed
alefranz opened this issue Jun 13, 2020 · 5 comments · Fixed by #23000
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Comments

@alefranz
Copy link
Contributor

Describe the bug

I'm unable to run the benchmarks in Microsoft.AspNetCore.Mvc.Performance due to an issue resolving the dependencies.

To Reproduce

.\build.ps1 -BuildManaged -Configuration Release
cd src\Mvc\benchmarks\Microsoft.AspNetCore.Mvc.Performance
dotnet run -c Release
# run benchmark 2

Exceptions (if any)

// Execute: dotnet "32037691-5c3b-4f41-ae36-96fed54708cd.exe" --benchmarkName "Microsoft.AspNetCore.Mvc.Performance.HelperPerformanceBenchmark.RenderView(ViewPath: "~/Views/HelperPartialTagHelper.cshtml")" --job "Server=True, Toolchain=.NET Core 5.0, InvocationCount=1, RunStrategy=Throughput, UnrollFactor=1" --benchmarkId 4 in C:\dev\dotnet\aspnetcore\artifacts\bin\Microsoft.AspNetCore.Mvc.Performance\Release\net5.0\32037691-5c3b-4f41-ae36-96fed54708cd\bin\Release\net5.0
Error:
An assembly specified in the application dependencies manifest (32037691-5c3b-4f41-ae36-96fed54708cd.deps.json) has already been found but with a different file extension:
package: '32037691-5c3b-4f41-ae36-96fed54708cd', version: '5.0.0-dev'
path: '32037691-5c3b-4f41-ae36-96fed54708cd.dll'
previously found assembly: 'C:\dev\dotnet\aspnetcore\artifacts\bin\Microsoft.AspNetCore.Mvc.Performance\Release\net5.0\32037691-5c3b-4f41-ae36-96fed54708cd\bin\Release\net5.0\32037691-5c3b-4f41-ae36-96fed54708cd.exe'
ExitCode != 0
// Benchmark Process 5420 has exited with code -2147450740
No more Benchmark runs will be launched as NO measurements were obtained from the previous run!

Further technical details

This happens on current master 28b3ab8

@davidfowl
Copy link
Member

I see the same thing.

cc @BrennanConroy

@BrennanConroy
Copy link
Member

Yeah same, no idea what's going on.

Side-note, running the project from VS works (•_•)

@alefranz
Copy link
Contributor Author

I actually get the same error when running it from VS. I'm on Version 16.7.0 Preview 2.0

@BrennanConroy
Copy link
Member

Found the commit that broke it. d5849f3
That's the change from netcoreapp5.0 to net5.0. Not sure how it broke it though.

@javiercn javiercn added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jun 15, 2020
@mkArtakMSFT mkArtakMSFT added area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework and removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Jun 15, 2020
@alefranz
Copy link
Contributor Author

Brilliant! thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Jul 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants