Skip to content
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

Delete a sample that is moved to dotnet/AspNetDocs #3745

Merged
merged 3 commits into from
Oct 6, 2020

Conversation

Youssef1313
Copy link
Member

Addresses #3741 (comment)

@Youssef1313 Youssef1313 requested a review from a team as a code owner July 20, 2020 17:36
@Youssef1313
Copy link
Member Author

@adegeo The build check didn't run here. Only CLA is run.

@adegeo
Copy link
Contributor

adegeo commented Jul 20, 2020

If you edit a code file, that will cause it to run. How about editing the Properties/AssemblyInfo.cs to increase the copyright date to 2020?

@BillWagner New case to trigger a build, adding the snipppets json file.

@adegeo
Copy link
Contributor

adegeo commented Jul 20, 2020

I need to update the tools. Whoops.. brb

@Youssef1313
Copy link
Member Author

@adegeo Are these tools open source? Curious to look how they're implemented 😄

@adegeo
Copy link
Contributor

adegeo commented Jul 20, 2020

Just the results processing logic of the LocateProjects tool is: https://github.com/dotnet/docs/tree/master/.github/workflows/dependencies

@adegeo adegeo closed this Jul 20, 2020
@adegeo adegeo reopened this Jul 20, 2020
@adegeo
Copy link
Contributor

adegeo commented Jul 21, 2020

OK well we'll improve the tool next go around with a nuget restore for visual studio projects and see if that fixes this one 😁 I'll leave this issue open.

@BillWagner
Copy link
Member

closing and opening for a fresh CI build.

@BillWagner BillWagner closed this Jul 27, 2020
@BillWagner BillWagner reopened this Jul 27, 2020
@BillWagner
Copy link
Member

ping @adegeo

It looks like we need to setup the machine correctly to restore packages for old-style builds. Can you take a look?

@adegeo
Copy link
Contributor

adegeo commented Jul 27, 2020

@Youssef1313 @BillWagner

OK Lots of testing here to figure this out. It seems that the project itself has this error built into it, which was leading us down the wrong path. Specifically it looks for a v1.0.0 of a nuget package and if it's not found, errors out.

It's also using an older version of visual studio and nuget references, which the normal visual studio (msbuild) is not automatically handling. You need to run nuget.exe restore -PackagesDirectory ../packages to get nuget packages downloaded. OR you need to keep the solution file as the old nuget package reference system coupled with nuget.exe runs automatically on the solution file without specifying a directory (nuget.exe restore while the current directory has the sln file).

The dependency bot upped the packages which ends up breaking the builds too. The newer versions of all these packages have changed enough that the interdependencies have changed quite a bit.

Considering the app is 2 years old, running framework, and was built on an older visual studio, this app needs modernization to make it build correctly.

@Rick-Anderson @scottaddie Is there a modern version of this MVC sample we can update to?

@Rick-Anderson
Copy link
Contributor

I recommend retiring the sample and leaving the asp.net samples for us to update in https://github.com/dotnet/AspNetCore.Docs

@adegeo
Copy link
Contributor

adegeo commented Aug 6, 2020

@Rick-Anderson Is there something in ASP.NET that we can retire this article for? I just noticed this is .NET Framework, not Core.

@Rick-Anderson
Copy link
Contributor

It doesn't look like this sample belongs in this repo. From https://github.com/dotnet/samples/blob/master/README.md

Those projects should build and run on the widest set of platforms possible for the given sample. In practice, that means building .NET Core-based console applications where possible.

We should keep MVC samples in the https://github.com/dotnet/AspNetCore.Docs repo.

cc @scottaddie

@adegeo
Copy link
Contributor

adegeo commented Aug 7, 2020

@Youssef1313 lets delete this sample. it's referenced in samples-and-tutorials\index.md

@Youssef1313
Copy link
Member Author

Youssef1313 commented Aug 7, 2020

@adegeo That will break aspnet docs too.
It's referenced in https://docs.microsoft.com/en-us/aspnet/mvc/overview/deployment/docker-aspnetmvc at the time of writing this.

The sample should first be migrated to AspNetCore.Docs repo, and the corresponding article is updated. Then, we can delete the sample here, and change the link in samples-and-tutorials/index.md to point to AspNetCore.Docs. Then, we can delete it here.

@adegeo
Copy link
Contributor

adegeo commented Aug 20, 2020

Whoops. I think I meant delete reference to this sample from https://github.com/dotnet/docs/tree/master/docs/samples-and-tutorials

@Rick-Anderson Do you guys want this sample? It's MVC for classic ASP.NET. Considering the docker tutorial for classic ASP.NET references this sample as something to download and use for migrating an app to docker, I would think you guys want that somewhere 😄

@Rick-Anderson
Copy link
Contributor

I think there are plenty of ASP.NET 4.x docker samples. cc @scottaddie if he thinks it's worth moving.

@scottaddie
Copy link
Member

Please move this sample to the dotnet/AspNetDocs repo. It makes sense to keep the sample around since it's referenced by an ASP.NET 4.x doc.

@BillWagner
Copy link
Member

@Youssef1313 I apologize for all the delays. Do you want to make the updates here, or should we start over?

@Youssef1313
Copy link
Member Author

Youssef1313 commented Oct 5, 2020

@BillWagner Should the sample be deleted from dotnet/samples and added to AspNetDocs docs (and where in the repo)?

@BillWagner
Copy link
Member

Should the sample be deleted from dotnet/samples and added to AspNetDocs docs (and where in the repo)?

@Youssef1313 Yes, that's where the discussion ended.

@Youssef1313
Copy link
Member Author

@BillWagner I'm not sure where the sample should live in AspNetDocs repo

@BillWagner
Copy link
Member

@Youssef1313 Let's ask @scottaddie

@scottaddie
Copy link
Member

Please create a docker-aspnetmvc/samples/ directory within https://github.com/dotnet/AspNetDocs/tree/master/aspnet/mvc/overview/deployment. The sample app can move to that new directory.

@Youssef1313 Youssef1313 changed the title Create snippets.5000.json Delete a sample that is moved to dotnet/AspNetDocs Oct 6, 2020
@Youssef1313
Copy link
Member Author

Thanks @scottaddie
I opened dotnet/AspNetDocs#453 to add the sample and update the link in the article.
Also opened dotnet/docs#20934 to delete the link to the deleted sample here.

@scottaddie scottaddie merged commit 1b5e382 into dotnet:master Oct 6, 2020
@scottaddie
Copy link
Member

Thank you for all your hard work here, @Youssef1313!

@Youssef1313 Youssef1313 deleted the patch-2 branch October 6, 2020 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants