-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Msbuild not defining TargetGroup property for uap when building for uap or uap-aot #21795
Comments
cc: @danmosemsft @AlexGhiondea @ViktorHofer @weshaggard |
I noticed that TargetGroup is being defined as 'netstandard' even though I am defining it as 'uap' or 'uap-aot' |
Which library is this? If there is no uap/uapaot configuration explicitly in Configuration.props, perhaps the TargetGroup becomes netstandard. |
I observed it in src/System.Net.Http/tests/UnitTests when building those tests. The Configuration.props doesn't have any 'uap' or 'uap-aot' configurations. So, maybe that is the problem. I do see that in src/System.Net.Http/src there is a Configuration.props that has this defined:
I will investigate and close this issue is that is the problem with Http unit tests project. Thx. |
Yes, that is the problem. We need to add "uap-Windows_NT;" to the configuration file. |
I'm trying to do this in a CSPROJ file:
But when I build either:
or
The
TargetGroup
property is not defined either 'uap' or 'uapaot'.I would expect it to be defined as 'uap' whether it is 'uap' or 'uapaot' TargetGroup. Instead, it is not being defined properly.
The text was updated successfully, but these errors were encountered: