Skip to content

Cannot debug the library in external projects #4339

@MarvinKlein1508

Description

@MarvinKlein1508

🐛 Bug Report

You can't simply debug the core library within external projects.

💻 Repro or Code Sample

  1. Clone: https://github.com/MarvinKlein1508/FluentUI-Debug-Issue
  2. Open in Visual Studio
  3. Right click the solution and choose: Add->Existing Project...
  4. Add the local copy of the Microsoft.FluentUI.AspNetCore.Components project
  5. Add project reference to the added project
  6. Start debug

🤔 Expected Behavior

I expect the app to boot up normally.

😯 Current Behavior

The app crashes because design themes cannot be initialized. When you comment out the design setup in App.razor and Route.razor the app will boot but all CSS and JS from the components are missing.

💁 Possible Solution

It would be great to have some kind of docs in the repository how we can setup debugging for external projects.

🔦 Context

I need to be able to debug some stuff in our main project which I can't simply copy over and provide to Github.

🌍 Your Environment

  • Windows 11 Professional 64Bit
  • Latest Firefox and Edge
  • .NET and Fluent UI Blazor library Version 4.12.2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions