forked from yck1509/ConfuserEx
-
-
Notifications
You must be signed in to change notification settings - Fork 421
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
When I build my .net standard 2.0 library with Strong Name key using Confuser.MSBuild with version 1.5.0
Then I am getting below error :
Cannot load the Strong Name Key located at: obj\Debug\netstandard2.0\Demo2.snk
Here my strong name key file name is Demo2.snk
.crproj file content
<project baseDir=".\bin\Debug\netstandard2.0" outputDir=".\Confused" xmlns="http://confuser.codeplex.com"> <rule pattern="true" inherit="false"> <protection id="ctrl flow" /> <protection id="anti tamper" /> </rule> <module path="Demo2.Lib.dll" /> </project>
It works when I put file Demo2.snk into library path : *\obj\Debug\netstandard2.0
How can work it without put this file in obj folder.
- ConfuserEx Version: 1.5.0
- Target Framework: netstandard2.0
- Operating System: Windows 10
Steps to Reproduce:
- *.csproj file content
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Demo2.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<Obfuscate>true</Obfuscate>
<ConfuserReplaceOutput>true</ConfuserReplaceOutput>
</PropertyGroup>
<ItemGroup>
<None Include="Demo2.Lib.crproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Confuser.MSBuild" Version="1.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<None Update="Demo2.snk">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working