Skip to content

Commit 272b4a3

Browse files
committed
Fix "build_with_fsharp_from_mono" CI lane
Somehow, the "ResolveReferences" target was not found anymore by the msbuild tool used in this lane, but we don't need this target when using Mono because this workaround is only used when using "dotnet" to create the nuget package.
1 parent 4d7c5fb commit 272b4a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DotNetLightning.Core/DotNetLightning.Core.fsproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@
102102
<PackageReference Include="System.Memory" Version="4.5.3" />
103103
</ItemGroup>
104104

105-
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences">
105+
<!-- this is a workaround only needed for nuget push (so, not Mono, but just "dotnet nuget"), for more info see
106+
https://github.com/joemphilips/DotNetLightning/issues/14 and https://github.com/joemphilips/DotNetLightning/commit/c98307465f647257df1438beadb4cabc7db757f2
107+
and https://github.com/joemphilips/DotNetLightning/issues/14 and https://github.com/NuGet/Home/issues/3891#issuecomment-377319939 -->
108+
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences"
109+
Condition="'$(MSBuildRuntimeType)'!='Mono'">
106110
<ItemGroup>
107111
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths-&gt;WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" />
108112
</ItemGroup>

0 commit comments

Comments
 (0)