Election-Tech-Initiative / Election-Tech-Initiative/electionguard-cpp

🐞 Unit Tests Won't Run in Visual Studio

オープン
#248 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
C++
スター
26
フォーク
25
PR マージ指標
30日以内にマージされた PR はありません

説明

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

1. Compile the C++ with `make test-msvc`
2. Run the unit tests in Visual Studio (under the debug configuration)

Expected: Unit tests should pass
Actual: `System.DllNotFoundException : Unable to load DLL 'electionguard': The specified module could not be found. (Exception from HRESULT: 0x8007007E)`

### Expected Behavior

The problem is that `make test-msvc` generates `electionguard.dll` in the release configuration and `ElectionGuard.Encryption.Tests.csproj` is looking for it in the folder based on its active configuration. In other words `ElectionGuard.Encryption.Tests.csproj` conflates it's own configuration setting with that of the C++ electionguard library.

### Steps To Reproduce

_No response_

### Environment

```markdown
- OS: Windows
```

### Anything else?

_No response_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。