'Why is my key file's relative path changed from ..\ to *Undefined* when building with MSBuild?
In my solution folder, there is a folder called Tools which is not included in the solution itself (because the "Show All Files" function of VS's Solution Explorer doesn't display it to include in the project). Inside is an SNK file for signing assemblies. Another programmer has signed a project with that file. When I pulled the project from Git, its "Signing" property showed the path as ..\..\..\Tools\key.snk.
Building the solution with VS is fine, but if I use MSBuild there will be an error that read:
CSC : error CS7027: Error signing output with public key from file '*Undefined*Tools\key.snk' -- File not found. [C:\Source\src\Client\Share\QED\QED.csproj]
I have tried re-signing the project myself with the file. The file path changed to key.snk, the SNK file was copied into the project, but the error stayed the same.
I'm using MSBuild 17 with VS2022.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
