-
Notifications
You must be signed in to change notification settings - Fork 344
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
Add missing '>' to Microsoft.WindowsAppSDK.Bootstrap.CS.targets #2358
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
How do we get test coverage for this kind of thing in the future? |
@@ -1,7 +1,7 @@ | |||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
|
|||
<PropertyGroup> | |||
<DefineConstants | |||
<DefineConstants> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this entire line be deleted? There's no matching end tag... and an empty DefineConstants
doesn't really make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. Taking a closer look, seems like we don't even need this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DrusTheAxe Want to double check with you to see if we can remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct -- delete line 4. That's a typo
For valid sample syntax see https://stackoverflow.com/questions/36793499/defineconstants-in-addition-to-existing-ones-in-csproj#36793713
@jonwis To catch this during the pull request validation/checks, we would need to build a test app that makes use of this target that will directly make use of the Foundation transport package. |
Maybe in the short term, PR validation could run with something like this to verify the XML is at least well formed. - name: smoke test targets
shell: pwsh
run: |
Get-ChildItem *.targets | ForEach-Object { $_.Name; [xml](Get-Content $_) | Out-Null } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if you delete line 4
Rafael's verify-XML-is-WellFormed is a good (and cheap :-) suggestion. Should be applied to all XML files under /build/NuSpecs
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Smoke check test for props and targets tested here |
1 similar comment
Smoke check test for props and targets tested here |
Add missing '>' to Microsoft.WindowsAppSDK.Bootstrap.CS.targets.
Added smoke test to check if props and targets are formed properly.