question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find bin/obj directory for blazor app.

See original GitHub issue

Description

Cannot find bin directory for Blazor app. Neither ‘C:/Users…BBGrid/bin/debug’ nor ‘C:/Users…BBGrid/bin/release’ exists on disk.

To Reproduce

  1. Using 3.0.100-preview5-011568
  2. dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview5-19227-01 as per https://docs.microsoft.com/en-us/aspnet/core/blazor/get-started?view=aspnetcore-3.0&tabs=visual-studio
  3. dotnet new blazor -o BBGrid
  4. cd BBGrid
  5. dotnet run

Expected behavior

Project to run

Screenshots

bin/obj folders: https://i.gyazo.com/5b97ca49c9f5458e47f4b3a187824c8e.png dotnet run output: https://i.gyazo.com/86578b19107317796a7aaec3fc79c7b0.png dotnet --info output: https://i.gyazo.com/8853b0bf140c35b10e731980a465a447.png Workaround folder structure: https://i.gyazo.com/db42ca0b333322ef7df9942fb6eacdf3.png

Additional context

There seems to be a manual workaround. Looking at the bin/obj folders, if I move the debug folder outside the MCD folder so it’s direct parent is the bin and obj, it will run successfully. See workaround folder structure in screenshots. Unfortunately this isn’t feasible if I have to do this every time the project builds 😦

dotnet build does not solve issue 😦

Possible Duplicate of https://github.com/aspnet/Blazor/issues/487

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
javiercncommented, Jun 11, 2019

@SteveSandersonMS I believe I have something that can help with this. I changed how the devserver works as part of adding support for static web asssets and pass the target path from MSBuild. I believe that has potentially the side-effect or fixing this

1reaction
mkArtakMSFTcommented, May 28, 2019

Thanks for contacting us, @Gander7. What OS are you running this on?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot identify unique bin directory for Blazor app.
Issue—Blazor – InvalidOperationException: Cannot identify unique bin directory for Blazor ... Open the application in File Explorer and delete the bin/Debug ...
Read more >
Blazor WASM app "Cannot load file or assembly" for ...
Cleaning the solution didn't work, but deleting all the bin/obj folders then rebuilding the app did. I used the cleanup tool.
Read more >
Blazor WASM app won't load after publish. Works fine on ...
I found online that a solution could be to delete bin/obj folder on client AND server side. I don't have an obj or...
Read more >
Weird errors problem with dotnet watch with blazor/wasm.
But when I change something in one of the blazor files, the blazor app displays LOTS of errors about not being able to...
Read more >
How to deploy ASP.NET Blazor WebAssembly to GitHub ...
You can deploy these applications to various static site hosts like ... In the publish directory, you will find a web.config file and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found