|
125 | 125 | DependsOnTargets="$(CoreCompileDependsOn);_PrepareRawTfmList;_GetShimmedPackages;ResolveProjectReferences" |
126 | 126 | Inputs="$(MSBuildAllProjects);@(MMShimGen)" |
127 | 127 | Outputs="$(_OutputTfmsTxt)" |
128 | | - Condition="'$(dotnet-nugetize)' == ''" |
129 | | - > |
| 128 | + Condition="'$(dotnet-nugetize)' == ''"> |
130 | 129 |
|
131 | 130 | <ItemGroup> |
132 | 131 | <_ExistingShimFiles Include="$(_ShimsDir)**/*" /> |
|
140 | 139 | <_ShimGenExe>%(MMShimGen.RelativeDir)%(FileName)$(_NativeExecutableExtension)</_ShimGenExe> |
141 | 140 | <_SnkDir>$(MMRootPath)snk/</_SnkDir> |
142 | 141 | </PropertyGroup> |
| 142 | + |
| 143 | + <ItemGroup> |
| 144 | + <_BackportsProps Remove="@(_BackportsProps)"/> |
| 145 | + </ItemGroup> |
| 146 | + |
| 147 | + <MSBuild Projects="$(MMSourcePath)MonoMod.Backports/MonoMod.Backports.csproj" |
| 148 | + Targets="GetAssemblyVersion;GetProperties" |
| 149 | + Properties="TargetFramework=net8.0;PropertyNames=AssemblyVersion,AssemblyOriginatorKeyFile;BuildProjectReferences=false"> |
| 150 | + <Output ItemName="_BackportsProps" TaskParameter="TargetOutputs" /> |
| 151 | + </MSBuild> |
| 152 | + |
| 153 | + <PropertyGroup> |
| 154 | + <_BackportsAsmVersion></_BackportsAsmVersion> |
| 155 | + <_BackportsKeyFile></_BackportsKeyFile> |
| 156 | + <_BackportsAsmVersion Condition="'%(_BackportsProps.Identity)' == 'AssemblyVersion'">%(_BackportsProps.Value)</_BackportsAsmVersion> |
| 157 | + <_BackportsKeyFile Condition="'%(_BackportsProps.Identity)' == 'AssemblyOriginatorKeyFile'">%(_BackportsProps.Value)</_BackportsKeyFile> |
| 158 | + </PropertyGroup> |
143 | 159 |
|
144 | 160 | <ItemGroup> |
145 | 161 | <_PPArguments Remove="@(_PPArguments)" /> |
146 | | - <!-- 1: the output directory --> |
| 162 | + <!-- 1: Backports version --> |
| 163 | + <_PPArguments Include="$(_BackportsAsmVersion)" /> |
| 164 | + <!-- 2: Backports keyfile --> |
| 165 | + <_PPArguments Include="$(_BackportsKeyFile)" /> |
| 166 | + <!-- 3: the output directory --> |
147 | 167 | <_PPArguments Include="$(_ShimsDir)" /> |
148 | | - <!-- 2: snk directory --> |
| 168 | + <!-- 4: snk directory --> |
149 | 169 | <_PPArguments Include="$(_SnkDir)" /> |
150 | | - <!-- 3: tfms file --> |
| 170 | + <!-- 5: tfms file --> |
151 | 171 | <_PPArguments Include="$(_BackportsTfmsTxt)" /> |
152 | | - <!-- 4: the paths to the packages to process --> |
| 172 | + <!-- 6: the paths to the packages to process --> |
153 | 173 | <_PPArguments Include="@(_ShimmedPackagePaths)" /> |
154 | 174 | </ItemGroup> |
155 | 175 |
|
|
0 commit comments