File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 4040 <Target Name =" EnsurePackageHasSpecificDescriptionBeforeBuild" BeforeTargets =" Build" Condition =" '$(IsPackable)' == 'true' and '$(PackageDidNotSpecifyCustomDescription)' == 'true'and '$(AssemblyName)' != 'Biohazrd.AllInOne'" >
4141 <Warning Text =" $(AssemblyName) does not have a PackageDescription!" />
4242 </Target >
43+
44+ <!--
45+ This ensures Biohazrd packages use exact version matching for sibling Biohazrd dependencies since we do not support mixing and matching
46+ This target is taken from https://github.com/NuGet/Home/issues/5556#issuecomment-585482714
47+ -->
48+ <Target Name =" UseExactProjectReferenvePackageVersions" AfterTargets =" _GetProjectReferenceVersions" >
49+ <ItemGroup >
50+ <_ProjectReferencesWithExactVersions Include =" @(_ProjectReferencesWithVersions)" >
51+ <ProjectVersion >[%(_ProjectReferencesWithVersions.ProjectVersion)]</ProjectVersion >
52+ </_ProjectReferencesWithExactVersions >
53+ </ItemGroup >
54+ <ItemGroup >
55+ <_ProjectReferencesWithVersions Remove =" @(_ProjectReferencesWithVersions)" />
56+ <_ProjectReferencesWithVersions Include =" @(_ProjectReferencesWithExactVersions)" />
57+ </ItemGroup >
58+ </Target >
4359</Project >
You can’t perform that action at this time.
0 commit comments