dotnet / dotnet/msbuild

ResolveComReference task should support PublicSign

Open
#4,317 4 comments 0 reactions 0 assignees View on GitHub
Area: Tasks triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

Currently ResolveComReference accepts KeyFile and DelaySign parameters:
https://github.com/Microsoft/msbuild/blob/518c2fb4bd8621fe0d97e8a233f9ae9599d4b8d4/src/Tasks/Microsoft.Common.CurrentVersion.targets#L2734

However if a project specifies DelaySign=false and PublicSign=true then the project that has a ComReference such as:

```


{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}
1
1
0
tlbimp
False
True


```

Fails the build with:

```
SHDocVw error MSB3299: The key file 'f:\agent\FinalPublicKey.snk' does not contain a public/private key pair.[f:\agent\Test.csproj]
```

because the .snk only contains the public key.

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.