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

[Mac] Output directory parameter is ignored when using dotnet publish #2106

Closed
Miepee opened this issue Jan 6, 2022 · 2 comments · Fixed by #2107 or #2195
Closed

[Mac] Output directory parameter is ignored when using dotnet publish #2106

Miepee opened this issue Jan 6, 2022 · 2 comments · Fixed by #2107 or #2195
Labels
Milestone

Comments

@Miepee
Copy link
Contributor

Miepee commented Jan 6, 2022

Expected Behavior

When specifying the output directory, the .app folder should appear to the specified directory.

Actual Behavior

The .app is created in {PROJECT}/bin/{CONFIGURATION}/{FRAMEWORK} (i.e. Eto.Test.Mac/bin/debug/.net6.0)

Steps to Reproduce the Problem

  1. Compile a project, for example Eto.Test.Mac, with dotnet publish -o macCompile

Specifications

  • Version: 2.6.0
  • Platform(s): Mac
  • Operating System(s): macOS Big Sur
@cwensley
Copy link
Member

cwensley commented Jan 7, 2022

Interesting, when I specify an output folder it actually gives me an error:

/Users/curtis/Projects/Eto/src/Eto.Mac/build/BundleDotNetCore.targets(248,5): error MSB3030: Could not copy the file "/Users/curtis/Downloads/woodle**/*" because it was not found. [/Users/curtis/Projects/Eto/test/Eto.Test.Mac/Eto.Test.Mac64.csproj]

The error can be fixed, though I can't replicate the issue where it goes to bin/{config}/{framework}, at least with Eto.Test.Mac64.csproj.

@cwensley cwensley added the bug label Jan 7, 2022
@cwensley cwensley added this to the 2.6.x milestone Jan 7, 2022
@cwensley cwensley modified the milestones: 2.6.x, 2.6.1 Jan 7, 2022
@cwensley
Copy link
Member

cwensley commented Jan 11, 2022

Still some issues, try with this command dotnet build Eto.Test.Mac64.csproj -o ../../myMacBuild. While it doesn't have any errors, the actual .app bundle goes to the wrong place. It works if you supply a slash at the end, but you shouldn't have to.

@cwensley cwensley reopened this Jan 11, 2022
@cwensley cwensley modified the milestones: 2.6.1, 2.6.x Jan 11, 2022
cwensley added a commit to cwensley/Eto that referenced this issue Apr 24, 2022
@cwensley cwensley modified the milestones: 2.7.x, 2.7.0 May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants