Skip to content

Commit 0c4e9b4

Browse files
committed
NHibernate.csproj: Tell ilrepack to use .Net 4.6.2 reference assemblies.
1 parent 6ec44d6 commit 0c4e9b4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/NHibernate/NHibernate.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,6 +1816,11 @@
18161816
</Target>
18171817
-->
18181818
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Release' ">
1819-
<Exec Command="$(SolutionDir)..\Tools\ilrepack\ilrepack.exe /verbose /t:library /targetplatform:v4 /keyfile:$(AssemblyOriginatorKeyFile) /internalize:internalize.exclude /attr:$(IntermediateOutputPath)\NHibernate.dll /out:$(OutputPath)\NHibernate.dll $(IntermediateOutputPath)\NHibernate.dll $(OutputPath)\Remotion.Linq.dll $(OutputPath)\Antlr3.Runtime.dll" />
1819+
<GetReferenceAssemblyPaths BypassFrameworkInstallChecks="False" TargetFrameworkMoniker=".NETFramework,Version=v4.6.2">
1820+
<Output TaskParameter="FullFrameworkReferenceAssemblyPaths" PropertyName="_ReferenceAssembliesPath" />
1821+
<!-- Note: _ReferenceAssembliesPath will contain a trailing backslash which /targetplatform
1822+
can't handle. Circumvented by adding a trailing period below. -->
1823+
</GetReferenceAssemblyPaths>
1824+
<Exec Command="$(SolutionDir)..\Tools\ilrepack\ilrepack.exe /verbose /t:library /targetplatform:v4,&quot;$(_ReferenceAssembliesPath).&quot; /keyfile:$(AssemblyOriginatorKeyFile) /internalize:internalize.exclude /attr:$(IntermediateOutputPath)\NHibernate.dll /out:$(OutputPath)\NHibernate.dll $(IntermediateOutputPath)\NHibernate.dll $(OutputPath)\Remotion.Linq.dll $(OutputPath)\Antlr3.Runtime.dll" />
18201825
</Target>
18211826
</Project>

0 commit comments

Comments
 (0)