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

NU5026 error when using UICulture #161

Open
MikeFarrington opened this issue Aug 19, 2023 · 0 comments
Open

NU5026 error when using UICulture #161

MikeFarrington opened this issue Aug 19, 2023 · 0 comments

Comments

@MikeFarrington
Copy link

When setting a UI culture in your csproj file, a pack error occurs because NuGet.Build.Tasks.Pack.Targets is looking for files in a folder that does not exist. It is expecting files from MSBuild to be a "en-US" sub-folder that is not created by MSBuild.

<PropertyGroup>
    <UICulture>en-US</UICulture>
</PropertyGroup>
Build FAILED.

[...]NuGet.Build.Tasks.Pack.targets(221,5): error NU5026: The file 'D:\MyProject\obj\Debug\net6.0-windows\en-US\MyAssembly.dll' to be packed was not found on disk.
    0 Warning(s)
    1 Error(s)

This is because the assembly was created as 'C:\MyProject\obj\Debug\net6.0-windows\MyAssembly.resources.dll' and the "en-US" sub-folder does not exist on disk.

Removing UICulture made it work again.

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