Manually construct the precompilation nupkg.
- We needed to manually construct the precompilation nupkg in order for the tool to work in 32 and 64 bitness OS'.
This commit is contained in:
parent
db909922e4
commit
265c980c2b
|
|
@ -11,11 +11,29 @@
|
|||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||
<OutputType>exe</OutputType>
|
||||
<X86ProjectDirectory>..\..\tools\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation-x86\</X86ProjectDirectory>
|
||||
|
||||
<!--
|
||||
This prevents dotnet from automatically generating a lib/tfm/*.dll; in turn we're then able
|
||||
to exclude the lib/net461 and manually construct only the necessary folders:
|
||||
- lib/netcoreapp2.0/...
|
||||
- runtimes/win7-x64/lib/...
|
||||
- runtimes/win7-x86/lib/...
|
||||
-->
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="build\**\*" Pack="true" PackagePath="%(Identity)" />
|
||||
<None Include="$(X86ProjectDirectory)\bin\$(Configuration)\net461\win7-x86\$(MSBuildThisFileName)-x86.exe" Pack="true" PackagePath="lib\net461\$(MSBuildThisFileName)-x86.exe" />
|
||||
<None Include="build\common.targets" Pack="true" PackagePath="%(Identity)" />
|
||||
<None Include="lib\net461\_._" Pack="true" PackagePath="%(Identity)" />
|
||||
<None Include="build\netcoreapp2.0\*" Pack="true" PackagePath="%(Identity)" />
|
||||
<None Include="bin\$(Configuration)\netcoreapp2.0\$(AssemblyName).dll" Pack="true" PackagePath="lib\netcoreapp2.0\$(AssemblyName).dll" />
|
||||
<None Include="bin\$(Configuration)\netcoreapp2.0\$(AssemblyName).runtimeconfig.json" Pack="true" PackagePath="lib\netcoreapp2.0\$(AssemblyName).runtimeconfig.json" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(OS)' == 'Windows_NT' ">
|
||||
<None Include="build\net461\*" Pack="true" PackagePath="%(Identity)" />
|
||||
<None Include="bin\$(Configuration)\net461\win7-x64\$(AssemblyName).exe" Pack="true" PackagePath="runtimes\win7-x64\lib\net461\$(AssemblyName).exe" />
|
||||
<None Include="$(X86ProjectDirectory)\bin\$(Configuration)\net461\win7-x86\$(AssemblyName)-x86.exe" Pack="true" PackagePath="runtimes\win7-x86\lib\net461\$(AssemblyName)-x86.exe" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
Loading…
Reference in New Issue