Skip to content

Build fails when using dotnet cli and strong assembly #985

Description

@DominicPicard

Hi,

We are using Fody.PropertyChanged in our WPF project and it works perfectly. However, when we try to build the project with dotnet build instead of visual studio, we get this error :

MSBUILD : error : Fody: An unhandled exception occurred: [C:\Repo\<>.csproj]
MSBUILD : error : Exception: [C:\Repo\<>.csproj]
MSBUILD : error : Key does not exist. [C:\Repo\<>.csproj]

In our csproj, we use these options :

<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile><>.snk</AssemblyOriginatorKeyFile>

The build succeeds with dotnet build if we remove the SignAssembly from the csproj.

Is there something we can do ?

Also, on our build machine, we are able to build the application. However, the application crashes at runtime with this error :
image

Is it a common issue ?

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