Skip to content
This repository has been archived by the owner. It is now read-only.

Nesting bug #1066

Closed
rjamesnw opened this issue Feb 28, 2018 · 2 comments
Closed

Nesting bug #1066

rjamesnw opened this issue Feb 28, 2018 · 2 comments

Comments

@rjamesnw
Copy link

@rjamesnw rjamesnw commented Feb 28, 2018

The is a problem nesting embedded resources. I was experimenting with nesting .cshtml files using the existing rules and did this:

Modal.cs (bootstrap modal web component)
-> Modal.cs.cshtml (it's view file)

Modal.cs.cshtml is set to Embedded Resource, and clearly shows it, but is completed IGNORED by the build process (simply open the DLL in a text editor [such as Notepad++] and scroll to the bottom and look for text). If I rename the file to "Modal.cshtml" instead it works perfectly fine! :/ I don't think whether or not a file is embedded should have and role in excluding a file from being embedded so this seems like a bug to me.

Yes, I'm aware of upcoming nesting controls in v15.6, but I'm not able to install it yet, and regardless, this should work fine, so it should be looked into nonetheless.

Just to add: I'm using wild-cards to include the file. If I explicitly add it I get this:

Duplicate 'EmbeddedResource' items were included. ...

So it's clearly found. It's obviously something up with the build process not finding the nested file.

@barrytang
Copy link

@barrytang barrytang commented Feb 28, 2018

To report new issues, use the Report a Problem tool. The GitHub Issue Tracker for the aspnet/Tooling repo is now deprecated in favor of the Report a Problem tool.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks. See here for more details.

@barrytang barrytang closed this Feb 28, 2018
@barrytang
Copy link

@barrytang barrytang commented Feb 28, 2018

@abpiskunov who owns the feature in VS as FYI

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants