dotnet / dotnet/docs

CS0281 Description Incomplete

Open
#32,996 1 comment 0 reactions 0 assignees View on GitHub
dotnet-csharp/svc errors-warnings/subsvc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

The description in this page apears to be incomplete. A version of the same error (CS0281) is also produced when, although the assembly names do match, the specified public keys don't (in which case the error message is different).

Here's an example:

Error CS0281 Friend access was granted by 'PspServicesFrameworkNet4, Version=4.2.0.0, Culture=neutral, PublicKeyToken=null', but the public key of the output assembly ('') does not match that specified by the InternalsVisibleTo attribute in the granting assembly. PSP.MachineServicesLightNet4 C:\Data\Dev\Pal3Platform\Implementation\PlainSocketProtocolSystem\MachineServicesLight\Source\Implementation\Services\ServiceBase.cs 139 Active

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 95ae44e6-f902-00d1-9dce-63a636215b8d
* Version Independent ID: 054f0093-55d0-c592-9104-952028a321f8
* Content: [Compiler Error CS0281](https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs0281)
* Content Source: [docs/csharp/misc/cs0281.md](https://github.com/dotnet/docs/blob/main/docs/csharp/misc/cs0281.md)
* Product: **dotnet-csharp**
* Technology: **csharp-diagnostics**
* GitHub Login: @BillWagner
* Microsoft Alias: **wiwagn**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.