Copy a file from a razor class library nuget package to project #56972
Unanswered
bmarkovic17
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea
I'm developing a Razor Class Library with components, pages and some static assets that are used at runtime by Blazor projects with auto render mode and so far everything is working as it should. Since I'm styling my components with Tailwind CSS, I'd like to distribute through the RCL also some Tailwind plugins (javscript files) which are needed at compile time.
The problem
I already created a nuget package that distributes an
.editorconfig
file through a.props
file containing a MSBuild Task that copies the required file from the nuget package to the project directory, but I don't think this approach will work in this case as the Razor Class Library is already creating automatically the props file that imports theMicrosoft.AspNetCore.StaticWebAssets.props
and I don't see a way how I can affect the content of the props files.The question
Does someone know if this can be achieved through the .props file or maybe any other way how to solve this challenge?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions