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

[Bug]: Msbuild drops glob based Item on Unix only #10715

Open
mmitche opened this issue Sep 27, 2024 · 1 comment
Open

[Bug]: Msbuild drops glob based Item on Unix only #10715

mmitche opened this issue Sep 27, 2024 · 1 comment
Labels
bug Priority:2 Work that is important, but not critical for the release triaged

Comments

@mmitche
Copy link
Member

mmitche commented Sep 27, 2024

Issue Description

<NuspecProperty Include="Output=$(PublishDir)**\*" /> in efcore's dotnet-ef.csproj (SetPackageProperties target) yields different results on Windows and Linux. On Windows, this item is passed cleanly through to the Nuspec generation and pack, yielding the correct pack contents. On Linux, the item is dropped entirely.

Escaping the *s with %2A works.

Steps to Reproduce

Build the efcore repo on Windows and Linux and compare the contents of the dotnet-ef package.

Expected Behavior

image

Actual Behavior

All dotnet-ef* files are missing.

Analysis

No response

Versions & Configurations

8.0.1xx SDK and 9.0.1xx SDKs exhibit the behavior.

@mmitche mmitche added the bug label Sep 27, 2024
@rainersigwald
Copy link
Member

I suspect that on Windows we're hitting some I/O error and it's falling back to "must be a string literal instead" (#406) but I don't understand why (we checked offline for MAX_PATH) and I don't understand how it's evaluating to nothing on Linux. We need to debug the execution I think.

mmitche added a commit to mmitche/efcore that referenced this issue Sep 27, 2024
Due to a bug (dotnet/msbuild#10715) the pack target for dotnet-ef does not work on Linux. The publish output is dropped from the package. Work around with a replacement for * for now.
mmitche added a commit to dotnet/efcore that referenced this issue Sep 30, 2024
Due to a bug (dotnet/msbuild#10715) the pack target for dotnet-ef does not work on Linux. The publish output is dropped from the package. Work around with a replacement for * for now.
@AR-May AR-May added Priority:2 Work that is important, but not critical for the release triaged labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Priority:2 Work that is important, but not critical for the release triaged
Projects
None yet
Development

No branches or pull requests

3 participants