-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
PROPOSAL: Update or add some ASP.NET Core code samples to use ASP.NET Core 2.0 #4933
Comments
This proposal is also valid useful to address this issue #4850 that use ASP.NET Core 1.0 specific code that needs to be updated, based on the comment from Geoffrey_Braaf: IMHO, this issue is already taken by @scottaddie , so I will not fix the custom policy page. CMIIW, though.. |
@eriawan we would like to update all the samples/docs to 2.0 but also retain the 1.x version and docs. Use the following tab markup:
Create 1 issue per doc you will be updating. DI sounds like a good one to start on. |
@eriawan I am indeed nearing completion on that Policy Authorization doc. If you create new ASP.NET Core 2.0 sample apps, Razor Pages is generally preferred over MVC. |
The download sample code on the DI page points to sample code that use ASP.NET Core 1.0. |
Thanks for the suggestion! Cool, I will use Razor Pages for those planned updated sample of ASP.NET Core 2.0 codes. |
@eriawan Here's an example of how I handled it in a different doc: https://github.com/aspnet/Docs/tree/master/aspnetcore/security/authorization/resourcebased/samples. |
@scottaddie |
@eriawan Have you started working on the middleware sample yet? I ask because I'm about to put in a PR that will move the middleware sample in the TOC. If you haven't started working on that yet, you might want to hold off for just a couple of days until the dust settles on this PR. If you have, no worries, we'll just have to deal with any conflicts as they arise. |
@guardrex |
Looks like work here stopped, and this issue is superseded by #5495. |
ah, you got me first, @guardrex :) ok, thanks for the updates |
General
Some current topics in ASP.NET Core docs have sample codes and explanations that are valid for ASP.NET Core 1.0.
For example, these are ASP.NET Core topics that use ASP.NET Core 1.0 code: (these are even using obsoleted xproj)
Issues with Existing Topics
Those docs and the sample codes above are using ASP.NET Core 1.0, and it will be not valid or not usable for ASP.NET Core 2.0 (hence not usable for .NET Core 2.0). Therefore those topics and the sample codes should be updated to ASP.NET.
Also the code samples in those topics are still using x-plat xproj model instead of newer .NET Core csproj in VS 2017.
Proposal intents
Questions:
NOTE:
cc @scottaddie , @Rick-Anderson
The text was updated successfully, but these errors were encountered: