-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
csproj example #62
Comments
I have this in my <ItemGroup>
<PackageReference Include="gitinfo" Version="2.0.8" />
</ItemGroup>
<PropertyGroup>
<GitInfoReportImportance Condition="$(Configuration) == 'Release'">high</GitInfoReportImportance>
</PropertyGroup>
<Target Name="Configure" AfterTargets="GitInfoReport">
<PropertyGroup>
<Version>$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)$(GitSemVerDashLabel)</Version>
</PropertyGroup>
</Target> It works quite well. /B :) |
The You can't reference those properties before those targets have run. The updated docs on MSBuild go into quite a bit more details on how properties/items/targets are evaluated and run and when. It might be worth checking those out, they are quite well written, I'd say: https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-properties |
Can someone please share a working .csproj example?
Or tell me wrong what is wrong with mine:
Thanks!
The text was updated successfully, but these errors were encountered: