Skip to content
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

scoped.styles.css available when run via CLI or VSCode, but not when run with Visual Studio #26561

Closed
vsfeedback opened this issue Oct 2, 2020 · 8 comments
Labels
area-blazor Includes: Blazor, Razor Components Author: Migration Bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author. Needs: Attention 👋 This issue needs the attention of a contributor, typically because the OP has provided an update.

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
I'm using the standard ASP Hosted Blazor Wasm project template, but I created a new RCL where I moved the MainLayout and NavMenu components. The RCL is only referenced by the Client project.

When I run my application using Visual Studio (either IIS Express or Project Launch options, using either Debug or Release config) there is no problem the first time, but when I change anything in the solution and run again, I receive a 404 for _framework/scoped.styles.css.

I'm using Visual Studio Version 16.8.0 Preview 3 along with SDK 5.0.100-rc.1.20452.10, although I noticed the issue at least three versions ago.

This issue is not present when I run the project using either the CLI or VSCode.

I can fix the site by either cleaning the server project and running again, or by referencing the RCL in the Server project directly.


Original Comments

Feedback Bot on 9/26/2020, 07:41 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

@ghost ghost added the Author: Migration Bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author. label Oct 2, 2020
@NTaylorMullen NTaylorMullen added the area-blazor Includes: Blazor, Razor Components label Oct 2, 2020
@pranavkm
Copy link
Contributor

pranavkm commented Oct 5, 2020

Thank you for filing this issue. In order for us to investigate this issue, please provide a minimal project (ideally a GitHub repo) that illustrates the problem.

@pranavkm pranavkm added the Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. label Oct 5, 2020
@ElectricHavoc
Copy link

I'm also having this issue ( Blazor Server Side nothing fancy ). F5 isn't picking up scoped css changes. dotnet watch run does. Triggering a forced rebuild works, I suspect the engine not picking up the changes, or it thinks the css is static still.

Latest of all components VS Preview / RC1 - If I can get some time for a repo sln, I'll try to post one.

@ghost ghost added Needs: Attention 👋 This issue needs the attention of a contributor, typically because the OP has provided an update. and removed Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. labels Oct 6, 2020
@mkArtakMSFT mkArtakMSFT added investigate and removed Needs: Attention 👋 This issue needs the attention of a contributor, typically because the OP has provided an update. investigate labels Oct 7, 2020
@mkArtakMSFT
Copy link
Member

This should have been fixed as part of #24337 in RC2 release. Please try out the nightly RC2 build and let us know if you still face this issue.

@mkArtakMSFT mkArtakMSFT added the Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. label Oct 7, 2020
@ElectricHavoc
Copy link

ElectricHavoc commented Oct 7, 2020

Installed 5.0.100-rtm.20507.2, (successful build, but now scoped.styles.css is getting a 404). - Checking docs for new sig...?

This is also using cli. dotnet clean / build / run.

@ghost ghost added Needs: Attention 👋 This issue needs the attention of a contributor, typically because the OP has provided an update. and removed Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. labels Oct 7, 2020
@ElectricHavoc
Copy link

Inspecting the obj folder, it does look like signature changed from:

~/[AssemblyName]/_framework/scoped.styles.css
to
~/[AssemblyName].styles.css

Which works, although now I have other JSInterop issues I didn't have before.

@mkArtakMSFT
Copy link
Member

Thanks for confirming, @ElectricHavoc.
If you're facing any other issues, please file separate bugs and we can look into these.

@ABIOLI-COM
Copy link

I just downloaded the Preview 4, and now I'm having the same problem, apparently.
I can see I have a '.../obj/debug/net5.0/scopedcss/bundle/[AssemblyName].styles.css, the contains the correct generation of the component CSS files, but how can I refer and use it in my Index.html page?

@ghost ghost locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components Author: Migration Bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author. Needs: Attention 👋 This issue needs the attention of a contributor, typically because the OP has provided an update.
Projects
None yet
Development

No branches or pull requests

6 participants