Skip to content

How to avoid manual reference to Microsoft.Fast.Components.FluentUI when using Fluent-UI Blazor in a Razor Class Library #391

Closed Answered by andreisaperski
LuohuaRain asked this question in Q&A
Discussion options

You must be logged in to vote

I've started with BlazorApp1 (Blazor Server App) and RazorClassLibrary1 (RCL). Added Microsoft.Fast.Components.FluentUI to RazorClassLibrary1 and a simple component with FluentButton. Added componet from RCL to Index page in BlazorApp1.
When i run BlazorApp1, there was no Microsoft.Fast.Components.FluentUI.lib.module.js among the loaded scripts - static web assets of Microsoft.Fast.Components.FluentUI were not loading.
So i commented out the following lines in Microsoft.Fast.Components.FluentUI.csproj (src/Microsoft.Fast.Components.FluentUI/Microsoft.Fast.Components.FluentUI.csproj):

<StaticWebAssetsDisableProjectBuildMultiTargetingPropsFileGeneration>true</StaticWebAssetsDisableProjectBu…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@andreisaperski
Comment options

@vnbaaij
Comment options

@andreisaperski
Comment options

Answer selected by vnbaaij
@vnbaaij
Comment options

@vnbaaij
Comment options

@LuohuaRain
Comment options

@vnbaaij
Comment options

Comment options

You must be logged in to vote
1 reply
@LuohuaRain
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants