aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

The scoped css file 'Views\Shared\_Layout.cshtml.css' was defined but no associated razor component or view was found for it. Fake.Web D:\dotNet\FakeMelySite\Fake.Web\Views\Shared\_Layout.cshtml.css 1

Open althepal78 opened this issue 2 years ago • 9 comments

I am not using blazor at all. I basically copied over a project to work on getting rid of scaffolding to razor pages because to me they are so many that it is not worth using them. I only really need login and register, for now, All these Identity pages are useless as of right now. I also prefer using controllers vs a page and a controller for each page that is stupid as hell IMO but Microsoft must have good reasons for this. My layout was made in MVC project and the copied version is also an MVC project I don't get the issue

althepal78 avatar Sep 14 '22 03:09 althepal78

@althepal78 thanks for contacting us.

There is a bug in the error code as the feature was originally introduced for Blazor, but the feature is available for MVC and Razor Pages too since 6.0. We might have just missed updating the error code.

Do you not have a _Layout.cshtml inside Views\Shared?

javiercn avatar Sep 14 '22 10:09 javiercn

Hi @althepal78. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Sep 14 '22 10:09 ghost

@althepal78 thanks for contacting us.

There is a bug in the error code as the feature was originally introduced for Blazor, but the feature is available for MVC and Razor Pages too since 6.0. We might have just missed updating the error code.

Do you not have a _Layout.cshtml inside Views\Shared?

Yes I do have a layout page as well I literally just redid the whole project. Deleted and copied the other project again. Now the only issue I have is the footer don't want to stay at the bottom.

althepal78 avatar Sep 14 '22 14:09 althepal78

@althepal78 thanks for the additional details.

Just to make sure that we understand, you are no longer seeing the issue after you cleaned/rebuild/redid the project, are you?

javiercn avatar Sep 15 '22 09:09 javiercn

Hi @althepal78. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Sep 15 '22 09:09 ghost

No I didn’t clean or rebuilt the project. I totally deleted it and created a whole new project copied and pasted the code from a different project. I’m trying to use a few controllers vs having 29 razor pages with 29 controllers in the bg

althepal78 avatar Sep 15 '22 12:09 althepal78

@althepal78 it's not clear if you're still facing this issue. Did it go away after you've removed the offending content, or is it still there?

mkArtakMSFT avatar Sep 22 '22 17:09 mkArtakMSFT

Hi @althepal78. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Sep 22 '22 17:09 ghost

@althepal78 it's not clear if you're still facing this issue. Did it go away after you've removed the offending content, or is it still there?

I literally deleted it I said that already and redid it

althepal78 avatar Sep 22 '22 19:09 althepal78

@althepal78 It's not clear what the current issue you're facing is. If the issue is with the footer positioning, this sounds like a CSS problem. If you're experiencing some other issue, could you please describe what it is and provide us with a minimal repro project, hosted as a public GitHub repository? Thanks.

MackinnonBuck avatar Sep 27 '22 16:09 MackinnonBuck

Hi @althepal78. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Sep 27 '22 17:09 ghost

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

See our Issue Management Policies for more information.

ghost avatar Oct 03 '22 00:10 ghost