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

Fix error message/string(s) that reference project.json #5931

Closed
Eilon opened this issue Mar 9, 2017 · 9 comments
Closed

Fix error message/string(s) that reference project.json #5931

Eilon opened this issue Mar 9, 2017 · 9 comments

Comments

@Eilon
Copy link
Member

Eilon commented Mar 9, 2017

Such as this: https://github.com/aspnet/Mvc/blob/rel/1.1.2/src/Microsoft.AspNetCore.Mvc.Razor/Internal/DefaultRoslynCompilationService.cs#L158

And we should scan the entire repo for any other references.

Does this seem worth porting to patch releases? How obscure is this?

@DamianEdwards
Copy link
Member

I think we should fix this (these) in the next patch.

@pranavkm
Copy link
Contributor

pranavkm commented Mar 9, 2017

The specific error you listed we've fixed in dev - https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.Razor/Internal/DefaultRoslynCompilationService.cs#L153. We only need this work item for a patch release.

@Eilon
Copy link
Member Author

Eilon commented Mar 9, 2017

Oh right I remember this. Is it broken in 1.0.x and 1.1.x?

@pranavkm
Copy link
Contributor

pranavkm commented Mar 9, 2017

It is. Note: It's generally less likely you'd run in to this error now since PreserveCompilationContext is opt-out unlike in project.json where this was opt in.

@DamianEdwards
Copy link
Member

People starting with empty .NET Console app and then adding ASP.NET Core will hit this. We still do that in some demos, docs, etc.

@Eilon Eilon modified the milestones: 1.1.3, 2.0.0-preview1 Mar 12, 2017
@Eilon
Copy link
Member Author

Eilon commented Mar 12, 2017

Ok, so putting this in 1.1.3 then.

@Eilon
Copy link
Member Author

Eilon commented Apr 12, 2017

This patch fix is approved. Please follow the normal code review / pull request process and make sure you make the change in the correct branch.

@Eilon
Copy link
Member Author

Eilon commented Apr 18, 2017

Close this bug?

@Eilon
Copy link
Member Author

Eilon commented Apr 19, 2017

Preview builds of this patch fix should be available on the following feeds:

If you have a chance, please try out these preview builds and let us know if you have any feedback!

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

3 participants