Comments (2)
OK I've solved this on my own.
Instead of putting the key details in it's own ILRepack.Config.Props file:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<KeyFile>$(ProjectDir)key.snk</KeyFile>
</PropertyGroup>
</Project>
It works to put a KeyFile
XML attribute in the <ILRepack />
element inside of the ILRepack.targets file:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="ILRepacker" AfterTargets="Build" Condition="'$(Configuration)' == 'Release' Or '$(Configuration)' == 'Debug'">
<ItemGroup>
<InputAssemblies Include="$(OutputPath)\$(AssemblyName).dll" />
<InputAssemblies Include="$(OutputPath)\XObjectsCore.dll" />
</ItemGroup>
<ItemGroup>
<!--<DoNotInternalizeAssemblies Include="System.ValueTuple.dll" />-->
</ItemGroup>
<ILRepack Parallel="true" Internalize="true" InternalizeExclude="@(DoNotInternalizeAssemblies)" InputAssemblies="@(InputAssemblies)" TargetKind="Dll" OutputFile="$(OutputPath)\$(AssemblyName).dll"
KeyFile="$(ProjectDir)key.snk" />
</Target>
</Project>
Please update the README to indicate this.
from ilrepack.lib.msbuild.task.
Related Issues (20)
- ILRepack.Config.props gets ignored. HOT 7
- Release configuration merges more assemblies when needed HOT 19
- ILRepack.Lib.MSBuild.Task does not work on Linux HOT 3
- Internalize doesn't work for TaskEx HOT 1
- ILRepack is not working for desktop framework HOT 1
- Problem with duplicate Types HOT 7
- Could you please provide a new release? HOT 1
- CleanReferenceCopyLocalPaths Not Happening v2.0.18.1 HOT 9
- Release configuration merge gives error failed to resolve assembly HOT 11
- did ILRepack surport vs2019 + .net framework 4.7.2? HOT 6
- dotnet build not working HOT 5
- PrimaryAssemblyFile only added on Release Builds
- Failed to resolve assembly Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' HOT 3
- Where do we put the reference to the key HOT 4
- InvalidCastException when trying to merge Oracle.ManagedDataAccess.dll HOT 1
- Support regex in InternalizeExclude HOT 1
- Force exclude a library reference from being merged in HOT 2
- Internalize not working with 2.0.22 HOT 13
- Nuget API key in appveyor.yml file? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ilrepack.lib.msbuild.task.