I have a postbuild target in my csproj file, as below.
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="dotnet publish '..\..\src\httpapi\httpapi.csproj' -o $(OutputPath)\service"/>
</Target>
Runs without any issues on my local machine, but fails with below error while building on sonarqube server.
MSBUILD : error MSB1009: Project file does not exist.
- Switch: '..\..\src\httpapi\httpapi.csproj'
any idea why this happens? is there any other way I can mention the path to the target project in my post build target?