Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When building .NET Standard version of CSCore an MSBUILD PostBuildEvent command exits with error code -1. #454

Open
tysongibby opened this issue Jun 29, 2021 · 1 comment

Comments

@tysongibby
Copy link

tysongibby commented Jun 29, 2021

When compiling the .NET Standard branch, MSBUILD runs a PostBuildEvent command in the Microsoft.Common.CurrentVersion.targets file on line 5574 that causes the build to exit with code -1.

Code from Microsoft.Common.CurrentVersion.targets file:

  <Target
      Name="PostBuildEvent"
      Condition="'$(PostBuildEvent)' != '' and ('$(RunPostBuildEvent)' != 'OnOutputUpdated' or '$(_AssemblyTimestampBeforeCompile)' != '$(_AssemblyTimestampAfterCompile)')"
      DependsOnTargets="$(PostBuildEventDependsOn)">

    <Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)" />

  </Target>

Note: to compile code it was necessary to unload all .NET Framework projects still present in the solution. i.e. all of the projects in the "Samples" folder, the CSCore.Linux project, and the CSCore.Test project.

@ADD-eNavarro
Copy link

Hello Mr. Gibby, did you manage to make CSCore work on .NET Standard then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants