Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BundleResource not working correctly MacOS #1789

@hamarb123

Description

@hamarb123

Expected Behavior

Compiles without any issues and places libEGL.dylib in bin\Debug\netcoreapp3.1\TestEtoProgram.Mac.app\Contents\Resources

Actual Behavior

Error while building

Error | MSB3021 | Unable to copy file "C:\Users\Hamish\Downloads\libEGL.dylib" to "bin\Debug\netcoreapp3.1\TestEtoProgram.Mac.app\Contents\Resources\C:\Users\Hamish\Downloads\libEGL.dylib". The given path's format is not supported. | TestEtoProgram.Mac | C:\Users\Hamish\.nuget\packages\eto.platform.mac64\2.5.6\build\Eto.Platform.Mac64.targets | 232 |  

Steps to Reproduce the Problem / Code that Demonstrates the Problem

  1. Create an eto project with standard Mac64 target with .net core
  2. Add the following to the project file (with the absolute path to a file that exists)
	<ItemGroup>
		<BundleResource Include="C:\Users\Hamish\Downloads\libEGL.dylib">
			<Link>libEGL.dylib</Link>
		</BundleResource>
	</ItemGroup>
  1. Attempt to build

Specifications

  • Version: 2.5.6
  • Platform(s): Mac, .NET Core 3.1
  • Operating System(s): (built on) Windows 10

This behaviour deviates to what a Visual Studio for Mac cocoa app does, which copies to program.app/Contents/Resources/linkpath if linkpath is specified.
I do believe that the error is somewhere near this line

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions