[GH-ISSUE #7] Unable to compile on Linux using Mono #6

Closed
opened 2026-02-25 21:30:27 +03:00 by kerem · 1 comment
Owner

Originally created by @markcallen on GitHub (Dec 7, 2014).
Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/7

Originally assigned to: @brutaldev on GitHub.

Getting the following error message when compiling on linux with mono

cd src
xbuild

StrongNameSigner/src/Brutal.Dev.StrongNameSigner/Brutal.Dev.StrongNameSigner.csproj (default targets) ->
/usr/lib/mono/4.5/Microsoft.Common.targets (PostBuildEvent target) ->

/usr/lib/mono/4.5/Microsoft.Common.targets: error : Command 'if /I "Debug" == "Release" "/Microsoft.NET/Framework/v4.0.30319/msbuild.exe" /p:CleanIntermediates=True /p:Configuration=Release "/StrongNameSigner/src/Brutal.Dev.StrongNameSigner.Docs/Documentation.shfbproj"' exited with code: 2.
Originally created by @markcallen on GitHub (Dec 7, 2014). Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/7 Originally assigned to: @brutaldev on GitHub. Getting the following error message when compiling on linux with mono cd src xbuild StrongNameSigner/src/Brutal.Dev.StrongNameSigner/Brutal.Dev.StrongNameSigner.csproj (default targets) -> /usr/lib/mono/4.5/Microsoft.Common.targets (PostBuildEvent target) -> ``` /usr/lib/mono/4.5/Microsoft.Common.targets: error : Command 'if /I "Debug" == "Release" "/Microsoft.NET/Framework/v4.0.30319/msbuild.exe" /p:CleanIntermediates=True /p:Configuration=Release "/StrongNameSigner/src/Brutal.Dev.StrongNameSigner.Docs/Documentation.shfbproj"' exited with code: 2. ```
kerem 2026-02-25 21:30:27 +03:00
  • closed this issue
  • added the
    wontfix
    label
Author
Owner

@brutaldev commented on GitHub (Dec 8, 2014):

The Sandcastle Help File Builder is a Windows only application that is used to compile the help file for this project (CHM). If you want to build this in Linux, then you will need to remove the post-build event that launches the help builder tools.

On line 84 of src/Brutal.Dev.StrongNameSigner/Brutal.Dev.StrongNameSigner.csproj

<PropertyGroup>
  <PostBuildEvent>if /I "$(ConfigurationName)" == "Release" "$(SystemRoot)\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" /p:CleanIntermediates=True /p:Configuration=Release "$(SolutionDir)Brutal.Dev.StrongNameSigner.Docs\Documentation.shfbproj"</PostBuildEvent>
</PropertyGroup>

The conditional could be made better to detect a Linux environment and ignore this step, but the quickest way to get around your problem right now if to simply remove that property group from the project file.

<!-- gh-comment-id:65977533 --> @brutaldev commented on GitHub (Dec 8, 2014): The [Sandcastle Help File Builder](https://shfb.codeplex.com/) is a Windows only application that is used to compile the help file for this project (CHM). If you want to build this in Linux, then you will need to remove the post-build event that launches the help builder tools. On line 84 of `src/Brutal.Dev.StrongNameSigner/Brutal.Dev.StrongNameSigner.csproj` ``` <PropertyGroup> <PostBuildEvent>if /I "$(ConfigurationName)" == "Release" "$(SystemRoot)\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" /p:CleanIntermediates=True /p:Configuration=Release "$(SolutionDir)Brutal.Dev.StrongNameSigner.Docs\Documentation.shfbproj"</PostBuildEvent> </PropertyGroup> ``` The conditional could be made better to detect a Linux environment and ignore this step, but the quickest way to get around your problem right now if to simply remove that property group from the project file.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/StrongNameSigner#6
No description provided.