Seting $(TargetName) doesn't change the name of the generated .pri file #2328
Replies: 2 comments
-
Thanks, @cosmin42 for the question. Resources.pri is the final name for the app’s .pri file. The comment in the project template concerns the naming of the intermediate .pri file that gets produced as part of the build. So the behavior they’re seeing is by design. Hope this helps to clarify your doubt. |
Beta Was this translation helpful? Give feedback.
-
@marb2000 thanks for answering, if the I tried different versions of WinAppSdk (1.0.0, 1.02, the preview version) but I get the same error. |
Beta Was this translation helpful? Give feedback.
-
Building a WinUI3 application which was just created, like the one attached, a
resources.pri
file is generated.The name of the .pri file should be $(RootNamespace).pri which in this case is ExampleApp.pri.
Under the default generated vcxproj there is the below comment
Setting the Target name as $(RootNamespace) doesn't change the name of resources.pri .
This creates a further problem when another WinUI3 project depends of the fist one because the .pri files will have the same name and there will be a merge problem like in the error below:
This is the case for both the 1.0.1 and 1.0.0 versions of WindowsAppSDK.
I attached a simple WinUI3 project that generates resources.pri instead of ExampleApp.pri .
ExampleApp.zip
Beta Was this translation helpful? Give feedback.
All reactions