Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Adding @using in _GlobalImports shows squigglies in VS #2271

Closed
rustd opened this issue Mar 25, 2015 · 4 comments
Closed

Adding @using in _GlobalImports shows squigglies in VS #2271

rustd opened this issue Mar 25, 2015 · 4 comments
Assignees
Milestone

Comments

@rustd
Copy link

rustd commented Mar 25, 2015

I have the following in _GlobalImports.cshtml

@using NoAut
@using Microsoft.Framework.OptionsModel
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"

In my View I am using it as

@inject IOptions<AppSettings> AppSettings

In VS I get squiggles in my Views. It works at runtime. Chatted with Taylor and he will look into this

@NTaylorMullen
Copy link
Member

/cc @danroth27 @Eilon @DamianEdwards Found why this is happening. Investigated it and it's an easy fix. Problem was caused by the same issue that resulted in the directives @tagHelperPrefix, @addTagHelper and @removeTagHelper no longer working in _GloblImport.cshtml during design time: just need to apply the fix in an additional location.

I'd love to get this one into beta4 - super low impact since it only affects tooling.

NTaylorMullen added a commit that referenced this issue Mar 25, 2015
…ceUtility call.

- This solves tooling trying to resolve ChunkInheritanceUtility bits for chunks: Aka can't inherit `@using`, `@inject` etc. from _GlobalImport.cshtml
- Added test to validate paths are normalized for DecorateCodeBuilder.

#2271
@NTaylorMullen NTaylorMullen self-assigned this Mar 25, 2015
@NTaylorMullen NTaylorMullen added this to the 6.0.0-beta5 milestone Mar 25, 2015
@NTaylorMullen
Copy link
Member

Super quick fix to this out for PR now: assigned to beta5, feel free to move milestone if you decide there's enough value in getting it into beta4.

@Eilon Eilon removed this from the 6.0.0-beta5 milestone Mar 26, 2015
@Eilon
Copy link
Member

Eilon commented Mar 26, 2015

Clearing the milestone so we can triage in the morning.

@danroth27 danroth27 added this to the 6.0.0-beta4 milestone Mar 26, 2015
NTaylorMullen added a commit that referenced this issue Mar 26, 2015
…ceUtility call.

- This solves tooling trying to resolve ChunkInheritanceUtility bits for chunks: Aka can't inherit `@using`, `@inject` etc. from _GlobalImport.cshtml
- Added test to validate paths are normalized for DecorateCodeBuilder.

#2271
@NTaylorMullen
Copy link
Member

9402f14

NTaylorMullen added a commit that referenced this issue Apr 6, 2015
…ceUtility call.

- This solves tooling trying to resolve ChunkInheritanceUtility bits for chunks: Aka can't inherit `@using`, `@inject` etc. from _GlobalImport.cshtml
- Added test to validate paths are normalized for DecorateCodeBuilder.

#2271
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants