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

added ProjectContextHelper.GetXmlKeyValue and IProjectContext.CheckNullableVariable #2061

Merged
merged 3 commits into from
Oct 26, 2022

Conversation

deepchoudhery
Copy link
Member

Context : IProjectContext is populated using a custom target msbuild restore operation. For the CLI scenario, we have no issues but for the VS scenario, it is not able to populate a newer IProjectContext yet with the Nullable property. Therefore, we need to set it in src/Scaffolding/VS.Web.CG.Design/Program.cs

  • GetXmlKeyValue : parses any xml file and will return string value for any string key provided.
  • CheckNullableVariable : checks for a missing nullable variable, and parses the csproj (xml) file to set one.

@deepchoudhery deepchoudhery self-assigned this Oct 26, 2022
@deepchoudhery deepchoudhery merged commit e764607 into main Oct 26, 2022
@deepchoudhery deepchoudhery deleted the dev/decho/add-additional-nullabity-check branch October 26, 2022 23:47
deepchoudhery added a commit that referenced this pull request Feb 17, 2023
…llableVariable (#2061)

* added ProjectContextHelper.GetXmlKeyValue and IProjectContext.CheckNullableVariable

* minor fix.

* minor fix 2
deepchoudhery added a commit that referenced this pull request Feb 17, 2023
* added ProjectContextHelper.GetXmlKeyValue and IProjectContext.CheckNullableVariable (#2061)

* added ProjectContextHelper.GetXmlKeyValue and IProjectContext.CheckNullableVariable

* minor fix.

* minor fix 2

* minor fixes for cping to 6.0
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.

1 participant