diff --git a/src/ApiCodeGenerator.MSBuild/build/ApiCodeGenerator.MSBuild.props b/src/ApiCodeGenerator.MSBuild/build/ApiCodeGenerator.MSBuild.props
index f094f73..f844165 100644
--- a/src/ApiCodeGenerator.MSBuild/build/ApiCodeGenerator.MSBuild.props
+++ b/src/ApiCodeGenerator.MSBuild/build/ApiCodeGenerator.MSBuild.props
@@ -39,11 +39,11 @@
<_Temporary1 Include="@(_Temporary)">
%(DocumentDir)%(FileName).yml
- %(FullPath)
+ %(Identity)
<_Temporary1 Include="@(_Temporary)">
%(DocumentDir)%(FileName).yaml
- %(FullPath)
+ %(Identity)
<_OpenApiReference Include="@(_Temporary1 -> '%(OpenApiPath)')"