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

TargetPath not set correctly for contentFiles #80

Open
nkolev92 opened this issue Apr 22, 2020 · 0 comments
Open

TargetPath not set correctly for contentFiles #80

nkolev92 opened this issue Apr 22, 2020 · 0 comments

Comments

@nkolev92
Copy link
Contributor

nkolev92 commented Apr 22, 2020

When trying to use contentFiles with UWP project, the files were not copied to the expected subdirectory.

Here's the nuspec:
https://gist.github.com/clairernovotny/5d007fd323a8393412b9

I expected Doc2.txt to be in the AppX\Resources\Doc2.txt directory. Instead, it was in AppX\Doc2.txt

Looking at a diagnostic build, it seems like the TargetPath metadata was not set correctly:

1>        C:\Users\oren\.nuget\packages\TestWhitelist\1.2.0\contentFiles\any\uap10.0\Resources\Doc2.txt
1>                NuGetItemType=Content
1>                NuGetPackageId=TestWhitelist
1>                NuGetPackageVersion=1.2.0
1>                OriginalItemSpec=C:\Users\oren\.nuget\packages\TestWhitelist\1.2.0\contentFiles\any\uap10.0\Resources\Doc2.txt
1>                TargetPath=Doc2.txt

cc @clairernovotny @jasonmalinowski

Moved from: NuGet/Home#2001

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

No branches or pull requests

1 participant