Skip to content

Conversation

@davidwengier
Copy link
Member

@davidwengier davidwengier commented Oct 13, 2021

Fixes AB#1411721

This fixes new project creation for legacy and CPS with respect to LangVersion issues.

@ghost ghost added the Area-IDE label Oct 13, 2021
@davidwengier
Copy link
Member Author

Putting this up as draft while I wait for an answer from CPS.

Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get an integration test added?

Also: target against the 17.0 branch?

@davidwengier
Copy link
Member Author

Also: target against the 17.0 branch?

The bug is currently targeting 17.1 P3, and has a score of 1. I'm assuming that when Dev17 GAs more people will find it and complain, so I like the simpler change for easier serviceability, but I'm happy not aggressively pushing it.

@davidwengier davidwengier marked this pull request as ready for review October 14, 2021 02:46
@davidwengier davidwengier requested a review from a team as a code owner October 14, 2021 02:46
@davidwengier
Copy link
Member Author

Merged to try to get integration tests passing... and no, it wasn't my test that was failing 😛

VisualStudio.SolutionExplorer.AddProject(project, WellKnownProjectTemplates.ConsoleApplication, LanguageNames.CSharp);

VisualStudio.ErrorList.ShowErrorList();
VisualStudio.ErrorList.Verify.NoErrors();
Copy link
Member

@jasonmalinowski jasonmalinowski Oct 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also have a test for non-legacy project does work in this case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it can't hurt to have a non legacy test to ensure it compiles, but I can't get a failing test in non legacy, because I couldn't see a way to specify target framework when creating a project.

Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small tweaks, but :shipit:

@davidwengier
Copy link
Member Author

Thanks for the review, I've pushed the updates but I'm still trying to understand this integration test failure which makes no sense (and today, is passing on my machine ¯\_(ツ)_/¯)

@davidwengier davidwengier merged commit 602bd4f into dotnet:main Oct 19, 2021
@davidwengier davidwengier deleted the FixNewProjectCreation branch October 19, 2021 22:21
@ghost ghost added this to the Next milestone Oct 19, 2021
@RikkiGibson RikkiGibson modified the milestones: Next, 17.1.P1 Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants