dotnet / dotnet/macios

No error nor warning is shown if a binding project contains a NativeReference to an inexistent framework

Open
#10,588 0 comments 1 reaction 0 assignees View on GitHub
bug iOS macOS msbuild
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 13h
Merged PRs (30d)
96

Description

No error nor warning is shown if a binding project contains a NativeReference to a .framework directory that doesn't exist.

Test csproj:

```xml


Debug
AnyCPU
Library
NativeLibrary
NativeLibrary


bin\Debug


bin\Release







Framework








```

Create the two C# files:

```shell
touch ApiDefinition.cs
touch StructsAndEnums.cs
```

then build:

```shell
msbuild myproj.csproj

```

check the resources:

```shell
$ monodis --presources bin/Debug/NativeLibrary.dll

```

Just to show that an existing .framework works: change the `NativeReference` of the csproj to point to an actual framework on your system:

```xml

Framework

```

and then the framework is embedded:

```
$ msbuild
$ monodis --presources bin/Debug/NativeLibrary.dll
0: AppKit.framework (size 17954354)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.