-
Notifications
You must be signed in to change notification settings - Fork 256
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
Pack target misses .pri files for Windows targets when multitargeting #4136
Comments
@onovotny Could you update the build steps for the above project? I am getting the following errors:
|
@rohit21agrawal I've just pushed an update to the dev branch with the updated glob. |
Should this be in RC3 or only in RTM? I tested RC3 and I don't see the pri files in the package.... |
This is in RTM |
The latest CLI will have this fix though |
should this be in RC4? I just tested RC4 and still don't see the .pri file in the package. |
@onovotny yes this should be in RC4. can you do a |
Will do but you should be able to repro with Zeroconf. check out the dev branch of https://github.com/onovotny/zeroconf. Then in the src\zeroconf directory, do msbuild /t:restore zeroconf.csproj then msbuild /t:pack zeroconf.csproj. Looking at the nupkg in the bin directory, the lib\uap10.0 folder doesn't have the pri. |
looking |
IncludeProjectPriFile is true _TargetPathsToAssembiles doesn't exist |
Keep in mind that it's a multi-targeted project; UWP is one of the outputs |
_TargetPathsToAssemblies would exist when you call pack. |
can you repro on my project? I tried it again and get the same result. |
yeah i am installing all the required workloads |
@onovotny turns out the .pri file is being included only when project has TargetFramework , and not TargetFrameworks . Figuring out why this is happening. |
We'll consider the fix when we see the code, etc... Please work on a fix. |
@rrelyea i have sent out a PR for this. |
i have merged the fix for this bug into dev branch for 4.3 milestone, but reopening this under 4.1 milestone for visibility. CC: @rrelyea @DoRonMotter |
What's it going to take to get this into 4.1? Seems like a small fix? |
checked into 4.1.0-rtm via NuGet/NuGet.Client@0d68700 |
Moved from dotnet/sdk#508 filed by @onovotny
When using msbuild /t:pack to generate a NuPkg on a multi-targeted project that includes Windows outputs (uap10.0, win8, wpa81, etc) that also contain a
.pri
file, the generated NuSpec used to create the package does not include the.pri
file. That will lead to errors loading resources.To repro:
Check out this commit from Zeroconf:
https://github.com/onovotny/Zeroconf/tree/39d47e8fea22a1eb19938392e0bc8f903181cf02
Run the following command
msbuild /t:pack /p:Configuration=Release
Look at the NuSpec, it's missing the
.pri
files.The text was updated successfully, but these errors were encountered: